@@ -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 | * @param array $mlCollection |
| 10 | 10 | * @return string |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | //Get current Lang |
| 15 | 15 | $cl = Config::get('app.locale'); |
| 16 | 16 | |
| 17 | - if (is_array($mlCollection) && (array_key_exists('en_EN', $mlCollection) || array_key_exists('it_IT', $mlCollection) || ! is_null($mlCollection || ! isset($destination)))) { |
|
| 17 | + if (is_array($mlCollection) && (array_key_exists('en_EN', $mlCollection) || array_key_exists('it_IT', $mlCollection) || !is_null($mlCollection || !isset($destination)))) { |
|
| 18 | 18 | return $mlCollection[$cl]; |
| 19 | 19 | } else { |
| 20 | 20 | return ''; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -if (! function_exists('cl')) { |
|
| 25 | +if (!function_exists('cl')) { |
|
| 26 | 26 | /** |
| 27 | 27 | * @return string current Lang |
| 28 | 28 | */ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -if (! function_exists('ml')) { |
|
| 36 | +if (!function_exists('ml')) { |
|
| 37 | 37 | //save a localized field |
| 38 | 38 | /** |
| 39 | 39 | * @param array $destination |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | -if (! function_exists('isML')) { |
|
| 53 | +if (!function_exists('isML')) { |
|
| 54 | 54 | function isML($value) |
| 55 | 55 | { |
| 56 | 56 | if (array_key_exists('is-ml', $value)) { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | -if (! function_exists('isMD')) { |
|
| 64 | +if (!function_exists('isMD')) { |
|
| 65 | 65 | function isMD($value) |
| 66 | 66 | { |
| 67 | 67 | if (array_key_exists('is-md', $value)) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | -if (! function_exists('is_EM')) { |
|
| 75 | +if (!function_exists('is_EM')) { |
|
| 76 | 76 | function is_EM($value) |
| 77 | 77 | { |
| 78 | 78 | if ($value === 'EmbedsMany') { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | -if (! function_exists('is_EO')) { |
|
| 86 | +if (!function_exists('is_EO')) { |
|
| 87 | 87 | function is_EO($value) |
| 88 | 88 | { |
| 89 | 89 | if ($value === 'EmbedsOne') { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | -if (! function_exists('is_HM')) { |
|
| 97 | +if (!function_exists('is_HM')) { |
|
| 98 | 98 | function is_HM($value) |
| 99 | 99 | { |
| 100 | 100 | if ($value === 'HasMany') { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | -if (! function_exists('is_HO')) { |
|
| 108 | +if (!function_exists('is_HO')) { |
|
| 109 | 109 | function is_HO($value) |
| 110 | 110 | { |
| 111 | 111 | if ($value === 'HasOne') { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | -if (! function_exists('isEditable')) { |
|
| 119 | +if (!function_exists('isEditable')) { |
|
| 120 | 120 | function isEditable($value) |
| 121 | 121 | { |
| 122 | 122 | if (array_key_exists('is-editable', $value)) { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | -if (! function_exists('hasTarget')) { |
|
| 130 | +if (!function_exists('hasTarget')) { |
|
| 131 | 131 | function hasTarget($value) |
| 132 | 132 | { |
| 133 | 133 | if (array_key_exists('has-target', $value)) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | -if (! function_exists('isFillable')) { |
|
| 141 | +if (!function_exists('isFillable')) { |
|
| 142 | 142 | function isFillable($value, $event) |
| 143 | 143 | { |
| 144 | 144 | if ($event === 'add') { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | -if (! function_exists('getAID')) { |
|
| 152 | +if (!function_exists('getAID')) { |
|
| 153 | 153 | /** |
| 154 | 154 | * @param Model $model |
| 155 | 155 | * @return string |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | -if (! function_exists('getArrayWithEmptyObj')) { |
|
| 166 | +if (!function_exists('getArrayWithEmptyObj')) { |
|
| 167 | 167 | /** |
| 168 | 168 | * @param $model |
| 169 | 169 | * @return array |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | -if (! function_exists('getCounterForRelationships')) { |
|
| 191 | +if (!function_exists('getCounterForRelationships')) { |
|
| 192 | 192 | /** |
| 193 | 193 | * @param $method |
| 194 | 194 | * @param $is_EO |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | - if (! function_exists('getTypeOnTarget')) { |
|
| 208 | + if (!function_exists('getTypeOnTarget')) { |
|
| 209 | 209 | function getTypeOnTarget($relation) |
| 210 | 210 | { |
| 211 | 211 | return Arr::has($relation, 'typeOnTarget') ? Arr::get($relation, 'typeOnTarget') : 'EmbedsMany'; |