We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | // append the field name to the rule name of validationMessages array. |
251 | 251 | // eg: ['required => 'This field is required'] |
252 | 252 | // will be transformed into: ['field_name.required' => 'This field is required] |
253 | - $this->crud()->setValidationFromArray([], array_merge(...array_map(function ($rule, $message) { |
|
253 | + $this->crud()->setValidationFromArray([], array_merge(...array_map(function($rule, $message) { |
|
254 | 254 | return [$this->attributes['name'].'.'.$rule => $message]; |
255 | 255 | }, array_keys($messages), $messages))); |
256 | 256 | |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | { |
438 | 438 | $macro = static::$macros[$method] ?? null; |
439 | 439 | |
440 | - if (! $macro) { |
|
440 | + if (!$macro) { |
|
441 | 441 | $this->setAttributeValue($method, $parameters[0]); |
442 | 442 | |
443 | 443 | return $this->save(); |
@@ -23,8 +23,7 @@ |
||
23 | 23 | |
24 | 24 | try { |
25 | 25 | $select = app()->version() < 10 ? |
26 | - DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') : |
|
27 | - DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar()); |
|
26 | + DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') : DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar()); |
|
28 | 27 | |
29 | 28 | $type = $connection->select($select)[0]->Type; |
30 | 29 | } catch (\Exception $e) { |