We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * |
13 | 13 | * @var string |
14 | 14 | */ |
15 | - // protected $signature = 'make:model'; |
|
15 | + // protected $signature = 'make:model'; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * The console command description. |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | parent::__construct(); |
48 | 48 | } |
49 | - */ |
|
49 | + */ |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Execute the console command. |
@@ -57,5 +57,5 @@ discard block |
||
57 | 57 | { |
58 | 58 | // |
59 | 59 | } |
60 | - */ |
|
60 | + */ |
|
61 | 61 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $name = str_replace_first($this->rootNamespace(), '', $name); |
28 | 28 | |
29 | - return $this->laravel['path'].'/Models/'.str_replace('\\', '/', $name).'.php'; |
|
29 | + return $this->laravel[ 'path' ].'/Models/'.str_replace('\\', '/', $name).'.php'; |
|
30 | 30 | } |
31 | 31 | /** |
32 | 32 | * Get the root namespace for the class. |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function rootNamespace() |
36 | 36 | { |
37 | - return $this->laravel->getNamespace() . 'Models'; |
|
37 | + return $this->laravel->getNamespace().'Models'; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -18,9 +18,9 @@ |
||
18 | 18 | |
19 | 19 | // Extend the Validator class. |
20 | 20 | // To check the user age (minimum: 16) |
21 | - Validator::extend('olderThan', function ($attributes, $value, $parameters) |
|
21 | + Validator::extend('olderThan', function($attributes, $value, $parameters) |
|
22 | 22 | { |
23 | - $minAge = ( ! empty($parameters)) ? (int) $parameters[0] : 16; |
|
23 | + $minAge = (!empty($parameters)) ? (int) $parameters[ 0 ] : 16; |
|
24 | 24 | return \Carbon\Carbon::now()->diff(new \Carbon\Carbon($value))->y >= $minAge; |
25 | 25 | }); |
26 | 26 | } |