Completed
Push — GildedRose/edu-dani ( e1f431 )
by Albert
04:13
created
src/GildedRoseKata/GildedRose.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
         elseif ($item->name == SulfurasItem::NAME)
115 115
         {
116 116
             $new_item = SulfurasItem::createSulfurasItem($item);
117
-        }else{
117
+        } else {
118 118
             $new_item = $item;
119 119
         }
120 120
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
             if ($item->name != 'Aged Brie' and $item->name != 'Backstage passes to a TAFKAL80ETC concert')
22 22
             {
23 23
                 $this->decrementQualityOneUnitIfItemNameIsNotSulfuras($item);
24
-            }
25
-            else
24
+            } else
26 25
             {
27 26
                 $this->incrementQuality($item);
28 27
             }
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
             if ($item->name != 'Backstage passes to a TAFKAL80ETC concert')
46 45
             {
47 46
                 $this->decrementQualityOneUnitIfItemNameIsNotSulfuras($item);
48
-            }
49
-            else
47
+            } else
50 48
             {
51 49
                 $item->quality = $item->quality - $item->quality;
52 50
             }
@@ -106,15 +104,13 @@  discard block
 block discarded – undo
106 104
         if ($item->name == BackstagePassesItem::NAME)
107 105
         {
108 106
             $new_item = BackstagePassesItem::createBackstagePasses($item);
109
-        }
110
-        elseif ($item->name == AgedBrieItem::NAME)
107
+        } elseif ($item->name == AgedBrieItem::NAME)
111 108
         {
112 109
             $new_item = AgedBrieItem::createAgedBrieItem($item);
113
-        }
114
-        elseif ($item->name == SulfurasItem::NAME)
110
+        } elseif ($item->name == SulfurasItem::NAME)
115 111
         {
116 112
             $new_item = SulfurasItem::createSulfurasItem($item);
117
-        }else{
113
+        } else{
118 114
             $new_item = $item;
119 115
         }
120 116
 
Please login to merge, or discard this patch.