Passed
Push — master ( 5e4ab8...5cf54f )
by Vasyl
02:44
created
src/VariableServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             __DIR__.'/../config/variables.php' => config_path('variables.php'),
19 19
         ], 'variables-config');
20 20
 
21
-        if (! class_exists('CreateVariablesTable')) {
21
+        if (!class_exists('CreateVariablesTable')) {
22 22
              $timestamp = date('Y_m_d_His', time());
23 23
 
24 24
              $this->publishes([
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->mergeConfigFrom(__DIR__.'/../config/variables.php', 'variables');
47 47
 
48
-        $this->app->singleton(VariableManagerContract::class, function () {
48
+        $this->app->singleton(VariableManagerContract::class, function() {
49 49
             $cacheRepo = $this->app->make(\Illuminate\Cache\Repository::class);
50 50
             return new VariableManager(new Variable, $cacheRepo, $this->app);
51 51
         });
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     protected function replaceConfigsWithVariables()
55 55
     {
56
-        $this->app->booted(function () {
56
+        $this->app->booted(function() {
57 57
 
58 58
             // package config
59 59
             $config = $this->app['config']->get('variables');
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
                 $variables = $this->app->make(VariableManagerContract::class)->all();
66 66
 
67 67
                 foreach ($variables as $varKey => $varValue) {
68
-                    if (! empty($variableConfig[$varKey])) {
68
+                    if (!empty($variableConfig[$varKey])) {
69 69
                         $this->app['config']->set($variableConfig[$varKey], $varValue);
70 70
                     }
71
-                    if (! empty($config['config_key_for_vars'])) {
72
-                        $this->app['config']->set($config['config_key_for_vars'] . '.' . $varKey, $varValue);
71
+                    if (!empty($config['config_key_for_vars'])) {
72
+                        $this->app['config']->set($config['config_key_for_vars'].'.'.$varKey, $varValue);
73 73
                     }
74 74
                 }
75 75
             } catch (\Exception $exception) {
Please login to merge, or discard this patch.