We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private function runConsoleCommand($command) |
| 50 | 50 | { |
| 51 | 51 | $process = new Process($command, null, null, null, 60, null); |
| 52 | - $process->run(function ($type, $buffer) { |
|
| 52 | + $process->run(function($type, $buffer) { |
|
| 53 | 53 | if (Process::ERR === $type) { |
| 54 | 54 | $this->line($buffer); |
| 55 | 55 | } else { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | }); |
| 59 | 59 | |
| 60 | 60 | // executes after the command finishes |
| 61 | - if (! $process->isSuccessful()) { |
|
| 61 | + if (!$process->isSuccessful()) { |
|
| 62 | 62 | throw new ProcessFailedException($process); |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | { |
| 80 | 80 | $stub = str_replace('Backpack\CRUD\app\Models;', $this->laravel->getNamespace().'Models;', $stub); |
| 81 | 81 | |
| 82 | - if (! $this->files->exists($this->laravel['path'].'/User.php') && $this->files->exists($this->laravel['path'].'/Models/User.php')) { |
|
| 82 | + if (!$this->files->exists($this->laravel['path'].'/User.php') && $this->files->exists($this->laravel['path'].'/Models/User.php')) { |
|
| 83 | 83 | $stub = str_replace($this->laravel->getNamespace().'User', $this->laravel->getNamespace().'Models\User', $stub); |
| 84 | 84 | } |
| 85 | 85 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $process = new Process($command, null, null, null, 300, null); |
| 68 | 68 | |
| 69 | - $process->run(function ($type, $buffer) { |
|
| 69 | + $process->run(function($type, $buffer) { |
|
| 70 | 70 | if (Process::ERR === $type) { |
| 71 | 71 | $this->line($buffer); |
| 72 | 72 | } else { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | }); |
| 76 | 76 | |
| 77 | 77 | // executes after the command finishes |
| 78 | - if (! $process->isSuccessful()) { |
|
| 78 | + if (!$process->isSuccessful()) { |
|
| 79 | 79 | throw new ProcessFailedException($process); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | // otherwise, in case the last line HAS been modified |
| 96 | 96 | // return the last line that has an ending in it |
| 97 | - $possible_end_lines = array_filter($file_lines, function ($k) { |
|
| 97 | + $possible_end_lines = array_filter($file_lines, function($k) { |
|
| 98 | 98 | return strpos($k, '});') === 0; |
| 99 | 99 | }); |
| 100 | 100 | |
@@ -18,14 +18,14 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public static function bootHasParent() |
| 20 | 20 | { |
| 21 | - static::creating(function ($model) { |
|
| 21 | + static::creating(function($model) { |
|
| 22 | 22 | if ($model->parentHasHasChildrenTrait()) { |
| 23 | 23 | $model->forceFill( |
| 24 | 24 | [$model->getInheritanceColumn() => $model->classToAlias(get_class($model))] |
| 25 | 25 | ); |
| 26 | 26 | } |
| 27 | 27 | }); |
| 28 | - static::addGlobalScope(function ($query) { |
|
| 28 | + static::addGlobalScope(function($query) { |
|
| 29 | 29 | $instance = new static(); |
| 30 | 30 | if ($instance->parentHasHasChildrenTrait()) { |
| 31 | 31 | $query->where($instance->getTable().'.'.$instance->getInheritanceColumn(), $instance->classToAlias(get_class($instance))); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function getTable() |
| 42 | 42 | { |
| 43 | - if (! isset($this->table)) { |
|
| 43 | + if (!isset($this->table)) { |
|
| 44 | 44 | return str_replace('\\', '', Str::snake(Str::plural(class_basename($this->getParentClass())))); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -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 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $separator = $config['separator']; |
| 49 | 49 | $attribute = $attribute.'->'.$this->getLocale(); |
| 50 | 50 | |
| 51 | - return $query->where(function (Builder $q) use ($attribute, $slug, $separator) { |
|
| 51 | + return $query->where(function(Builder $q) use ($attribute, $slug, $separator) { |
|
| 52 | 52 | $q->where($attribute, '=', $slug) |
| 53 | 53 | ->orWhere($attribute, 'LIKE', $slug.$separator.'%') |
| 54 | 54 | // Fixes issues with Json data types in MySQL where data is sourrounded by " |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | protected function makeSlugUnique(string $slug, array $config, string $attribute): string |
| 51 | 51 | { |
| 52 | - if (! $config['unique']) { |
|
| 52 | + if (!$config['unique']) { |
|
| 53 | 53 | return $slug; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $revisionDate = date('Y-m-d', strtotime((string) $history->created_at)); |
| 22 | 22 | |
| 23 | 23 | // Be sure to instantiate the initial grouping array |
| 24 | - if (! array_key_exists($revisionDate, $revisions)) { |
|
| 24 | + if (!array_key_exists($revisionDate, $revisions)) { |
|
| 25 | 25 | $revisions[$revisionDate] = []; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function getTitle($action = false) |
| 23 | 23 | { |
| 24 | - if (! $action) { |
|
| 24 | + if (!$action) { |
|
| 25 | 25 | $action = $this->getActionMethod(); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function setTitle($string, $action = false) |
| 40 | 40 | { |
| 41 | - if (! $action) { |
|
| 41 | + if (!$action) { |
|
| 42 | 42 | $action = $this->getActionMethod(); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function getHeading($action = false) |
| 60 | 60 | { |
| 61 | - if (! $action) { |
|
| 61 | + if (!$action) { |
|
| 62 | 62 | $action = $this->getActionMethod(); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function setHeading($string, $action = false) |
| 77 | 77 | { |
| 78 | - if (! $action) { |
|
| 78 | + if (!$action) { |
|
| 79 | 79 | $action = $this->getActionMethod(); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function getSubheading($action = false) |
| 97 | 97 | { |
| 98 | - if (! $action) { |
|
| 98 | + if (!$action) { |
|
| 99 | 99 | $action = $this->getActionMethod(); |
| 100 | 100 | } |
| 101 | 101 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function setSubheading($string, $action = false) |
| 114 | 114 | { |
| 115 | - if (! $action) { |
|
| 115 | + if (!$action) { |
|
| 116 | 116 | $action = $this->getActionMethod(); |
| 117 | 117 | } |
| 118 | 118 | |