@@ -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 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @param FeatureInterface|Config $feature |
|
45 | + * @param FeatureInterface $feature |
|
46 | 46 | */ |
47 | 47 | public function addFeature(FeatureInterface $feature) |
48 | 48 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use WebinoConfigLib\AbstractConfig; |
6 | 6 | use WebinoConfigLib\Exception\InvalidArgumentException; |
7 | -use Zend\Stdlib\ArrayUtils; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Class AbstractRoute |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * Return an element collection |
36 | 36 | * |
37 | - * @param string|array $locator |
|
37 | + * @param string $locator |
|
38 | 38 | * @return Dom\NodeList |
39 | 39 | */ |
40 | 40 | public function locate($locator) |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @param NodeInterface $node |
25 | 25 | * @param $locator |
26 | - * @return mixed |
|
26 | + * @return \DOMNodeList |
|
27 | 27 | */ |
28 | 28 | public function query(NodeInterface $node, $locator) |
29 | 29 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param NodeLocatorInterface $doc |
19 | - * @param State $cfg |
|
19 | + * @param Config $cfg |
|
20 | 20 | */ |
21 | 21 | public function render(NodeLocatorInterface $doc, Config $cfg, RenderEvent $parentEvent = null, callable $callback = null) |
22 | 22 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $event = new RenderEvent($this, $node, $spec, $parentEvent); |
36 | 36 | |
37 | - $events->attach(RenderEvent::class, function (RenderEvent $subEvent) use ($spec, $event) { |
|
37 | + $events->attach(RenderEvent::class, function(RenderEvent $subEvent) use ($spec, $event) { |
|
38 | 38 | $view = $spec->getView(); |
39 | 39 | if (empty($view)) { |
40 | 40 | return; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param Renderer $target |
44 | 44 | * @param NodeInterface $node |
45 | 45 | * @param SpecInterface $spec |
46 | - * @param self|null $parent |
|
46 | + * @param null|\self $parent |
|
47 | 47 | */ |
48 | 48 | public function __construct(Renderer $target, NodeInterface $node, SpecInterface $spec, self $parent = null) |
49 | 49 | { |