We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | { |
| 88 | 88 | $all_relation_fields = $this->getRelationFields($form); |
| 89 | 89 | |
| 90 | - return array_where($all_relation_fields, function ($value, $key) { |
|
| 90 | + return array_where($all_relation_fields, function($value, $key) { |
|
| 91 | 91 | return isset($value['pivot']) && $value['pivot']; |
| 92 | 92 | }); |
| 93 | 93 | } |
@@ -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\Database\Eloquent\Builder; |
| 6 | +use Illuminate\Database\Eloquent\Model; |
|
| 7 | 7 | |
| 8 | 8 | trait Sluggable |
| 9 | 9 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $separator = $config['separator']; |
| 48 | 48 | $attribute = $attribute.'->'.$this->getLocale(); |
| 49 | 49 | |
| 50 | - return $query->where(function (Builder $q) use ($attribute, $slug, $separator) { |
|
| 50 | + return $query->where(function(Builder $q) use ($attribute, $slug, $separator) { |
|
| 51 | 51 | $q->where($attribute, '=', $slug) |
| 52 | 52 | ->orWhere($attribute, 'LIKE', $slug.$separator.'%'); |
| 53 | 53 | }); |
@@ -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 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | protected function makeSlugUnique($slug, array $config, $attribute) |
| 51 | 51 | { |
| 52 | - if (! $config['unique']) { |
|
| 52 | + if (!$config['unique']) { |
|
| 53 | 53 | return $slug; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function getAttributeValue($key) |
| 26 | 26 | { |
| 27 | - if (! $this->isTranslatableAttribute($key)) { |
|
| 27 | + if (!$this->isTranslatableAttribute($key)) { |
|
| 28 | 28 | return parent::getAttributeValue($key); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function update(array $attributes = [], array $options = []) |
| 74 | 74 | { |
| 75 | - if (! $this->exists) { |
|
| 75 | + if (!$this->exists) { |
|
| 76 | 76 | return false; |
| 77 | 77 | } |
| 78 | 78 | |