Test Failed
Push — develop ( 387e5c...98afd0 )
by Brent
04:42
created
src/Parser/ImageParser.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Brendt\Stitcher\Parser;
4 4
 
5 5
 use Brendt\Image\ResponsiveFactory;
6
-use Brendt\Stitcher\Config;
7 6
 use Brendt\Stitcher\Stitcher;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
src/Stitcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param string $publicDir
63 63
      * @param string $templateDir
64 64
      */
65
-    private function __construct(string $srcDir = './src', string $publicDir = './public', ?string $templateDir = './src') {
65
+    private function __construct(string $srcDir = './src', string $publicDir = './public', ? string $templateDir = './src') {
66 66
         $this->srcDir = $srcDir;
67 67
         $this->publicDir = $publicDir;
68 68
         $this->templateDir = $templateDir;
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      *
359 359
      * @return Stitcher
360 360
      */
361
-    public function addPromise(?Promise $promise) : Stitcher {
361
+    public function addPromise(? Promise $promise) : Stitcher {
362 362
         if ($promise) {
363 363
             $this->promises[] = $promise;
364 364
         }
Please login to merge, or discard this patch.
src/Factory/ParserFactory.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
      *
39 39
      * @return Parser|null
40 40
      */
41
-    public function getByFileName($fileName) : ?Parser {
41
+    public function getByFileName($fileName) : ? Parser {
42 42
         if (!is_string($fileName)) {
43 43
             return null;
44 44
         }
Please login to merge, or discard this patch.
src/Template/Twig/TwigEngine.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
             'cache' => false,
36 36
         ]);
37 37
 
38
-        $this->addFunction(new \Twig_SimpleFunction('meta', [$templatePlugin, 'meta'], ['is_safe' => ['html'],]));
39
-        $this->addFunction(new \Twig_SimpleFunction('css', [$templatePlugin, 'css'], ['is_safe' => ['html'],]));
40
-        $this->addFunction(new \Twig_SimpleFunction('js', [$templatePlugin, 'js'], ['is_safe' => ['html'],]));
38
+        $this->addFunction(new \Twig_SimpleFunction('meta', [$templatePlugin, 'meta'], ['is_safe' => ['html'], ]));
39
+        $this->addFunction(new \Twig_SimpleFunction('css', [$templatePlugin, 'css'], ['is_safe' => ['html'], ]));
40
+        $this->addFunction(new \Twig_SimpleFunction('js', [$templatePlugin, 'js'], ['is_safe' => ['html'], ]));
41 41
         $this->addFunction(new \Twig_SimpleFunction('image', [$templatePlugin, 'image']));
42 42
         $this->addFunction(new \Twig_SimpleFunction('file', [$templatePlugin, 'file']));
43 43
     }
Please login to merge, or discard this patch.
src/Command/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $blanket = $stitcher->stitch($route);
36 36
         $stitcher->save($blanket);
37 37
 
38
-        $stitcher->done(function () use ($route, $output) {
38
+        $stitcher->done(function() use ($route, $output) {
39 39
             $publicDir = Config::get('directories.public');
40 40
 
41 41
             if ($route) {
Please login to merge, or discard this patch.