Completed
Push — 4.0 ( b7ae43...1bebd1 )
by Marco
16:17
created
src/Dispatcher.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -167,6 +167,9 @@
 block discarded – undo
167 167
 
168 168
     }
169 169
 
170
+    /**
171
+     * @param string $name
172
+     */
170 173
     private function emitServiceSpecializedEvents($name) {
171 174
 
172 175
         return new ServiceEvent(
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         
74 74
         $this->logger = is_null($logger) ? DispatcherLogger::create($this->configuration) : $logger;
75 75
         
76
-        $this->cache = is_null($cache) ? new CacheManager( CacheManager::PICK_FIRST, $this->logger ) : $cache;
76
+        $this->cache = is_null($cache) ? new CacheManager(CacheManager::PICK_FIRST, $this->logger) : $cache;
77 77
         
78 78
         $this->request = new Request($this->configuration, $this->logger);
79 79
         
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         
84 84
         $this->extra = new Extra($this->logger);
85 85
         
86
-        $this->router->load( $routing_table );
86
+        $this->router->load($routing_table);
87 87
 
88 88
     }
89 89
 
@@ -131,33 +131,33 @@  discard block
 block discarded – undo
131 131
 
132 132
     public function dispatch() {
133 133
 
134
-        $this->events->emit( new DispatcherEvent($this) );
134
+        $this->events->emit(new DispatcherEvent($this));
135 135
 
136
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request') );
136
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request'));
137 137
 
138
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get()) );
138
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get()));
139 139
 
140
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.#') );
140
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.#'));
141 141
 
142 142
         $this->router->route($this->request);
143 143
 
144
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route') );
144
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route'));
145 145
 
146
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType()) );
146
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType()));
147 147
 
148
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService()) );
148
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService()));
149 149
 
150
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.#') );
150
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.#'));
151 151
 
152 152
         // translate route to service
153 153
 
154 154
         $this->router->compose($this->response);
155 155
 
156
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response') );
156
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response'));
157 157
 
158
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get()) );
158
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get()));
159 159
 
160
-        $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.#') );
160
+        $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.#'));
161 161
 
162 162
         $return = Processor::parse($this->configuration, $this->logger, $this->response);
163 163
 
Please login to merge, or discard this patch.