Passed
Push — master ( 641e69...c260d1 )
by Vasyl
02:57
created
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.