Passed
Push — master ( 23c0d6...0ebb81 )
by Darío
02:04
created
src/Network/Http.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,8 +127,9 @@
 block discarded – undo
127 127
     {
128 128
         $codes = $this->httpStatusCodes;
129 129
 
130
-        if (!in_array($code, array_keys($codes)))
131
-            throw new \RuntimeException("Status code not supported");
130
+        if (!in_array($code, array_keys($codes))) {
131
+                    throw new \RuntimeException("Status code not supported");
132
+        }
132 133
 
133 134
         return $this->httpStatusCodes[$code];
134 135
     }
Please login to merge, or discard this patch.
test/Network/HttpTest.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,13 +56,11 @@
 block discarded – undo
56 56
         try
57 57
         {
58 58
             $text = $http->getStatusText(65431);
59
-        }
60
-        catch (\Exception $e)
59
+        } catch (\Exception $e)
61 60
         {
62 61
             $errorObject = ($e instanceof \RuntimeException);
63 62
             $message = $e->getMessage();
64
-        }
65
-        finally
63
+        } finally
66 64
         {
67 65
             $this->assertTrue($errorObject, $message);
68 66
         }
Please login to merge, or discard this patch.