Completed
Push — prototype ( 942ea2...3bfdd7 )
by Peter
04:02
created
library/WebinoAppLib/Application/Traits/ServicesTrait.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
108 110
     }
109 111
 
110 112
     /**
111
-     * @param $service
113
+     * @param string $service
112 114
      */
113 115
     private function setService($service)
114 116
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
library/WebinoAppLib/Debugger/Bar/ConfigPanel.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
library/WebinoAppLib/Event/AbstractRouteEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
library/WebinoAppLib/Event/DispatchEvent.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
     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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
library/WebinoAppLib/Factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
library/WebinoAppLib/Factory/AbstractFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
library/WebinoAppLib/Factory/View/DomRendererFactory.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,9 +5,6 @@
 block discarded – undo
5 5
 use WebinoAppLib\Factory\AbstractFactory;
6 6
 use WebinoAppLib\Feature\DefaultView;
7 7
 use WebinoDomLib\Dom;
8
-use WebinoDomLib\Event\RenderEvent;
9
-use Zend\Mvc\Service\RoutePluginManagerFactory;
10
-use Zend\Mvc\Service\RouterFactory as BaseRouterFactory;
11 8
 
12 9
 /**
13 10
  * Class DomRendererFactory
Please login to merge, or discard this patch.
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.