@@ -214,7 +214,7 @@ |
||
214 | 214 | * |
215 | 215 | * @param array $row |
216 | 216 | * |
217 | - * @return array |
|
217 | + * @return callable |
|
218 | 218 | */ |
219 | 219 | private function filterRow(array $row) |
220 | 220 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Get the required parameter for the event. |
51 | 51 | * |
52 | - * @return array |
|
52 | + * @return string[] |
|
53 | 53 | */ |
54 | 54 | public function getEventRequiredParameters() |
55 | 55 | { |
@@ -179,7 +179,7 @@ |
||
179 | 179 | /** |
180 | 180 | * Return HTTP method. |
181 | 181 | * |
182 | - * @return bool |
|
182 | + * @return string |
|
183 | 183 | */ |
184 | 184 | public function getMethod() |
185 | 185 | { |
@@ -170,8 +170,8 @@ |
||
170 | 170 | /** |
171 | 171 | * Find url params. |
172 | 172 | * |
173 | - * @param array $items |
|
174 | 173 | * |
174 | + * @param string $path |
|
175 | 175 | * @return array |
176 | 176 | */ |
177 | 177 | public function findParams($path) |
@@ -61,7 +61,7 @@ |
||
61 | 61 | foreach ($namespaces as $namespace => $classes) { |
62 | 62 | foreach ($classes as $name) { |
63 | 63 | $class = '\\Jitamin\\'.$namespace.'\\'.$name; |
64 | - $container[lcfirst($name)] = function ($c) use ($class) { |
|
64 | + $container[lcfirst($name)] = function($c) use ($class) { |
|
65 | 65 | return new $class($c); |
66 | 66 | }; |
67 | 67 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | { |
80 | 80 | $container = $this->container; |
81 | 81 | |
82 | - $this->helpers[$property] = function () use ($className, $container) { |
|
82 | + $this->helpers[$property] = function() use ($className, $container) { |
|
83 | 83 | return new $className($container); |
84 | 84 | }; |
85 | 85 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | { |
100 | 100 | $container = $this->container; |
101 | 101 | |
102 | - $this->transports[$transport] = function () use ($class, $container) { |
|
102 | + $this->transports[$transport] = function() use ($class, $container) { |
|
103 | 103 | return new $class($container); |
104 | 104 | }; |
105 | 105 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | { |
64 | 64 | $container = $this->container; |
65 | 65 | |
66 | - $this->dispatcher->addListener($event, function () use ($container, $callback) { |
|
66 | + $this->dispatcher->addListener($event, function() use ($container, $callback) { |
|
67 | 67 | call_user_func($callback, $container); |
68 | 68 | }); |
69 | 69 | } |
@@ -186,7 +186,7 @@ |
||
186 | 186 | { |
187 | 187 | $interface = '\Jitamin\Core\Security\\'.$interface; |
188 | 188 | |
189 | - return array_filter($this->providers, function (AuthenticationProviderInterface $provider) use ($interface) { |
|
189 | + return array_filter($this->providers, function(AuthenticationProviderInterface $provider) use ($interface) { |
|
190 | 190 | return is_a($provider, $interface); |
191 | 191 | }); |
192 | 192 | } |