@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @triggers bootstrap |
36 | - * @param object|Bootstrap $bootstrap |
|
36 | + * @param Bootstrap $bootstrap |
|
37 | 37 | * @param callable $trigger |
38 | 38 | * @return AbstractConfiguredApplication |
39 | 39 | */ |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | return $this->internalBootstrap( |
27 | 27 | $this->getServices()->get($this::BOOTSTRAP), |
28 | - function () { |
|
28 | + function() { |
|
29 | 29 | $this->emit(AppEvent::BOOTSTRAP, $this); |
30 | 30 | } |
31 | 31 | ); |
@@ -32,14 +32,14 @@ |
||
32 | 32 | abstract public function get($service); |
33 | 33 | |
34 | 34 | /** |
35 | - * @param mixed $service |
|
35 | + * @param string $service |
|
36 | 36 | * @param null $factory |
37 | 37 | * @return $this |
38 | 38 | */ |
39 | 39 | abstract public function set($service, $factory = null); |
40 | 40 | |
41 | 41 | /** |
42 | - * @param $service |
|
42 | + * @param string $service |
|
43 | 43 | * @return bool |
44 | 44 | */ |
45 | 45 | abstract public function has($service); |
@@ -22,13 +22,14 @@ |
||
22 | 22 | * Return registered service |
23 | 23 | * |
24 | 24 | * @param string $service Service name |
25 | - * @return mixed |
|
25 | + * @return RouteStackInterface |
|
26 | 26 | * @throws \WebinoAppLib\Exception\UnknownServiceException |
27 | 27 | */ |
28 | 28 | abstract public function get($service); |
29 | 29 | |
30 | 30 | /** |
31 | 31 | * {@inheritdoc} |
32 | + * @param string $event |
|
32 | 33 | */ |
33 | 34 | abstract public function bind($event, $callback = null, $priority = 1); |
34 | 35 |
@@ -44,6 +44,8 @@ discard block |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * {@inheritdoc} |
47 | + * @param string $service |
|
48 | + * @param string $factory |
|
47 | 49 | */ |
48 | 50 | public function set($service, $factory = null) |
49 | 51 | { |
@@ -108,7 +110,7 @@ discard block |
||
108 | 110 | } |
109 | 111 | |
110 | 112 | /** |
111 | - * @param $service |
|
113 | + * @param string $service |
|
112 | 114 | */ |
113 | 115 | private function setService($service) |
114 | 116 | { |
@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | private function setService($service) |
114 | 114 | { |
115 | - call_user_func([$this, 'set' . $service], $this->services->get($service), false); |
|
115 | + call_user_func([$this, 'set'.$service], $this->services->get($service), false); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -34,8 +34,8 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @param object|Config $config |
|
38 | - * @param object|DebuggerInterface $debugger |
|
37 | + * @param Config $config |
|
38 | + * @param DebuggerInterface $debugger |
|
39 | 39 | */ |
40 | 40 | public function __construct(Config $config, DebuggerInterface $debugger) |
41 | 41 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getTab() |
50 | 50 | { |
51 | - return $this->createIcon('config',[ 'margin-top' => '5px']) . parent::getTab(); |
|
51 | + return $this->createIcon('config', ['margin-top' => '5px']).parent::getTab(); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * Get a specific parameter |
59 | 59 | * |
60 | 60 | * @param string $name |
61 | - * @param mixed $default |
|
61 | + * @param string $default |
|
62 | 62 | * @return mixed |
63 | 63 | */ |
64 | 64 | public function getParam($name, $default = null) |
@@ -16,7 +16,7 @@ |
||
16 | 16 | DispatchEventInterface |
17 | 17 | { |
18 | 18 | /** |
19 | - * @param ConfiguredApplicationInterface|AbstractApplication $app |
|
19 | + * @param ConfiguredApplicationInterface $app |
|
20 | 20 | */ |
21 | 21 | public function __construct(ConfiguredApplicationInterface $app) |
22 | 22 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | public function setResponseContent($content) |
70 | 70 | { |
71 | 71 | $response = $this->getResponse(); |
72 | - $response->setContent($response->getContent() . $this->normalizeResponseContent($content)); |
|
72 | + $response->setContent($response->getContent().$this->normalizeResponseContent($content)); |
|
73 | 73 | return $this; |
74 | 74 | } |
75 | 75 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @param DebuggerInterface $debugger |
52 | - * @return mixed|DebuggerInterface|\WebinoAppLib\Service\NullDebugger |
|
52 | + * @return DebuggerInterface|null |
|
53 | 53 | */ |
54 | 54 | protected function createDebugger(DebuggerInterface $debugger = null) |
55 | 55 | { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * Return service or throw an exception |
97 | 97 | * |
98 | 98 | * @param string $service |
99 | - * @return mixed |
|
99 | + * @return Application |
|
100 | 100 | * @throws DomainException Unable to require a service |
101 | 101 | */ |
102 | 102 | protected function requireService($service) |