@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * |
12 | 12 | * @var array |
13 | 13 | */ |
14 | - protected $only = []; |
|
14 | + protected $only = [ ]; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Enable encryption for the given cookie name(s). |
@@ -32,6 +32,6 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function isDisabled($name) |
34 | 34 | { |
35 | - return ! in_array($name, $this->only); |
|
35 | + return !in_array($name, $this->only); |
|
36 | 36 | } |
37 | 37 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | protected function storeImageFile($file, $identifier = null) |
22 | 22 | { |
23 | - if ($file instanceof UploadedFile && ! $file->isValid()) { |
|
23 | + if ($file instanceof UploadedFile && !$file->isValid()) { |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function __call($method, $parameters) |
18 | 18 | { |
19 | 19 | if (property_exists($this, $method) && count($parameters) > 0) { |
20 | - $this->{$method} = $parameters[0]; |
|
20 | + $this->{$method} = $parameters[ 0 ]; |
|
21 | 21 | |
22 | 22 | return $this; |
23 | 23 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function applyFilter(Image $image) |
49 | 49 | { |
50 | - return $image->orientate()->fit($this->width, $this->height, function ($constraint) { |
|
50 | + return $image->orientate()->fit($this->width, $this->height, function($constraint) { |
|
51 | 51 | $this->constraint($constraint); |
52 | 52 | }, $this->position); |
53 | 53 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function applyFilter(Image $image) |
44 | 44 | { |
45 | - return $image->orientate()->resize($this->width, $this->height, function ($constraint) { |
|
45 | + return $image->orientate()->resize($this->width, $this->height, function($constraint) { |
|
46 | 46 | $this->constraint($constraint); |
47 | 47 | }); |
48 | 48 | } |
@@ -25,8 +25,8 @@ |
||
25 | 25 | |
26 | 26 | $router->macro( |
27 | 27 | 'modelWithHashid', |
28 | - function ($key, $class, Closure $callback = null) use ($router) { |
|
29 | - $router->bind($key, function ($value) use ($router, $class, $callback) { |
|
28 | + function($key, $class, Closure $callback = null) use ($router) { |
|
29 | + $router->bind($key, function($value) use ($router, $class, $callback) { |
|
30 | 30 | if (is_null($value)) { |
31 | 31 | return; |
32 | 32 | } |
@@ -30,14 +30,14 @@ discard block |
||
30 | 30 | { |
31 | 31 | $filename = (string) $this->option('filename'); |
32 | 32 | |
33 | - $assets = $this->laravel['config']->get($filename); |
|
33 | + $assets = $this->laravel[ 'config' ]->get($filename); |
|
34 | 34 | |
35 | 35 | $revisioned = $this->revisionAssets($assets); |
36 | 36 | |
37 | 37 | if ($assets !== $revisioned) { |
38 | 38 | $this->updateAssetsVersionConfigFile($filename, $revisioned); |
39 | 39 | |
40 | - $this->laravel['config'][$filename] = $revisioned; |
|
40 | + $this->laravel[ 'config' ][ $filename ] = $revisioned; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $this->info('Assets version configuration'. |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function revisionAssets($assets) |
55 | 55 | { |
56 | - $newAssets = []; |
|
56 | + $newAssets = [ ]; |
|
57 | 57 | |
58 | 58 | if (is_array($assets)) { |
59 | 59 | foreach ($assets as $filename => $value) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $this->error("Revisioning file [{$filename}] failed."); |
73 | 73 | } |
74 | 74 | |
75 | - $newAssets[$filename] = $value; |
|
75 | + $newAssets[ $filename ] = $value; |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 |
@@ -38,17 +38,17 @@ |
||
38 | 38 | */ |
39 | 39 | public function handle() |
40 | 40 | { |
41 | - if (! $this->option('alone')) { |
|
41 | + if (!$this->option('alone')) { |
|
42 | 42 | $this->call('clear-compiled'); |
43 | 43 | } |
44 | 44 | |
45 | 45 | if ($this->laravel->bound('command.ide-helper.generate')) { |
46 | 46 | $this->call('ide-helper:generate'); |
47 | 47 | $this->call('ide-helper:meta'); |
48 | - $this->call('ide-helper:models', ['-R' => true, '-N' => true]); |
|
48 | + $this->call('ide-helper:models', [ '-R' => true, '-N' => true ]); |
|
49 | 49 | } |
50 | 50 | |
51 | - if (! $this->option('alone')) { |
|
51 | + if (!$this->option('alone')) { |
|
52 | 52 | $this->call('optimize'); |
53 | 53 | } |
54 | 54 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | $this->setCharactersInEnvironmentFile($characters); |
39 | 39 | |
40 | - $this->laravel['config']['support.int2string'] = $characters; |
|
40 | + $this->laravel[ 'config' ][ 'support.int2string' ] = $characters; |
|
41 | 41 | |
42 | 42 | $this->info("Characters [<comment>$characters</comment>] set successfully."); |
43 | 43 | } |