Passed
Push — master ( 80c89b...178b52 )
by Dmitry
02:12
created
src/Provider31.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@  discard block
 block discarded – undo
76 76
             $this->response = $this->get_response();
77 77
 
78 78
             Log::instance()->add('the request was processed successfully');
79
-        }
80
-        catch (\Exception $e)
79
+        } catch (\Exception $e)
81 80
         {
82 81
             $this->response = $this->get_error_response($e);
83 82
 
@@ -197,12 +196,10 @@  discard block
 block discarded – undo
197 196
         if ($e instanceof Exception\Structure)
198 197
         {
199 198
             $message = 'Error in request';
200
-        }
201
-        elseif ($e instanceof Exception\Sign)
199
+        } elseif ($e instanceof Exception\Sign)
202 200
         {
203 201
             $message = 'Signature error!';
204
-        }
205
-        elseif ($e instanceof Exception\Runtime)
202
+        } elseif ($e instanceof Exception\Runtime)
206 203
         {
207 204
             $message = 'Error while processing request';
208 205
         }
Please login to merge, or discard this patch.