Test Failed
Push — develop ( aae594...b21277 )
by Brent
02:43
created
src/Pageon/Pcntl/PageRenderProcess.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
         $this->async = $async;
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $environment
57
+     */
55 58
     public function setEnvironment($environment) {
56 59
         $this->environment = $environment;
57 60
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Pageon\Pcntl;
4 4
 
5
-use Brendt\Stitcher\App;
6 5
 use Brendt\Stitcher\Application\DevController;
7 6
 use Brendt\Stitcher\Parser\Site\PageParser;
8 7
 use Brendt\Stitcher\Site\Page;
Please login to merge, or discard this patch.
src/Pageon/Pcntl/Process.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $this->success = $callback;
53 53
     }
54 54
 
55
-    public function getSuccess() : ?callable {
55
+    public function getSuccess() : ? callable {
56 56
         return $this->success;
57 57
     }
58 58
 
Please login to merge, or discard this patch.
src/Pageon/Pcntl/ProcessCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         return count($this->array) === 0;
21 21
     }
22 22
 
23
-    public function current() : ?Process {
23
+    public function current() : ? Process {
24 24
         return $this->array[$this->position];
25 25
     }
26 26
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         return isset($this->array[$offset]);
45 45
     }
46 46
 
47
-    public function offsetGet($offset) : ?Process {
47
+    public function offsetGet($offset) : ? Process {
48 48
         return isset($this->array[$offset]) ? $this->array[$offset] : null;
49 49
     }
50 50
 
Please login to merge, or discard this patch.
src/Pageon/Pcntl/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $this->eventDispatcher = $eventDispatcher;
20 20
         $this->children = [];
21 21
 
22
-        pcntl_signal(SIGCHLD, function () {
22
+        pcntl_signal(SIGCHLD, function() {
23 23
 
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
src/Brendt/Stitcher/Parser/Site/SiteParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 
180 180
             $pageRenderProcess = new PageRenderProcess($this->pageParser, $page, $this->publicDir, $filterValue);
181 181
             $pageRenderProcess->setEnvironment($this->environment);
182
-            $pageRenderProcess->onSuccess(function () use ($page) {
182
+            $pageRenderProcess->onSuccess(function() use ($page) {
183 183
                 $this->eventDispatcher->dispatch(SiteParser::EVENT_PAGE_PARSED, Event::create(['pageId' => $page->getId()]));
184 184
             });
185 185
 
Please login to merge, or discard this patch.