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 | { |
@@ -23,13 +23,13 @@ |
||
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - //for update form, get initial state of the entity |
|
| 27 | - if( isset($id) && $id ){ |
|
| 26 | + //for update form, get initial state of the entity |
|
| 27 | + if( isset($id) && $id ){ |
|
| 28 | 28 | |
| 29 | 29 | //get entity with relations for primary dependency |
| 30 | 30 | $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
| 31 | - ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 32 | - ->find($id); |
|
| 31 | + ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 32 | + ->find($id); |
|
| 33 | 33 | |
| 34 | 34 | $secondaries_from_primary = []; |
| 35 | 35 | |
@@ -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 | { |
@@ -7,14 +7,14 @@ |
||
| 7 | 7 | |
| 8 | 8 | <div class="form-group backpack-filter m-b-0"> |
| 9 | 9 | <?php |
| 10 | - $from = ''; |
|
| 11 | - $to = ''; |
|
| 12 | - if($filter->currentValue) { |
|
| 13 | - $range = (array)json_decode($filter->currentValue); |
|
| 14 | - $from = $range['from']; |
|
| 15 | - $to = $range['to']; |
|
| 16 | - } |
|
| 17 | - ?> |
|
| 10 | + $from = ''; |
|
| 11 | + $to = ''; |
|
| 12 | + if($filter->currentValue) { |
|
| 13 | + $range = (array)json_decode($filter->currentValue); |
|
| 14 | + $from = $range['from']; |
|
| 15 | + $to = $range['to']; |
|
| 16 | + } |
|
| 17 | + ?> |
|
| 18 | 18 | <div class="input-group"> |
| 19 | 19 | <input class="form-control pull-right from" |
| 20 | 20 | type="number" |