Completed
Push — v1.ns ( 6f7a44...3cce68 )
by Timo
03:08
created
src/Pipe/Pipe.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         //if(\PEIP\Util\Test::assertMessage($message)){
109 109
             if ($this->getOutputChannel()) { 
110 110
                 $this->getOutputChannel()->send($message);
111
-            }else { 
111
+            } else { 
112 112
                 $this->doSend($message);
113 113
             }
114 114
         //}
Please login to merge, or discard this patch.
src/Pipe/FixedEventPipe.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function setInputChannel(\PEIP\INF\Channel\Channel $inputChannel) {        
35 35
         if (isset($this->eventName)) {
36 36
             $this->connectChannel($inputChannel);   
37
-        }else {
37
+        } else {
38 38
             $this->inputChannel = $inputChannel;    
39 39
         }               
40 40
     }       
Please login to merge, or discard this patch.
src/ABS/Dispatcher/Dispatcher.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     protected static function doNotifyOne($listener, $subject) {
43 43
         if (is_callable($listener)) {
44 44
             $res = call_user_func($listener, $subject);
45
-        }else {
45
+        } else {
46 46
             $res = $listener->handle($subject);
47 47
         }
48 48
         return $res;
Please login to merge, or discard this patch.
src/ABS/Service/ServiceActivator.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $res = NULL;
61 61
         if (is_callable($this->serviceCallable)) {
62 62
             $res = call_user_func($this->serviceCallable, $message->getContent());
63
-        }else {
63
+        } else {
64 64
             if (is_object($this->serviceCallable) && method_exists($this->serviceCallable, 'handle')) {
65 65
                 $res = $this->serviceCallable->handle($message->getContent());
66 66
             }
Please login to merge, or discard this patch.
src/ABS/Channel/PollableChannel.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
         $message = NULL;
49 49
         if ($timeout == 0) {
50 50
             $message = $this->getMessage(); 
51
-        }elseif ($timeout < 0) {
51
+        } elseif ($timeout < 0) {
52 52
             while (!$message = $this->getMessage()) {
53 53
                                 
54 54
             }
55
-        }else {
55
+        } else {
56 56
             $time = time() + $timeout;
57 57
             while (($time > time()) && !$message = $this->getMessage()) {
58 58
                 
Please login to merge, or discard this patch.
src/Data/ParameterHolderCollection.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             $store = $this->factory->build();
51 51
             if ($store instanceof \PEIP\INF\Data\ParameterHolder) {
52 52
                 $this->stores[$namespace] = $store;
53
-            }else {
53
+            } else {
54 54
                 throw new \Exception('Could not build Instance of \PEIP\INF\Data\ParameterHolder from factory.');
55 55
             }
56 56
         }
Please login to merge, or discard this patch.
src/Data/StoreCollection.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
             $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/Translator/XMLArrayTranslator.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
                 throw new \Exception('loading XML failed');  
31 31
             }
32 32
             
33
-        }
34
-        catch (\Exception $e) {
33
+        } catch (\Exception $e) {
35 34
             return false;
36 35
         }     
37 36
         
@@ -65,7 +64,7 @@  discard block
 block discarded – undo
65 64
                         )
66 65
                     );
67 66
                 }
68
-            }else {
67
+            } else {
69 68
                 $array[$name] = array();
70 69
             }
71 70
             $array[$name][] = $res;
Please login to merge, or discard this patch.
src/Channel/QueueChannel.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     protected function doSend(\PEIP\INF\Message\Message $message) {
80 80
         if ($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()) {
81 81
             $this->queue->enqueque($message);
82
-        }else {
82
+        } else {
83 83
             throw new \Exception('Not implemented yet.');
84 84
         }            
85 85
     }       
Please login to merge, or discard this patch.