@@ -100,6 +100,9 @@ |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $key |
|
105 | + */ |
|
103 | 106 | private function validatePolicy(array &$config, $key, array $choices): void |
104 | 107 | { |
105 | 108 | if (!in_array($config[$key], $choices, true)) { |
@@ -22,6 +22,9 @@ |
||
22 | 22 | private $data = []; |
23 | 23 | |
24 | 24 | |
25 | + /** |
|
26 | + * @param null|string $path |
|
27 | + */ |
|
25 | 28 | public function __construct(Config $config, ?string $path, array $data = null) |
26 | 29 | { |
27 | 30 | $this->config = $config; |
@@ -97,8 +97,7 @@ |
||
97 | 97 | { |
98 | 98 | // Finding a manifest begins in the asset directory |
99 | 99 | $dir = $assetPath ? |
100 | - $this->config->getAssetsPath() . DIRECTORY_SEPARATOR . Utils::normalizePath(dirname($assetPath)) : |
|
101 | - $this->config->getAssetsPath(); |
|
100 | + $this->config->getAssetsPath() . DIRECTORY_SEPARATOR . Utils::normalizePath(dirname($assetPath)) : $this->config->getAssetsPath(); |
|
102 | 101 | |
103 | 102 | // Autodetect manifest |
104 | 103 | while (Strings::startsWith($dir, $this->config->getAssetsPath())) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | return Strings::replace($format, |
38 | 38 | '/%([^%]+)%/', |
39 | - function ($matches) use ($asset, $format, $base) { |
|
39 | + function($matches) use ($asset, $format, $base) { |
|
40 | 40 | switch ($matches[1]) { |
41 | 41 | case 'content': |
42 | 42 | $content = file_get_contents($asset->getAbsolutePath()); |