We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\ModelTraits\SpatieTranslatable; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | 5 | use Illuminate\Contracts\Events\Dispatcher; |
6 | +use Illuminate\Database\Eloquent\Model; |
|
7 | 7 | |
8 | 8 | class SluggableObserver extends \Cviebrock\EloquentSluggable\SluggableObserver |
9 | 9 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\ModelTraits\SpatieTranslatable; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | -use Illuminate\Database\Eloquent\Builder; |
|
7 | 5 | use Cviebrock\EloquentSluggable\Sluggable as OriginalSluggable; |
6 | +use Illuminate\Database\Eloquent\Builder; |
|
7 | +use Illuminate\Database\Eloquent\Model; |
|
8 | 8 | |
9 | 9 | trait Sluggable |
10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Faker\Factory; |
|
6 | -use Backpack\CRUD\Tests\Unit\Models\User; |
|
7 | 5 | use Backpack\CRUD\Tests\Unit\Models\Article; |
6 | +use Backpack\CRUD\Tests\Unit\Models\User; |
|
7 | +use Faker\Factory; |
|
8 | 8 | |
9 | 9 | class CrudPanelCreateTest extends BaseDBCrudPanelTest |
10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\DB; |
|
6 | 5 | use Backpack\CRUD\Tests\Unit\Models\Article; |
7 | 6 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
7 | +use Illuminate\Support\Facades\DB; |
|
8 | 8 | |
9 | 9 | class CrudPanelDeleteTest extends BaseDBCrudPanelTest |
10 | 10 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Illuminate\Support\Collection; |
|
6 | -use Illuminate\Support\Facades\DB; |
|
7 | -use Backpack\CRUD\Tests\Unit\Models\User; |
|
8 | 5 | use Backpack\CRUD\Tests\Unit\Models\Article; |
6 | +use Backpack\CRUD\Tests\Unit\Models\User; |
|
9 | 7 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
8 | +use Illuminate\Support\Collection; |
|
9 | +use Illuminate\Support\Facades\DB; |
|
10 | 10 | |
11 | 11 | class CrudPanelReadTest extends BaseDBCrudPanelTest |
12 | 12 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | 5 | use DB; |
6 | -use Traversable; |
|
7 | -use Illuminate\Support\Facades\Config; |
|
8 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | +use Illuminate\Support\Facades\Config; |
|
8 | +use Traversable; |
|
9 | 9 | |
10 | 10 | trait CrudTrait |
11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\PanelTraits; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Relations\HasOne; |
|
6 | 5 | use Illuminate\Database\Eloquent\Relations\BelongsTo; |
6 | +use Illuminate\Database\Eloquent\Relations\HasOne; |
|
7 | 7 | |
8 | 8 | trait Create |
9 | 9 | { |
@@ -167,18 +167,18 @@ |
||
167 | 167 | { |
168 | 168 | foreach ($modifications as $key => $newValue) { |
169 | 169 | switch (strtolower($form)) { |
170 | - case 'create': |
|
170 | + case 'create': |
|
171 | 171 | $this->create_fields[$field][$key] = $newValue; |
172 | - break; |
|
172 | + break; |
|
173 | 173 | |
174 | - case 'update': |
|
174 | + case 'update': |
|
175 | 175 | $this->update_fields[$field][$key] = $newValue; |
176 | - break; |
|
176 | + break; |
|
177 | 177 | |
178 | - default: |
|
178 | + default: |
|
179 | 179 | $this->create_fields[$field][$key] = $newValue; |
180 | - $this->update_fields[$field][$key] = $newValue; |
|
181 | - break; |
|
180 | + $this->update_fields[$field][$key] = $newValue; |
|
181 | + break; |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - return [ |
|
16 | + return [ |
|
17 | 17 | 'infoFiltered' => '(filtered from _MAX_ total entries)', |
18 | 18 | 'thousands' => ',', |
19 | 19 | 'admin' => 'المشرف', |