@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | 21 | if (Schema::hasTable(Series::TABLE_NAME)) { |
| 22 | - Schema::table(Series::TABLE_NAME, static function ($table) { |
|
| 22 | + Schema::table(Series::TABLE_NAME, static function($table) { |
|
| 23 | 23 | $table->string('status')->default(Series::STATUS_ACTIVE); |
| 24 | 24 | }); |
| 25 | 25 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function down() |
| 32 | 32 | { |
| 33 | 33 | if (Schema::hasTable(Series::TABLE_NAME)) { |
| 34 | - Schema::table(Series::TABLE_NAME, static function ($table) { |
|
| 34 | + Schema::table(Series::TABLE_NAME, static function($table) { |
|
| 35 | 35 | $table->dropColumn('status'); |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $series = SeriesModel::whereId($recordId)->first(); |
| 58 | 58 | |
| 59 | 59 | if ($series !== null) { |
| 60 | - $this->pageTitle = trans(Plugin::LOCALIZATION_KEY . 'form.series.edit_title', ['series' => $series->title]); |
|
| 60 | + $this->pageTitle = trans(Plugin::LOCALIZATION_KEY . 'form.series.edit_title', [ 'series' => $series->title ]); |
|
| 61 | 61 | } else { |
| 62 | 62 | $this->pageTitle = trans(Plugin::LOCALIZATION_KEY . 'form.series.series_does_not_exist'); |
| 63 | 63 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function onBulkDelete() |
| 74 | 74 | { |
| 75 | - if ($checkedIds = (array)post('checked', [])) { |
|
| 75 | + if ($checkedIds = (array)post('checked', [ ])) { |
|
| 76 | 76 | $delete = SeriesModel::whereIn('id', $checkedIds)->delete(); |
| 77 | 77 | } |
| 78 | 78 | |