@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | use Illuminate\Support\Facades\Config; |
5 | 5 | use Jenssegers\Mongodb\Eloquent\Model; |
6 | 6 | |
7 | -if (! function_exists('getTranslatedContent')) { |
|
7 | +if (!function_exists('getTranslatedContent')) { |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * @param array $mlCollection |
@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
57 | -if (! function_exists('isML')) { |
|
57 | +if (!function_exists('isML')) { |
|
58 | 58 | function isML($value) |
59 | 59 | { |
60 | 60 | if (array_key_exists('is-ml', $value)) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | -if (! function_exists('isMD')) { |
|
68 | +if (!function_exists('isMD')) { |
|
69 | 69 | function isMD($value) |
70 | 70 | { |
71 | 71 | if (array_key_exists('is-md', $value)) { |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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)) { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | } |
142 | 142 | } |
143 | -if (! function_exists('isFillable')) { |
|
143 | +if (!function_exists('isFillable')) { |
|
144 | 144 | function isFillable($value, $event) |
145 | 145 | { |
146 | 146 | if ($event === 'add') { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
154 | -if (! function_exists('getRequestToBeSync')) { |
|
154 | +if (!function_exists('getRequestToBeSync')) { |
|
155 | 155 | /** |
156 | 156 | * @param $ref_id |
157 | 157 | * @param $modelOnTarget |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
185 | -if (! function_exists('getPrimaryRequest')) { |
|
185 | +if (!function_exists('getPrimaryRequest')) { |
|
186 | 186 | /** |
187 | 187 | * @param string $request |
188 | 188 | * |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | function getPrimaryRequest($request) |
192 | 192 | { |
193 | - if (! is_null($request)) { |
|
193 | + if (!is_null($request)) { |
|
194 | 194 | $arr = []; |
195 | 195 | $categorylistdataJson = $request; |
196 | 196 | $categorylistdataArr = json_decode($categorylistdataJson); |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | } |
210 | 210 | } |
211 | 211 | |
212 | -if (! function_exists('getAID')) { |
|
212 | +if (!function_exists('getAID')) { |
|
213 | 213 | /** |
214 | 214 | * @param Model $model |
215 | 215 | * @return string |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | } |
225 | 225 | |
226 | -if (! function_exists('processList')) { |
|
226 | +if (!function_exists('processList')) { |
|
227 | 227 | /** |
228 | 228 | * @param array $array |
229 | 229 | * |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | } |
250 | 250 | |
251 | -if (! function_exists('isRequestReadyToBeProcessed')) { |
|
251 | +if (!function_exists('isRequestReadyToBeProcessed')) { |
|
252 | 252 | function isRequestReadyToBeProcessed(Request $request) |
253 | 253 | { |
254 | 254 | $requests = $request->all(); |
@@ -265,14 +265,14 @@ discard block |
||
265 | 265 | } |
266 | 266 | } |
267 | 267 | |
268 | -if (! function_exists('removeSubCollectionInput')) { |
|
268 | +if (!function_exists('removeSubCollectionInput')) { |
|
269 | 269 | function removeSubCollectionInput(Request $request) |
270 | 270 | { |
271 | 271 | return $request; |
272 | 272 | } |
273 | 273 | } |
274 | 274 | |
275 | -if (! function_exists('prepareRequest')) { |
|
275 | +if (!function_exists('prepareRequest')) { |
|
276 | 276 | |
277 | 277 | /** |
278 | 278 | * @param Request $request |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | } |
295 | 295 | } |
296 | 296 | |
297 | -if (! function_exists('getArrayWithEmptyObj')) { |
|
297 | +if (!function_exists('getArrayWithEmptyObj')) { |
|
298 | 298 | |
299 | 299 | /** |
300 | 300 | * @param $model |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | } |
322 | 322 | } |
323 | 323 | |
324 | -if (! function_exists('getCounterForRelationships')) { |
|
324 | +if (!function_exists('getCounterForRelationships')) { |
|
325 | 325 | |
326 | 326 | /** |
327 | 327 | * @param $method |