Passed
Pull Request — master (#5)
by Artem
05:27
created
src/Cache.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.