@@ -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 |
@@ -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 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | $_response = $this->getResponse(); |
80 | - $_response->setContent($_response->getContent() . $this->normalizeResponseContent($response)); |
|
80 | + $_response->setContent($_response->getContent().$this->normalizeResponseContent($response)); |
|
81 | 81 | return $this; |
82 | 82 | } |
83 | 83 |
@@ -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) |
@@ -75,6 +75,10 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | // TODO |
78 | + |
|
79 | + /** |
|
80 | + * @param string $path |
|
81 | + */ |
|
78 | 82 | public function addCfg($path) |
79 | 83 | { |
80 | 84 | $this->cfgPaths[] = $path; |
@@ -150,6 +154,11 @@ discard block |
||
150 | 154 | } |
151 | 155 | |
152 | 156 | // TODO concept |
157 | + |
|
158 | + /** |
|
159 | + * @param Dom $dom |
|
160 | + * @param string $xpath |
|
161 | + */ |
|
153 | 162 | public function createFragments($dom, $xpath) |
154 | 163 | { |
155 | 164 | $data = []; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $renderer->render($doc, $cfg); |
128 | 128 | |
129 | 129 | // TODO concept |
130 | - $app->bind(SendResponseEvent::class, function () use ($doc, $event) { |
|
130 | + $app->bind(SendResponseEvent::class, function() use ($doc, $event) { |
|
131 | 131 | |
132 | 132 | /** @var \Zend\Http\PhpEnvironment\Request $request */ |
133 | 133 | $request = $event->getRequest(); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // TODO exception |
160 | 160 | throw new \RuntimeException('Required ajax fragment element id'); |
161 | 161 | } |
162 | - $data['fragments']['#' . $id] = $node->getOuterHtml(); |
|
162 | + $data['fragments']['#'.$id] = $node->getOuterHtml(); |
|
163 | 163 | } |
164 | 164 | return $data; |
165 | 165 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | private $cacheKey; |
31 | 31 | |
32 | 32 | /** |
33 | - * @param object|Application $app |
|
33 | + * @param Application $app |
|
34 | 34 | */ |
35 | 35 | public function __construct(Application $app) |
36 | 36 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | private function getCacheKey() |
44 | 44 | { |
45 | - return $this::CACHE_KEY . '_' . $this->cacheKey; |
|
45 | + return $this::CACHE_KEY.'_'.$this->cacheKey; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * Won't implement |
68 | 68 | * |
69 | 69 | * @param array|\Traversable $options |
70 | - * @return mixed |
|
70 | + * @return boolean |
|
71 | 71 | */ |
72 | 72 | public static function factory($options = []) |
73 | 73 | { |