Completed
Push — v1.ns ( 31020d...499c60 )
by Timo
04:35 queued 01:07
created
src/Data/ParameterCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param $offset 
33 33
      * @return 
34 34
      */
35
-    public function offsetExists($offset){
35
+    public function offsetExists($offset) {
36 36
         return $this->hasParameter($offset);
37 37
     }   
38 38
     
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param $offset 
43 43
      * @return 
44 44
      */
45
-    public function offsetGet($offset){
45
+    public function offsetGet($offset) {
46 46
         return $this->getParameter($offset);
47 47
     }
48 48
     
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param $name 
53 53
      * @return 
54 54
      */
55
-    public function offsetUnset($name){
55
+    public function offsetUnset($name) {
56 56
         $this->deleteParameter($name);
57 57
     }   
58 58
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param $name 
64 64
      * @return 
65 65
      */
66
-    public function offsetSet($offset, $name){
66
+    public function offsetSet($offset, $name) {
67 67
         $this->setParameter($offeset, $name);
68 68
     }
69 69
     
Please login to merge, or discard this patch.
src/Data/ParameterHolder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $key name of parameter
35 35
      * @return boolean wether parameter is set
36 36
      */
37
-    public function hasParameter($key){
37
+    public function hasParameter($key) {
38 38
         return array_key_exists($key, $this->parameters);
39 39
     }   
40 40
         
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $key name of parameter 
46 46
      * @return 
47 47
      */
48
-    public function getParameter($key){
48
+    public function getParameter($key) {
49 49
         return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : NULL;
50 50
     }
51 51
         
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $key name of parameter 
57 57
      * @return 
58 58
      */
59
-    public function deleteParameter($key){
59
+    public function deleteParameter($key) {
60 60
         unset($this->parameters[$key]);
61 61
     }   
62 62
    
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param string $value value to set for the parameter 
69 69
      * @return 
70 70
      */
71
-    public function setParameter($key, $value){
71
+    public function setParameter($key, $value) {
72 72
         $this->parameters[$key] = $value;
73 73
     }
74 74
     
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param array $parameters parameters as key/value pairs 
80 80
      * @return 
81 81
      */
82
-    public function setParameters(array $parameters){
82
+    public function setParameters(array $parameters) {
83 83
         $this->parameters = $parameters;        
84 84
     }
85 85
    
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @access public
90 90
      * @return array $parameters parameters as key/value pairs
91 91
      */
92
-    public function getParameters(){
92
+    public function getParameters() {
93 93
         return $this->parameters;
94 94
     }
95 95
    
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param array $parameters parameters as key/value pairs 
102 102
      * @return 
103 103
      */
104
-    public function addParameters(array $parameters){
104
+    public function addParameters(array $parameters) {
105 105
         $this->parameters = array_merge($this->parameters, $parameters);
106 106
         array_unique($this->parameters);
107 107
     }   
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      * @param array $parameters parameters as key/value pairs 
115 115
      * @return 
116 116
      */
117
-    public function addParametersIfNot(array $parameters){
117
+    public function addParametersIfNot(array $parameters) {
118 118
         $this->parameters = array_merge($parameters, $this->parameters);
119 119
         array_unique($this->parameters);
120 120
     }   
Please login to merge, or discard this patch.
src/Data/StoreCollection.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 class StoreCollection 
26 26
     extends \PEIP\Data\InternalStoreAbstract 
27
-    implements \PEIP\INF\Data\StoreCollection{
27
+    implements \PEIP\INF\Data\StoreCollection {
28 28
 
29 29
     protected 
30 30
         $factory,
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param \PEIP\INF\Factory\DedicatedFactory $factory a factory instance to create new stores
38 38
      * @return 
39 39
      */
40
-    public function __construct(\PEIP\INF\Factory\DedicatedFactory $factory){
40
+    public function __construct(\PEIP\INF\Factory\DedicatedFactory $factory) {
41 41
         $this->factory = $factory;
42 42
     }
43 43
  
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
      * @param string $namespace the namespace to get the store for
50 50
      * @return \PEIP\INF\Data\Store a store for given namespace
51 51
      */
52
-    protected function getStoreOrCreate($namespace){
53
-        if(!$this->hasPrivateValue($namespace)){
52
+    protected function getStoreOrCreate($namespace) {
53
+        if (!$this->hasPrivateValue($namespace)) {
54 54
             $store = $this->factory->build();
55
-            if($store instanceof \PEIP\INF\Data\Store){
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
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param array $values key/value pairs to store
70 70
      * @return 
71 71
      */
72
-    public function setValues($namespace, array $values){
72
+    public function setValues($namespace, array $values) {
73 73
         $this->getStoreOrCreate($namespace)->setValues($values);
74 74
     }
75 75
   
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param $values 
83 83
      * @return 
84 84
      */
85
-    public function addValues($namespace, array $values){
85
+    public function addValues($namespace, array $values) {
86 86
         $this->getStoreOrCreate($namespace)->addValues($values);
87 87
     }
88 88
     
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param string $namespace the namspace to return values for  
94 94
      * @return array stored key/value pairs
95 95
      */
96
-    public function getValues($namespace){
96
+    public function getValues($namespace) {
97 97
         $this->getStoreOrCreate($namespace)->getValues();
98 98
     }
99 99
   
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @param string $key the key to return value for 
106 106
      * @return mixed value for the given key on the given namespace
107 107
      */
108
-    public function getValue($namespace, $key){
108
+    public function getValue($namespace, $key) {
109 109
         $this->getStoreOrCreate($namespace)->getValue($key);
110 110
     }
111 111
    
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param mixed $value the value to store 
119 119
      * @return 
120 120
      */
121
-    public function setValue($namespace, $key, $value){
121
+    public function setValue($namespace, $key, $value) {
122 122
         $this->getStoreOrCreate($namespace)->setValues($values);
123 123
     }
124 124
   
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param string $key the key to look for a value 
131 131
      * @return 
132 132
      */
133
-    public function hasValue($namespace, $key){
133
+    public function hasValue($namespace, $key) {
134 134
         $this->getStoreOrCreate($namespace)->hasValue($key);
135 135
     }
136 136
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @param string $key the key to remove the value from
143 143
      * @return 
144 144
      */
145
-    public function deleteValue($namespace, $key){
145
+    public function deleteValue($namespace, $key) {
146 146
         $this->getStoreOrCreate($namespace)->setValues($values);
147 147
     }
148 148
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @param \PEIP\INF\Data\Store $store the store instance to register for the namespace
155 155
      * @return 
156 156
      */
157
-    public function setStore($namespace, \PEIP\INF\Data\Store $store){
157
+    public function setStore($namespace, \PEIP\INF\Data\Store $store) {
158 158
         $this->setInternalValue($namespace, $store);    
159 159
     } 
160 160
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @param string $namespace the namespace to return the store for 
166 166
      * @return \PEIP\INF\Data\Store store instance for given namespace (if set)
167 167
      */
168
-    public function getStore($namespace){
168
+    public function getStore($namespace) {
169 169
         $this->getInternalValue($namespace);
170 170
     }
171 171
  
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * @param string $namespace the namespace to check for a store instance 
177 177
      * @return boolean wether a store has been registered for the given namespace
178 178
      */
179
-    public function hasStore($namespace){
179
+    public function hasStore($namespace) {
180 180
         return $this->hasInternalValue($namespace);
181 181
     }
182 182
  
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @param string $namespace the namespace to ungegister the store for 
188 188
      * @return 
189 189
      */
190
-    public function deleteStore($namespace){
190
+    public function deleteStore($namespace) {
191 191
         return $this->deleteInternalValue($namespace);
192 192
     }    
193 193
 
Please login to merge, or discard this 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/Listener/Wiretap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
      * @param $outputChannel 
34 34
      * @return 
35 35
      */
36
-    public function __construct(\PEIP\INF\Channel\Channel $inputChannel, \PEIP\INF\Channel\Channel $outputChannel = NULL){
36
+    public function __construct(\PEIP\INF\Channel\Channel $inputChannel, \PEIP\INF\Channel\Channel $outputChannel = NULL) {
37 37
         $this->setEventName('preSend');
38 38
         $this->setInputChannel($inputChannel);
39
-        if(is_object($outputChannel)){
39
+        if (is_object($outputChannel)) {
40 40
             $this->setOutputChannel($outputChannel);
41 41
         }           
42 42
     }           
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param $message 
48 48
      * @return 
49 49
      */
50
-    protected function doReply(\PEIP\INF\Message\Message $message){
50
+    protected function doReply(\PEIP\INF\Message\Message $message) {
51 51
         $this->replyMessage($message->getHeader('MESSAGE'));
52 52
     }
53 53
     
Please login to merge, or discard this patch.
src/Context/XMLContextReader.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,32 +19,32 @@
 block discarded – undo
19 19
     protected $config;
20 20
 
21 21
 
22
-    public function __construct($config){
22
+    public function __construct($config) {
23 23
         $this->config = (array)simplexml_load_string($config);
24 24
     }
25 25
 
26
-    public function read(){
27
-        foreach($this->config as $xmlNode){
26
+    public function read() {
27
+        foreach ($this->config as $xmlNode) {
28 28
             $arrayNode = XMLArrayTranslator::translate($xmlNode);
29 29
             $this->doFireEvent('read_node', array('NODE'=>$arrayNode));
30 30
         }
31 31
         $this->config = array();
32 32
     }
33 33
 
34
-    public static function convertXmlToArray(\SimpleXMLElement $node, array $array = array()){
34
+    public static function convertXmlToArray(\SimpleXMLElement $node, array $array = array()) {
35 35
         $node->type = $node->type ? $node->type : $node->getName();
36 36
 
37
-        foreach($node->attributes() as $name=>$value){
37
+        foreach ($node->attributes() as $name=>$value) {
38 38
             $array[$name] = (string)$value;
39 39
         }
40
-        foreach($node->children() as $child){
40
+        foreach ($node->children() as $child) {
41 41
                 $a = $b->getName();
42
-                if(!$b->children()){
42
+                if (!$b->children()) {
43 43
                         $arr[$a] = trim($b[0]);
44 44
                 }
45
-                else{
45
+                else {
46 46
                         $arr[$a][$iter] = array();
47
-                        $arr[$a][$iter] = xml2phpArray($b,$arr[$a][$iter]);
47
+                        $arr[$a][$iter] = xml2phpArray($b, $arr[$a][$iter]);
48 48
                 }
49 49
         $iter++;
50 50
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
                 $a = $b->getName();
42 42
                 if(!$b->children()){
43 43
                         $arr[$a] = trim($b[0]);
44
-                }
45
-                else{
44
+                } else{
46 45
                         $arr[$a][$iter] = array();
47 46
                         $arr[$a][$iter] = xml2phpArray($b,$arr[$a][$iter]);
48 47
                 }
Please login to merge, or discard this patch.
src/INF/Dispatcher/MapDispatcher.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
     extends \PEIP\INF\Event\Connectable { 
26 26
 
27 27
 
28
-  /**
29
-   * Notifies all listeners of a given event.
30
-   *
31
-   * @param  $event A  instance
32
-   *
33
-   * @return  The  instance
34
-   */
28
+    /**
29
+     * Notifies all listeners of a given event.
30
+     *
31
+     * @param  $event A  instance
32
+     *
33
+     * @return  The  instance
34
+     */
35 35
     public function notify($name, $subject);
36 36
   
37 37
 
Please login to merge, or discard this patch.
src/INF/Dispatcher/ListDispatcher.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
 
25 25
 interface ListDispatcher extends \PEIP\INF\Dispatcher\Dispatcher {
26 26
 
27
-  public function connect( $handler);
27
+    public function connect( $handler);
28 28
 
29
-  public function disconnect( $handler);
29
+    public function disconnect( $handler);
30 30
 
31
-  public function hasListeners();
31
+    public function hasListeners();
32 32
 
33
-  public function getListeners();
33
+    public function getListeners();
34 34
 
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 
25 25
 interface ListDispatcher extends \PEIP\INF\Dispatcher\Dispatcher {
26 26
 
27
-  public function connect( $handler);
27
+  public function connect($handler);
28 28
 
29
-  public function disconnect( $handler);
29
+  public function disconnect($handler);
30 30
 
31 31
   public function hasListeners();
32 32
 
Please login to merge, or discard this patch.
src/INF/Base/Singleton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
 
23 23
 interface Singleton {
24 24
 
25
-    public static function getInstance ();
25
+    public static function getInstance();
26 26
 
27 27
 }
Please login to merge, or discard this patch.
src/INF/Event/EventDispatcher.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
 interface EventDispatcher 
26 26
     extends \PEIP\INF\Event\Connectable {
27 27
 
28
-  public function notify($subject);
28
+    public function notify($subject);
29 29
 
30
-  public function notifyUntil($subject);
30
+    public function notifyUntil($subject);
31 31
 
32
-  public function filter($subject);
32
+    public function filter($subject);
33 33
 
34 34
     
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.