Passed
Push — master ( b328e0...054509 )
by Enjoys
02:07
created
src/Content/Minify/MinifyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         $options = [];
35
-        if(isset($minifyOptions[$type])){
35
+        if (isset($minifyOptions[$type])) {
36 36
             $options = $minifyOptions[$type];
37 37
         }
38 38
         return new $minifyClass($content, $options);
Please login to merge, or discard this patch.
src/Content/ReplaceRelativeUrls.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     private string $content;
20 20
 
21 21
     private string $domain;
22
-  //  private UriInterface $uri;
22
+    //  private UriInterface $uri;
23 23
     private string $url;
24 24
 
25 25
     public function __construct(string $content, string $url)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function getContent(): string
37 37
     {
38
-        $result = preg_replace_callback('/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+[^\'"])([\'"]?\))/i', function ($m){
38
+        $result = preg_replace_callback('/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+[^\'"])([\'"]?\))/i', function($m) {
39 39
             $urlConverter = new UrlConverter();
40 40
             return $m[1] . $urlConverter->relativeToAbsolute($this->url, $m[2]) . $m[3];
41 41
         }, $this->content);
Please login to merge, or discard this patch.
src/AssetsCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
 
61 61
     public function push(AssetsCollection $collection)
62 62
     {
63
-        $this->assets =  array_merge_recursive_distinct($this->getAssets(), $collection->getAssets());
63
+        $this->assets = array_merge_recursive_distinct($this->getAssets(), $collection->getAssets());
64 64
     }
65 65
 
66 66
     public function unshift(AssetsCollection $collection)
67 67
     {
68
-        $this->assets =  array_merge_recursive_distinct($collection->getAssets(), $this->getAssets());
68
+        $this->assets = array_merge_recursive_distinct($collection->getAssets(), $this->getAssets());
69 69
     }
70 70
 
71 71
     public function getAssets(): array
Please login to merge, or discard this patch.
src/Content/Reader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $replaceRelativeUrls = new ReplaceRelativeUrls($this->content, $this->asset->getPath());
65 65
             $replaceRelativeUrls->setLogger($this->logger);
66 66
             $this->content = $replaceRelativeUrls->getContent();
67
-        }else{
67
+        } else {
68 68
             $replaceRelativePath = new ReplaceRelativePaths($this->content, $this->asset->getPath(), $this->environment);
69 69
             $replaceRelativePath->setLogger($this->logger);
70 70
             $this->content = $replaceRelativePath->getContent();
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $replaceRelativeUrls = new ReplaceRelativeUrls($this->content, $this->asset->getPath());
65 65
             $replaceRelativeUrls->setLogger($this->logger);
66 66
             $this->content = $replaceRelativeUrls->getContent();
67
-        }else{
67
+        } else{
68 68
             $replaceRelativePath = new ReplaceRelativePaths($this->content, $this->asset->getPath(), $this->environment);
69 69
             $replaceRelativePath->setLogger($this->logger);
70 70
             $this->content = $replaceRelativePath->getContent();
Please login to merge, or discard this patch.
src/Content/ReplaceRelativePaths.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
         $result = preg_replace_callback(
40 40
             '/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+?[^\'"])([\'"]?\))/i',
41
-            function ($m) {
41
+            function($m) {
42 42
                 $realpath = realpath($this->path . parse_url($m[2], PHP_URL_PATH));
43 43
 
44 44
                 if ($realpath === false) {
Please login to merge, or discard this patch.
src/Assets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             );
64 64
         }
65 65
 
66
-        if(!in_array($method, ['push', 'unshift'],true)){
66
+        if (!in_array($method, ['push', 'unshift'], true)) {
67 67
             throw new NotAllowedMethods('Allowed methods only `push` and `unshift`');
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Render/RenderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         string $render = Assets::RENDER_HTML
31 31
     ): RenderInterface {
32 32
 
33
-        if(!array_key_exists($render, self::RENDERS)){
33
+        if (!array_key_exists($render, self::RENDERS)) {
34 34
             throw new UnexpectedParameters(
35 35
                 sprintf('Invalid render group. Allowed only: %s', implode(', ', array_keys(self::RENDERS)))
36 36
             );
Please login to merge, or discard this patch.