@@ -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 | { |
@@ -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 | { |
@@ -13,6 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | /** |
15 | 15 | * {@inheritdoc} |
16 | + * @param string $name |
|
16 | 17 | */ |
17 | 18 | public function __construct($name = null, $target = null, $params = null) |
18 | 19 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * $this->eventIdentifier property. |
24 | 24 | * |
25 | 25 | * @param EventManagerInterface $events |
26 | - * @return mixed |
|
26 | + * @return EventsAwareTrait |
|
27 | 27 | */ |
28 | 28 | public function setEvents(EventManagerInterface $events) |
29 | 29 | { |