@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -67,8 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | private function lookForPreMinifiedAsset() |
| 69 | 69 | { |
| 70 | - $min_path = (string)Str::s($this->file->getRealPath())->replace |
|
| 71 | - ( |
|
| 70 | + $min_path = (string)Str::s($this->file->getRealPath())->replace( |
|
| 72 | 71 | '.'.$this->file->getExtension(), |
| 73 | 72 | '.min.'.$this->file->getExtension() |
| 74 | 73 | ); |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -76,8 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // Create the real path to the actual asset |
| 79 | - $css_asset_path = realpath |
|
| 80 | - ( |
|
| 79 | + $css_asset_path = realpath( |
|
| 81 | 80 | $css_asset_root.'/'. |
| 82 | 81 | $fileinfo['dirname'].'/'. |
| 83 | 82 | $fileinfo['filename'].'.'. |
@@ -94,8 +93,7 @@ discard block |
||
| 94 | 93 | |
| 95 | 94 | // Now lets calulate the relative path between the destination |
| 96 | 95 | // location and the actual asset location. |
| 97 | - $css_asset_path = (new Filesystem())->makePathRelative |
|
| 98 | - ( |
|
| 96 | + $css_asset_path = (new Filesystem())->makePathRelative( |
|
| 99 | 97 | $css_asset_path, |
| 100 | 98 | $destination_root |
| 101 | 99 | ); |
@@ -111,8 +109,7 @@ discard block |
||
| 111 | 109 | $css_asset_path = Str::s($css_asset_path)->replace('\\', '/'); |
| 112 | 110 | |
| 113 | 111 | // Do some search and replacing |
| 114 | - $source = (string) Str::s($source)->replace |
|
| 115 | - ( |
|
| 112 | + $source = (string)Str::s($source)->replace( |
|
| 116 | 113 | 'url('.$match.')', |
| 117 | 114 | 'url('.$css_asset_path.$after_file_name.')' |
| 118 | 115 | ); |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| 3 | 3 | // __________ __ ________ __________ |
| 4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -116,8 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | if (!class_exists($minifier)) |
| 118 | 118 | { |
| 119 | - throw new RuntimeException |
|
| 120 | - ( |
|
| 119 | + throw new RuntimeException( |
|
| 121 | 120 | 'Minification is not supported for type: '. |
| 122 | 121 | $this->destination->getExtension() |
| 123 | 122 | ); |