Completed
Push — master ( 60e8ad...eef921 )
by Elf
05:48
created
src/Http/Middleware/EncryptCookies.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Traits/ImageStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/Commands/AssetsVersion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/Commands/GenerateIdeHelpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Console/Commands/GenerateInt2stringCharacters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Services/Optimus/OptimusServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@
 block discarded – undo
19 19
      */
20 20
     public function register()
21 21
     {
22
-        $this->app->singleton(Optimus::class, function ($app) {
23
-            $config = $app['config']->get('support.optimus');
22
+        $this->app->singleton(Optimus::class, function($app) {
23
+            $config = $app[ 'config' ]->get('support.optimus');
24 24
 
25
-            return new Optimus($config['prime'], $config['inverse'], $config['random']);
25
+            return new Optimus($config[ 'prime' ], $config[ 'inverse' ], $config[ 'random' ]);
26 26
         });
27 27
 
28 28
         $this->app->alias(Optimus::class, 'optimus');
29 29
 
30
-        $this->app->singleton('command.optimus.generate', function () {
30
+        $this->app->singleton('command.optimus.generate', function() {
31 31
             return new GenerateOptimusCommand;
32 32
         });
33 33
 
Please login to merge, or discard this patch.
src/Services/Optimus/GenerateOptimusCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function handle()
32 32
     {
33
-        $values = array_combine(['prime', 'inverse', 'random'], Energon::generate());
33
+        $values = array_combine([ 'prime', 'inverse', 'random' ], Energon::generate());
34 34
 
35 35
         if ($this->option('show')) {
36 36
             return $this->printValues($values);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $this->setValuesInEnvironmentFile($values);
40 40
 
41
-        $this->laravel['config']['support.optimus'] = $values;
41
+        $this->laravel[ 'config' ][ 'support.optimus' ] = $values;
42 42
 
43 43
         $this->printValues($values);
44 44
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function printValues($values)
54 54
     {
55
-        $this->table(array_keys($values), [array_values($values)]);
55
+        $this->table(array_keys($values), [ array_values($values) ]);
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/Services/Captcha/MewsCaptchaServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
             base_path('vendor/mews/captcha/config/captcha.php') => config_path('captcha.php'),
16 16
         ], 'config');
17 17
 
18
-        $this->app['validator']->extend('captcha', function ($attribute, $value, $parameters) {
18
+        $this->app[ 'validator' ]->extend('captcha', function($attribute, $value, $parameters) {
19 19
             return captcha_check($value);
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
src/Providers/ConfigServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function register()
15 15
     {
16
-        if (! $this->app->configurationIsCached()) {
16
+        if (!$this->app->configurationIsCached()) {
17 17
             $this->configureDefaults();
18 18
         }
19 19
 
@@ -27,20 +27,20 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function configureDefaults()
29 29
     {
30
-        $config = $this->app['config'];
30
+        $config = $this->app[ 'config' ];
31 31
 
32 32
         // Append "app.domains"
33
-        $config['app.domains'] = array_map(function ($value) {
33
+        $config[ 'app.domains' ] = array_map(function($value) {
34 34
             if (is_string($domain = parse_url($value, PHP_URL_HOST))) {
35 35
                 if (str_contains($domain, '.')) {
36 36
                     return $domain;
37 37
                 }
38 38
             }
39
-        }, $config['support.url']);
39
+        }, $config[ 'support.url' ]);
40 40
 
41 41
         // Set "mail.from.name"
42
-        if ($config['mail.from.name'] == 'Example') {
43
-            $config['mail.from.name'] = $config['app.name'];
42
+        if ($config[ 'mail.from.name' ] == 'Example') {
43
+            $config[ 'mail.from.name' ] = $config[ 'app.name' ];
44 44
         }
45 45
     }
46 46
 
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function configureForCurrentRequest()
51 51
     {
52
-        $config = $this->app['config'];
53
-        $request = $this->app['request'];
52
+        $config = $this->app[ 'config' ];
53
+        $request = $this->app[ 'request' ];
54 54
 
55
-        $identifier = array_search($request->getHost(), $config['app.domains']);
55
+        $identifier = array_search($request->getHost(), $config[ 'app.domains' ]);
56 56
 
57 57
         // Configure the cookie domain
58 58
         if ($identifier && $config->has('support.cookie_domain.'.$identifier)) {
59
-            $config['session.domain'] = $config['support.cookie_domain.'.$identifier];
59
+            $config[ 'session.domain' ] = $config[ 'support.cookie_domain.'.$identifier ];
60 60
         }
61 61
 
62 62
         // Configure the auth defaults
63
-        if ($identifier && is_array($auth = $config['support.auth.'.$identifier])) {
64
-            $config['auth.defaults'] = $auth;
63
+        if ($identifier && is_array($auth = $config[ 'support.auth.'.$identifier ])) {
64
+            $config[ 'auth.defaults' ] = $auth;
65 65
         }
66 66
     }
67 67
 }
Please login to merge, or discard this patch.