@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | try { |
132 | 132 | $output = $callback(Redis::connection('authService')); |
133 | 133 | } |
134 | - catch(\Exception $e) { |
|
134 | + catch (\Exception $e) { |
|
135 | 135 | \Illuminate\Support\Facades\Log::error($e->getMessage()); |
136 | 136 | \Illuminate\Support\Facades\Log::error($e->getTraceAsString()); |
137 | 137 | |
138 | - if($fallback instanceof \Closure) { |
|
138 | + if ($fallback instanceof \Closure) { |
|
139 | 139 | $output = $fallback($e); |
140 | 140 | } |
141 | 141 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | protected function castValueToString($value) |
154 | 154 | { |
155 | - if(is_bool($value)) { |
|
155 | + if (is_bool($value)) { |
|
156 | 156 | return $value ? 'true' : 'false'; |
157 | 157 | } |
158 | 158 | |
@@ -168,11 +168,11 @@ discard block |
||
168 | 168 | */ |
169 | 169 | protected function castValueFromString($value) |
170 | 170 | { |
171 | - if($value === 'true' || $value === 'false') { |
|
171 | + if ($value === 'true' || $value === 'false') { |
|
172 | 172 | return $value === 'true' ? true : false; |
173 | 173 | } |
174 | 174 | |
175 | - if($value === '') { |
|
175 | + if ($value === '') { |
|
176 | 176 | return null; |
177 | 177 | } |
178 | 178 |
@@ -130,8 +130,7 @@ |
||
130 | 130 | { |
131 | 131 | try { |
132 | 132 | $output = $callback(Redis::connection('authService')); |
133 | - } |
|
134 | - catch(\Exception $e) { |
|
133 | + } catch(\Exception $e) { |
|
135 | 134 | \Illuminate\Support\Facades\Log::error($e->getMessage()); |
136 | 135 | \Illuminate\Support\Facades\Log::error($e->getTraceAsString()); |
137 | 136 |