Completed
Push — prototype ( f82a67...6656fa )
by Peter
09:57
created
library/WebinoDomLib/Dom/NodeList.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function locate($locator)
40 40
     {
41 41
         $nodes = [];
42
-        $this->each(function (Element $node) use ($locator, &$nodes) {
42
+        $this->each(function(Element $node) use ($locator, &$nodes) {
43 43
             foreach ($node->locate($locator) as $subNode) {
44 44
                 $nodes[] = $subNode;
45 45
             }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function setValue($value, callable $callback = null)
88 88
     {
89 89
         $isCallable = is_callable($callback);
90
-        $this->each(function (Element $node) use ($value, $callback, $isCallable) {
90
+        $this->each(function(Element $node) use ($value, $callback, $isCallable) {
91 91
             $nodeValue = $isCallable ? call_user_func($callback, $value, $node) : $value;
92 92
             if (!empty($nodeValue)) {
93 93
                 $node->setValue($nodeValue);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function setAttributes(array $attributes, callable $callback = null)
106 106
     {
107 107
         $isCallable = is_callable($callback);
108
-        $this->each(function (Element $node) use ($attributes, $callback, $isCallable) {
108
+        $this->each(function(Element $node) use ($attributes, $callback, $isCallable) {
109 109
             foreach ($attributes as $name => $value) {
110 110
 
111 111
                 $attribute = $isCallable ? call_user_func($callback, $name, $value, $node) : $value;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     public function setHtml($html, callable $callback = null)
141 141
     {
142 142
         $isCallable = is_callable($callback);
143
-        $this->each(function (Element $node) use ($html, $callback, $isCallable) {
143
+        $this->each(function(Element $node) use ($html, $callback, $isCallable) {
144 144
             $nodeHtml = $isCallable ? call_user_func($callback, $html, $node) : $html;
145 145
             if (!empty($nodeHtml)) {
146 146
                 $node->setHtml($nodeHtml);
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public function getInnerHtml()
159 159
     {
160 160
         $html = '';
161
-        $this->each(function (Element $node) use (&$html) {
161
+        $this->each(function(Element $node) use (&$html) {
162 162
             $html .= $node->getInnerHtml();
163 163
         });
164 164
         return $html;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     public function getOuterHtml()
173 173
     {
174 174
         $html = '';
175
-        $this->each(function (Element $node) use (&$html) {
175
+        $this->each(function(Element $node) use (&$html) {
176 176
             $html .= $node->getOuterHtml();
177 177
         });
178 178
         return $html;
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $nodes = [];
201 201
 
202
-        $this->each(function (Element $node) use ($children, &$nodes) {
202
+        $this->each(function(Element $node) use ($children, &$nodes) {
203 203
             foreach ($children as $child) {
204 204
                 $nodes[] = $node->appendChild($child);
205 205
             }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         $nodes = [];
218 218
 
219
-        $this->each(function (Element $node) use ($children, &$nodes) {
219
+        $this->each(function(Element $node) use ($children, &$nodes) {
220 220
             foreach ($children as $child) {
221 221
                 // TODO insert before
222 222
                 $nodes[] = $node->parentNode->appendChild(clone $child);
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function rename($nodeName)
233 233
     {
234
-        $this->each(function (Element $node) use ($nodeName) {
234
+        $this->each(function(Element $node) use ($nodeName) {
235 235
             $node->rename($nodeName);
236 236
         });
237 237
         return $this;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function remove()
244 244
     {
245
-        $this->each(function (Element $node) {
245
+        $this->each(function(Element $node) {
246 246
             $node->parentNode->removeChild($node);
247 247
         });
248 248
         return $this;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     public function show()
265 265
     {
266 266
         $result = '';
267
-        $this->each(function (Element $node) use (&$result) {
267
+        $this->each(function(Element $node) use (&$result) {
268 268
             $result .= $node->ownerDocument->saveXML($node);
269 269
         });
270 270
         return $result;
Please login to merge, or discard this patch.
library/WebinoDomLib/Dom/AbstractNodeList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function setNodes($nodes)
39 39
     {
40 40
         if ($nodes instanceof IteratorIterator) {
41
-            $this->nodes  = $nodes;
41
+            $this->nodes = $nodes;
42 42
             return $this;
43 43
         }
44 44
 
Please login to merge, or discard this patch.
library/WebinoDomLib/Dom/Config/SpecConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function setAddClass($class)
55 55
     {
56
-        $this->setAttribute('class', '{$_class} ' . $class);
56
+        $this->setAttribute('class', '{$_class} '.$class);
57 57
         return $this;
58 58
     }
59 59
 
Please login to merge, or discard this patch.
library/WebinoDomLib/Locator/Strategy/CssStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
             return DomQuery::cssToXpath(substr($locator, 2));
22 22
         }
23 23
         // dot makes it relative
24
-        return '.' . DomQuery::cssToXpath($locator);
24
+        return '.'.DomQuery::cssToXpath($locator);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
library/WebinoLogLib/PsrLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             return $level;
55 55
         }
56 56
 
57
-        $const = self::class . '::' . strtoupper($level);
57
+        $const = self::class.'::'.strtoupper($level);
58 58
         if (defined($const)) {
59 59
             return constant($const);
60 60
         }
Please login to merge, or discard this patch.
inc/pipe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 }
9 9
 
10 10
 $secret   = require 'config/secret.php';
11
-$filename = 'tmp/common/pipe_file_' . sha1($_GET['token'] . $secret);
11
+$filename = 'tmp/common/pipe_file_'.sha1($_GET['token'].$secret);
12 12
 
13 13
 if (file_exists($filename)) {
14 14
     // respond with pipe file contents
Please login to merge, or discard this patch.
inc/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  */
5 5
 
6 6
 /** @var \WebinoAppLib\Application\ConfiguredApplicationInterface $app */
7
-$app = require __DIR__ . '/app.php';
7
+$app = require __DIR__.'/app.php';
8 8
 if (empty($app)) {
9 9
     trigger_error('Expected bootstrapped application', E_USER_ERROR);
10 10
 }
Please login to merge, or discard this patch.
inc/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use WebinoAppLib\Event\AppEvent;
4 4
 
5 5
 /** @var \WebinoAppLib\Application\BaseApplicationInterface $appCore */
6
-$appCore = require __DIR__ . '/core.php';
6
+$appCore = require __DIR__.'/core.php';
7 7
 if (empty($appCore)) {
8 8
     trigger_error('Expected application core', E_USER_ERROR);
9 9
 }
Please login to merge, or discard this patch.