Completed
Push — v1.ns ( 3cce68...ca9443 )
by Timo
03:14
created
src/Message/CallableMessageHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 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
     }   
Please login to merge, or discard this patch.
src/Context/XMLContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public static function createFromFile($file) {
95 95
         if (file_exists($file)) {
96 96
             return self::createFromString(file_get_contents($file));
97
-        } else {
97
+        }else {
98 98
             throw new \RuntimeException('Cannot open file  "'.$file.'".');
99 99
         }
100 100
     }
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
         $ref = trim((string)$config['ref']);
618 618
         if ($ref != '') {
619 619
             $service = $this->getService($ref); 
620
-        } else {
620
+        }else {
621 621
             $service = $this->createService($config);
622 622
         }
623 623
         return $service;
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
                 if ($entry->getName() == 'value') {
662 662
                     if ($entry['key']) {
663 663
                         $arg[(string)$entry['key']] = (string)$entry;   
664
-                    } else {
664
+                    }else {
665 665
                         $arg[] = (string)$entry;
666 666
                     }
667 667
                 } elseif ($entry->getName() == 'service') {
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
                 $constructor = (string)$config["constructor"];
775 775
         if ($constructor != '') {
776 776
             $service = call_user_func_array(array($cls, $constructor), $arguments); 
777
-        } else {
777
+        }else {
778 778
             $service = self::build($cls, $arguments); 
779 779
         }        
780 780
             } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/Data/StoreCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             $store = $this->factory->build();
55 55
             if ($store instanceof \PEIP\INF\Data\Store) {
56 56
                 $this->setPrivateValue($namespace, $store);
57
-            } else {
57
+            }else {
58 58
                 throw new \Exception('Could not build Instance of \PEIP\INF\Data\Store from factory.');
59 59
             }
60 60
         }
Please login to merge, or discard this patch.
src/Dispatcher/ObjectEventDispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
46 46
                 if ($this->hasListeners($name, $object->getContent())) {
47 47
                     return self::doNotify($this->getListeners($name, $object->getContent()), $object);  
48 48
                 }                   
49
-            } else {
49
+            }else {
50 50
                 throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
51 51
             }   
52
-        } else {
52
+        }else {
53 53
             throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event');
54 54
         }  
55 55
     }   
Please login to merge, or discard this patch.
src/Dispatcher/ObjectMapDispatcher.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 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
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 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
@@ -69,10 +69,10 @@
 block discarded – undo
69 69
                         ),
70 70
                         $object
71 71
                     );
72
-            }else {
72
+            } else {
73 73
                 throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
74 74
             }
75
-        }else {
75
+        } else {
76 76
             throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event');
77 77
         }
78 78
     }       //put your code here
Please login to merge, or discard this patch.
src/Dispatcher/EventClassDispatcher.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
46 46
                 if ($this->hasListeners($name, $object->getContent())) {
47 47
                     return self::doNotify($this->getListeners($name, $object->getContent()), $object);  
48 48
                 }                   
49
-            }else {
49
+            } else {
50 50
                 throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
51 51
             }   
52
-        }else {
52
+        } else {
53 53
             throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event');
54 54
         }  
55 55
     }   
Please login to merge, or discard this patch.
examples/Cafe/lib/model/Barista.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     protected function doSend(\PEIP\INF\Message\Message $message) {
55 55
         if ($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()) {
56 56
             $this->queue->insert($message, $message->getHeader($this->priorityHeader));
57
-        }else {
57
+        } else {
58 58
             throw new \Exception('Not implemented yet.');
59 59
         }            
60 60
     }       
Please login to merge, or discard this patch.