Completed
Push — prototype ( f82a67...6656fa )
by Peter
09:57
created
library/WebinoAppLib/Response/ViewResponse.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -75,6 +75,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
library/WebinoAppLib/Service/Bootstrap.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
library/WebinoAppLib/Service/Router.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
library/WebinoConfigLib/Config.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
library/WebinoConfigLib/Router/AbstractRoute.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
library/WebinoDomLib/Dom.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
library/WebinoDomLib/Dom/Locator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
library/WebinoDomLib/Dom/Renderer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
library/WebinoDomLib/Event/RenderEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.