Completed
Push — v1.ns ( 6f7a44...3cce68 )
by Timo
03:08
created
src/Factory/DedicatedFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@
 block discarded – undo
47 47
         return new DedicatedFactory(array($class, '__construct'), $parameters); 
48 48
     } 
49 49
 
50
+    /**
51
+     * @param string[] $callable
52
+     */
50 53
     public static function getfromCallable($callable, array $parameters = array()){
51 54
         return new DedicatedFactory($callable, $parameters); 
52 55
     } 
Please login to merge, or discard this patch.
src/Service/ServiceProvider.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
         );
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $key
117
+     */
115 118
     public function provideService($key){
116 119
         $this->doFireEvent(self::EVENT_BEFORE_PROVIDE_SERVICE, array(
117 120
             self::HEADER_KEY=>$key)
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         if ($this->hasService($key)) {
119 119
             $service = $this->getService($key);
120
-        }else {
120
+        } else {
121 121
             $service = $this->createService($key);
122 122
         }
123 123
 
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
                 ));
150 150
 
151 151
                 return $node;                
152
-            }else {
152
+            } else {
153 153
                 $errorMessage = 'COULD NOT BUILD NODE FOR KEY: '.$key;
154 154
             }
155 155
 
156
-        }else {
156
+        } else {
157 157
             $errorMessage = 'NO CONFIG FOR KEY: '.$key;
158 158
         }
159 159
         $this->doFireEvent(self::EVENT_CREATE_SERVICE_ERROR, array(
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
                     self::HEADER_NODE => $nodeInstance
198 198
                 ));
199 199
                 return $nodeInstance;
200
-            }else {
200
+            } else {
201 201
                 $errorMessage = 'BUILDER RETURNED NO OBJECT FOR NODE-TYPE: '.$nodeName;
202 202
             }
203
-        }else {
203
+        } else {
204 204
             $errorMessage = 'NO BUILDER FOUND FOR NODE-TYPE: '.$nodeName;
205 205
         }
206 206
 
Please login to merge, or discard this patch.
src/Dispatcher/ClassEventDispatcher.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
          * @param array $headers headers of the event-object as key/value pairs
88 88
          * @param string $eventClass event-class to create instances from
89 89
          * @return
90
-         * @see EventBuilder
90
+         boolean|null @see EventBuilder
91 91
          */
92 92
     public function buildAndNotify($name, $object, array $headers = array(), $eventClass = false, $type = false){
93 93
         if(!$this->hasListeners($name, ($object))){
Please login to merge, or discard this patch.
src/Dispatcher/Dispatcher.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,6 @@
 block discarded – undo
65 65
      * Disconnects all listeners.
66 66
      * 
67 67
      * @access public
68
-     * @param Callable|PEIP\INF\Handler\Handler $listener
69 68
      * @return void
70 69
      */
71 70
     public function disconnectAll(){
Please login to merge, or discard this patch.
src/Plugins/BasePlugin.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      *
214 214
      * @access protected
215 215
      * @param object $config configuration object to create arguments from.
216
-     * @return mixed build arguments
216
+     * @return \PEIP\INF\Channel\Channel[] build arguments
217 217
      */
218 218
     protected function getReplyHandlerArguments($config){
219 219
         $args = array(
@@ -259,6 +259,7 @@  discard block
 block discarded – undo
259 259
      * @access protected
260 260
      * @param string the configuration type ofthe channel (e.g.: 'reply', 'request')
261 261
      * @param object $config configuration object to return channel from.
262
+     * @param string $type
262 263
      * @return \PEIP\INF\Channel\Channel reply-channel
263 264
      */
264 265
     public function doGetChannel($type, $config){
Please login to merge, or discard this patch.
src/Message/StringMessage.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@
 block discarded – undo
64 64
      * @static
65 65
      * @access public
66 66
      * @implements \PEIP\INF\Base\Buildable
67
-     * @param string $name the name of the header
68 67
      * @return boolean wether the header is set
69 68
      */
70 69
     public static function build(array $arguments = array()){
Please login to merge, or discard this patch.
src/ABS/Splitter/MessageSplitter.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $name = is_object($name) ? get_class($name) : (string)$name;
23 23
         if(Test::assertClassOrInterfaceExists($name)){
24 24
             parent::connect($name, $listener);
25
-        }else{
25
+        } else{
26 26
             throw new \InvalidArgumentException($name." is not an Class nor Interface");
27 27
         }
28 28
     }
Please login to merge, or discard this patch.
src/Service/HeaderServiceActivator.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $name = is_object($name) ? get_class($name) : (string)$name;
23 23
         if(Test::assertClassOrInterfaceExists($name)){
24 24
             parent::connect($name, $listener);
25
-        }else{
25
+        } else{
26 26
             throw new \InvalidArgumentException($name." is not an Class nor Interface");
27 27
         }
28 28
     }
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.