Completed
Push — v1.ns ( a6bb16...dc5273 )
by Timo
03:36
created
examples/Cafe/lib/model/Barista.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     	if($cold){
40 40
     		$type = 'cold';
41 41
     		$count = $this->coldDrinkCounter;
42
-    	}else{
42
+    	} else{
43 43
     		$type = 'hot';
44 44
     		$count = $this->hotDrinkCounter;    		
45 45
     	}
Please login to merge, or discard this patch.
src/Service/ServiceProvider.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         if($this->hasService($key)){
121 121
             $service =  $this->getService($key);
122
-        }else{
122
+        } else{
123 123
             $service =  $this->createService($key);
124 124
         }
125 125
 
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
                 ));
152 152
 
153 153
                 return $node;                
154
-            }else{
154
+            } else{
155 155
                 $errorMessage = 'COULD NOT BUILD NODE FOR KEY: '.$key;
156 156
             }
157 157
 
158
-        }else{
158
+        } else{
159 159
             $errorMessage = 'NO CONFIG FOR KEY: '.$key;
160 160
         }
161 161
         $this->doFireEvent(self::EVENT_CREATE_SERVICE_ERROR, array(
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
                     self::HEADER_NODE => $nodeInstance
200 200
                 ));
201 201
                 return $nodeInstance;
202
-            }else{
202
+            } else{
203 203
                 $errorMessage = 'BUILDER RETURNED NO OBJECT FOR NODE-TYPE: '.$nodeName;
204 204
             }
205
-        }else{
205
+        } else{
206 206
             $errorMessage = 'NO BUILDER FOUND FOR NODE-TYPE: '.$nodeName;
207 207
         }
208 208
 
Please login to merge, or discard this patch.
src/Translator/XMLArrayTranslator.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
         $array = array();
27 27
         try {
28 28
             $node = simplexml_load_string($content);
29
-        }
30
-        catch(\Exception $e){
29
+        } catch(\Exception $e){
31 30
             return false;
32 31
         }     
33 32
         
@@ -61,7 +60,7 @@  discard block
 block discarded – undo
61 60
                         )
62 61
                     );
63 62
                 }
64
-            }else{
63
+            } else{
65 64
                 $array[$name] = array();
66 65
             }
67 66
             $array[$name][] = $res;
Please login to merge, or discard this patch.
src/Dispatcher/ObjectMapDispatcher.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $listners = $this->doGetListeners();
105 105
         if (!$this->hadListeners($name, $object)){
106 106
             $res = false;
107
-        }else{
107
+        } else{
108 108
             $listners = $this->doGetListeners();
109 109
             $res = (boolean) count($listners[$object][$name]);
110 110
         }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         foreach($listeners as $listener){ 
212 212
              if($listener instanceof \PEIP\INF\Handler\Handler){
213 213
                 $listener->handle($subject);
214
-             }elseif(is_callable($listener)){
214
+             } elseif(is_callable($listener)){
215 215
                  call_user_func($listener, $subject);
216 216
              }
217 217
         }   
Please login to merge, or discard this patch.
src/Dispatcher/ClassEventDispatcher.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,10 +70,10 @@
 block discarded – undo
70 70
                      ),
71 71
                      $object
72 72
                  );
73
-            }else{
73
+            } else{
74 74
                 throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
75 75
             }
76
-        }else{
76
+        } else{
77 77
             throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event');
78 78
         }
79 79
     }       //put your code here
Please login to merge, or discard this patch.
src/Gateway/SimpleMessagingGateway.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@
 block discarded – undo
116 116
         $this->send($content);
117 117
         try {
118 118
             $res = $this->receive();
119
-        }
120
-        catch(\Exception $e){
119
+        } catch(\Exception $e){
121 120
             return NULL;
122 121
         }
123 122
         return $res;
Please login to merge, or discard this patch.
src/ABS/Handler/MessageHandler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $this->inputChannel = $inputChannel;    
78 78
         if($this->inputChannel instanceof \PEIP\INF\Channel\SubscribableChannel){
79 79
                 $this->inputChannel->subscribe($this);
80
-        }else{          
80
+        } else{          
81 81
             $this->unwrapEvents = true;
82 82
             $this->inputChannel->connect('postSend', $this);
83 83
         }  
Please login to merge, or discard this patch.
src/Message/CallableMessageHandler.php 1 patch
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 if($static && !$reflectionFunc->isStatic()){
57 57
                     throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not an Callable: Method "'.$method.'" of class '.$class.' is not static.');                  
58 58
                 }
59
-            }else{
59
+            } else{
60 60
                 $reflectionFunc = new \ReflectionFunction($this->callable);  
61 61
             }
62 62
             $this->requiredParameters = $reflectionFunc->getNumberOfRequiredParameters();
63
-        }else{
63
+        } else{
64 64
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not a Callable');
65 65
         }   
66 66
     }   
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
         }   
80 80
         try {
81 81
             return call_user_func_array($this->callable, array($message, $channel, $sent));
82
-        }
83
-        catch(\Exception $e){
82
+        } catch(\Exception $e){
84 83
             throw new \RuntimeException('Unable to call Callable: '.$e->getMessage());
85 84
         }   
86 85
     }   
Please login to merge, or discard this patch.
src/Message/GenericMessage.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,12 +134,10 @@
 block discarded – undo
134 134
         $res = false;
135 135
         try {
136 136
             $res = (string)$this->getContent();
137
-        }
138
-        catch(\Exception $e){           
137
+        } catch(\Exception $e){           
139 138
             try {
140 139
                 $res = get_class($this->getContent());
141
-            }
142
-            catch(\Exception $e){
140
+            } catch(\Exception $e){
143 141
 
144 142
             }
145 143
         }
Please login to merge, or discard this patch.