Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Apr 28, 2024
1 parent ffadd3e commit 2bbab6a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateForumTableCategories extends Migration
*/
public function up()
{
if (!Schema::hasTable('forum_categories')) {
if (! Schema::hasTable('forum_categories')) {
Schema::create('forum_categories', function (Blueprint $table) {
$table->increments('id');
$table->integer('parent_category')->unsigned();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateForumTableThreads extends Migration
*/
public function up()
{
if (!Schema::hasTable('forum_threads')) {
if (! Schema::hasTable('forum_threads')) {
Schema::create('forum_threads', function (Blueprint $table) {
$table->increments('id');
$table->integer('parent_category')->unsigned();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateForumTablePosts extends Migration
*/
public function up()
{
if (!Schema::hasTable('forum_posts')) {
if (! Schema::hasTable('forum_posts')) {
Schema::create('forum_posts', function (Blueprint $table) {
$table->increments('id');
$table->integer('parent_thread')->unsigned();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateForumTableThreadsRead extends Migration
*/
public function up()
{
if (!Schema::hasTable('forum_threads_read')) {
if (! Schema::hasTable('forum_threads_read')) {
Schema::create('forum_threads_read', function (Blueprint $table) {
$table->integer('thread_id')->unsigned();
$table->foreignIdFor(config('forum.integration.user_model'), 'user_id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class UpdateForumTableCategories extends Migration
public function up()
{
Schema::table('forum_categories', function (Blueprint $table) {
if (!Schema::hasColumn('forum_categories', 'category_id')) {
if (! Schema::hasColumn('forum_categories', 'category_id')) {
$table->renameColumn('parent_category', 'category_id');
}
if (!Schema::hasColumn('forum_categories', 'description')) {
if (! Schema::hasColumn('forum_categories', 'description')) {
$table->renameColumn('subtitle', 'description');
}
});
Expand Down

0 comments on commit 2bbab6a

Please sign in to comment.