Passed
Push — master ( 641e69...c260d1 )
by Vasyl
02:57
created
src/VariableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             __DIR__.'/../config/variables.php' => config_path('variables.php'),
18 18
         ], 'variables-config');
19 19
 
20
-        if (! class_exists('CreateVariablesTable')) {
20
+        if (!class_exists('CreateVariablesTable')) {
21 21
              $timestamp = date('Y_m_d_His', time());
22 22
 
23 23
              $this->publishes([
Please login to merge, or discard this patch.
src/VariableManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      */
122 122
     protected function getAll()
123 123
     {
124
-        $settings = $this->cacheRepo->remember($this->cacheName, $this->cacheTime, function () {
124
+        $settings = $this->cacheRepo->remember($this->cacheName, $this->cacheTime, function() {
125 125
             return $this->variableModel->all();
126 126
         });
127 127
 
Please login to merge, or discard this patch.
src/Commands/GetVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
         $variableMng = app(\Fomvasss\Variable\VariableManagerContract::class);
23 23
 
24 24
         $variable = $variableMng->locale($this->argument('locale'))->first($this->argument('name'), '');
25
-        print_r($variable . "\n");
25
+        print_r($variable."\n");
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('var_all')) {
3
+if (!function_exists('var_all')) {
4 4
     function var_all($locale = null)
5 5
     {
6 6
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->all();
7 7
     }
8 8
 }
9 9
 
10
-if (! function_exists('var_get')) {
10
+if (!function_exists('var_get')) {
11 11
     function var_get($name, $default = null, $locale = null)
12 12
     {
13 13
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->first($name, $default);
14 14
     }
15 15
 }
16 16
 
17
-if (! function_exists('var_json_decode_get')) {
17
+if (!function_exists('var_json_decode_get')) {
18 18
     function var_json_decode_get($name, $asoc = true, $locale = null)
19 19
     {
20 20
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->firstJsonDecode($name, $asoc);
21 21
     }
22 22
 }
23 23
 
24
-if (! function_exists('var_set')) {
24
+if (!function_exists('var_set')) {
25 25
     function var_set($name, $value = null, $locale = null)
26 26
     {
27 27
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->set($name, $value, $locale);
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 
32
-if (! function_exists('var_delete')) {
32
+if (!function_exists('var_delete')) {
33 33
     function var_delete($name, $locale = null)
34 34
     {
35 35
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->delete($name, $locale);
36 36
     }
37 37
 }
38 38
 
39
-if (! function_exists('var_set_array')) {
39
+if (!function_exists('var_set_array')) {
40 40
     function var_set_array(array $attributes, $locale = null)
41 41
     {
42 42
         return app(\Fomvasss\Variable\VariableManagerContract::class)->locale($locale)->setArray($attributes);
Please login to merge, or discard this patch.