Passed
Pull Request — master (#71)
by
unknown
03:27
created
src/syncUtils.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use Illuminate\Support\Facades\Config;
6 6
 use Jenssegers\Mongodb\Eloquent\Model;
7 7
 
8
-if (! function_exists('getTranslatedContent')) {
8
+if (!function_exists('getTranslatedContent')) {
9 9
 
10 10
     /**
11 11
      * @param  array  $mlCollection
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         //Get current Lang
17 17
         $cl = Config::get('app.locale');
18 18
 
19
-        if (is_array($mlCollection) && (array_key_exists('en_EN', $mlCollection) || array_key_exists('it_IT', $mlCollection) || ! is_null($mlCollection || ! isset($destination)))) {
19
+        if (is_array($mlCollection) && (array_key_exists('en_EN', $mlCollection) || array_key_exists('it_IT', $mlCollection) || !is_null($mlCollection || !isset($destination)))) {
20 20
             return $mlCollection[$cl];
21 21
         } else {
22 22
             return '';
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     }
25 25
 }
26 26
 
27
-if (! function_exists('cl')) {
27
+if (!function_exists('cl')) {
28 28
 
29 29
     /**
30 30
      * @return string current Lang
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 }
38 38
 
39
-if (! function_exists('ml')) {
39
+if (!function_exists('ml')) {
40 40
     //save a localized field
41 41
     /**
42 42
      * @param  array  $destination
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 }
55 55
 
56
-if (! function_exists('isML')) {
56
+if (!function_exists('isML')) {
57 57
     function isML($value)
58 58
     {
59 59
         if (array_key_exists('is-ml', $value)) {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     }
65 65
 }
66 66
 
67
-if (! function_exists('isMD')) {
67
+if (!function_exists('isMD')) {
68 68
     function isMD($value)
69 69
     {
70 70
         if (array_key_exists('is-md', $value)) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 }
77 77
 
78
-if (! function_exists('is_EM')) {
78
+if (!function_exists('is_EM')) {
79 79
     function is_EM($value)
80 80
     {
81 81
         if ($value === 'EmbedsMany') {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 }
88 88
 
89
-if (! function_exists('is_EO')) {
89
+if (!function_exists('is_EO')) {
90 90
     function is_EO($value)
91 91
     {
92 92
         if ($value === 'EmbedsOne') {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 }
99 99
 
100
-if (! function_exists('is_HM')) {
100
+if (!function_exists('is_HM')) {
101 101
     function is_HM($value)
102 102
     {
103 103
         if ($value === 'HasMany') {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 }
110 110
 
111
-if (! function_exists('is_HO')) {
111
+if (!function_exists('is_HO')) {
112 112
     function is_HO($value)
113 113
     {
114 114
         if ($value === 'HasOne') {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 }
121 121
 
122
-if (! function_exists('isEditable')) {
122
+if (!function_exists('isEditable')) {
123 123
     function isEditable($value)
124 124
     {
125 125
         if (array_key_exists('is-editable', $value)) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 }
132 132
 
133
-if (! function_exists('hasTarget')) {
133
+if (!function_exists('hasTarget')) {
134 134
     function hasTarget($value)
135 135
     {
136 136
         if (array_key_exists('has-target', $value)) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     }
142 142
 }
143 143
 
144
-if (! function_exists('isFillable')) {
144
+if (!function_exists('isFillable')) {
145 145
     function isFillable($value, $event)
146 146
     {
147 147
         if ($event === 'add') {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 }
154 154
 
155
-if (! function_exists('getAID')) {
155
+if (!function_exists('getAID')) {
156 156
     /**
157 157
      * @param  Model  $model
158 158
      * @return string
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     }
167 167
 }
168 168
 
169
-if (! function_exists('getArrayWithEmptyObj')) {
169
+if (!function_exists('getArrayWithEmptyObj')) {
170 170
 
171 171
     /**
172 172
      * @param $model
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     }
193 193
 }
194 194
 
195
-if (! function_exists('getCounterForRelationships')) {
195
+if (!function_exists('getCounterForRelationships')) {
196 196
 
197 197
     /**
198 198
      * @param $method
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         }
211 211
     }
212 212
 
213
-    if (! function_exists('getTypeOnTarget')) {
213
+    if (!function_exists('getTypeOnTarget')) {
214 214
         function getTypeOnTarget($relation)
215 215
         {
216 216
             return Arr::has($relation, 'typeOnTarget') ? Arr::get($relation, 'typeOnTarget') : 'EmbedsMany';
Please login to merge, or discard this patch.