Completed
Push — php7/base ( 153b4b )
by Albert
07:56 queued 05:57
created
src/OtherExamples/Form.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * Form constructor.
11 11
      *
12
-     * @param $x
12
+     * @param integer $x
13 13
      */
14 14
     public function __construct($x)
15 15
     {
Please login to merge, or discard this patch.
src/PHP7Kata/LegacyToMigrate.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -54,12 +54,10 @@  discard block
 block discarded – undo
54 54
         if ($a == $b)
55 55
         {
56 56
             return 0;
57
-        }
58
-        elseif ($a > $b)
57
+        } elseif ($a > $b)
59 58
         {
60 59
             return 1;
61
-        }
62
-        else
60
+        } else
63 61
         {
64 62
             return -1;
65 63
         }
@@ -162,8 +160,7 @@  discard block
 block discarded – undo
162 160
         try
163 161
         {
164 162
             $this->functionThatFails();
165
-        }
166
-        catch (FirstException $e)
163
+        } catch (FirstException $e)
167 164
         {
168 165
             return false;
169 166
         }
@@ -171,8 +168,7 @@  discard block
 block discarded – undo
171 168
         try
172 169
         {
173 170
             $this->anotherFunctionThatAlsoFails();
174
-        }
175
-        catch (SecondException $e)
171
+        } catch (SecondException $e)
176 172
         {
177 173
             return false;
178 174
         }
Please login to merge, or discard this patch.