Passed
Push — develop ( 746e68...2213bd )
by Brent
02:24
created
src/Stitcher/Command/PartialParse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $matcher = new UrlMatcher($routeCollection, new RequestContext());
29 29
         $matchingRoute = $matcher->match($this->filter);
30 30
 
31
-        $filteredConfiguration = array_filter($parsedConfiguration, function ($key) use ($matchingRoute) {
31
+        $filteredConfiguration = array_filter($parsedConfiguration, function($key) use ($matchingRoute) {
32 32
             return $key === $matchingRoute['_route'];
33 33
         }, ARRAY_FILTER_USE_KEY);
34 34
 
Please login to merge, or discard this patch.
src/Stitcher/Renderer/RendererFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         $this->setTwigRule();
19 19
     }
20 20
 
21
-    public static function make(string $templateDirectory, ?string $renderer = 'twig'): RendererFactory
21
+    public static function make(string $templateDirectory, ?string $renderer = 'twig') : RendererFactory
22 22
     {
23 23
         return new self($templateDirectory, $renderer);
24 24
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     private function setTwigRule(): void
40 40
     {
41
-        $this->setRule(TwigRenderer::class, function ($value) {
41
+        $this->setRule(TwigRenderer::class, function($value) {
42 42
             if ($value === 'twig') {
43 43
                 return TwigRenderer::make($this->templateDirectory);
44 44
             }
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/CollectionAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function __construct(array $adapterConfiguration, VariableParser $variableParser)
17 17
     {
18
-        if (! $this->isValid($adapterConfiguration)) {
18
+        if (!$this->isValid($adapterConfiguration)) {
19 19
             throw InvalidConfiguration::invalidAdapterConfiguration('collection', '`variable` and `parameter`');
20 20
         }
21 21
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         return is_array($subject) && isset($subject['variable']) && isset($subject['parameter']);
49 49
     }
50 50
 
51
-    protected function getEntries($pageConfiguration): ?array
51
+    protected function getEntries($pageConfiguration): ? array
52 52
     {
53 53
         $variable = $pageConfiguration['variables'][$this->variable] ?? null;
54 54
 
Please login to merge, or discard this patch.
src/Stitcher/Renderer/TwigRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         $fs = new Filesystem();
14 14
 
15
-        if (! $fs->exists($templateDirectory)) {
15
+        if (!$fs->exists($templateDirectory)) {
16 16
             $fs->mkdir($templateDirectory);
17 17
         }
18 18
 
Please login to merge, or discard this patch.