Completed
Push — v1.ns ( ca9443...33b3cd )
by Timo
9s
created
examples/Cafe/lib/messaging/DrinkRouter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     protected function selectChannels(Message $message)
9 9
     {
10 10
         $order = $message->getContent();
11
-        $channelName = $order['iced']  ? 'coldDrinks' : 'hotDrinks';
11
+        $channelName = $order['iced'] ? 'coldDrinks' : 'hotDrinks';
12 12
         echo PEIP_LINE_SEPARATOR."DrinkRouter: routed to channel: $channelName";
13 13
 
14 14
         return $channelName;
Please login to merge, or discard this patch.
examples/Cafe/lib/model/Barista.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 
11 11
     public function setHotDrinkDelay($hotDrinkDelay)
12 12
     {
13
-        $this->hotDrinkDelay = (int) $hotDrinkDelay;
13
+        $this->hotDrinkDelay = (int)$hotDrinkDelay;
14 14
     }
15 15
 
16 16
     public function setColdDrinkDelay($coldDrinkDelay)
17 17
     {
18
-        $this->coldDrinkDelay = (int) $coldDrinkDelay;
18
+        $this->coldDrinkDelay = (int)$coldDrinkDelay;
19 19
     }
20 20
 
21 21
     public function prepareHotDrink(array $orderItem)
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if ($cold) {
49 49
             $type = 'cold';
50 50
             $count = $this->coldDrinkCounter;
51
-        } else {
51
+        }else {
52 52
             $type = 'hot';
53 53
             $count = $this->hotDrinkCounter;
54 54
         }
Please login to merge, or discard this patch.
examples/Cafe/lib/model/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $x = 0;
38 38
         foreach ($this->items as $item) {
39
-            $x += (int) $item['number'];
39
+            $x += (int)$item['number'];
40 40
         }
41 41
 
42 42
         return $x;
Please login to merge, or discard this patch.
examples/Cafe/example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
             // receive drinks
55 55
         $drinks = $cafe->receiveDelivery();
56 56
     }
57
-} else {
57
+}else {
58 58
     throw new RuntimeException('Could not get CafeGateway');
59 59
 }
Please login to merge, or discard this patch.