Completed
Push — master ( 3e4420...d6fb24 )
by Michal
04:35 queued 14s
created
src/Webrouse/AssetMacro/DI/Extension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -100,6 +100,9 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Webrouse/AssetMacro/Manifest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Webrouse/AssetMacro/ManifestService.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@
 block discarded – undo
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())) {
Please login to merge, or discard this patch.
src/Webrouse/AssetMacro/Formatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.