@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | $assetContent = $this->readFiles($assetFiles); |
165 | 165 | |
166 | 166 | // Вычисляем путь до файла куда будет сохранен asset |
167 | - $assetSavePath = $this->manifest()->getAssetBasePathFromProjectRoot() . '/' . $assetName; |
|
168 | - $assetWebPath = $this->manifest()->getAssetBasePath() . '/' . $assetName; |
|
167 | + $assetSavePath = $this->manifest()->getAssetBasePathFromProjectRoot().'/'.$assetName; |
|
168 | + $assetWebPath = $this->manifest()->getAssetBasePath().'/'.$assetName; |
|
169 | 169 | |
170 | 170 | // Если необходимо сжать asset`ы |
171 | 171 | if ($this->isCompressorEnabled()) { |
@@ -259,9 +259,9 @@ discard block |
||
259 | 259 | protected function getFreezingAssetFileName($assetName, $assetHash) |
260 | 260 | { |
261 | 261 | $fileInfo = pathinfo($assetName); |
262 | - $fileName = $fileInfo['filename'] . '-' . $assetHash . '.' . $fileInfo['extension']; |
|
262 | + $fileName = $fileInfo['filename'].'-'.$assetHash.'.'.$fileInfo['extension']; |
|
263 | 263 | |
264 | - return $this->manifest()->getAssetBasePathFromProjectRoot() . '/' . $fileInfo['dirname'] . '/' . $fileName; |
|
264 | + return $this->manifest()->getAssetBasePathFromProjectRoot().'/'.$fileInfo['dirname'].'/'.$fileName; |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | 34 | |
35 | - $pathToServerWorker = realpath(__DIR__ . '/../../bin/'); |
|
35 | + $pathToServerWorker = realpath(__DIR__.'/../../bin/'); |
|
36 | 36 | $serverProcess = $this->startWebServer($input, $output, $pathToServerWorker); |
37 | 37 | |
38 | 38 | while ($serverProcess->isRunning()) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private function startWebServer(InputInterface $input, OutputInterface $output, $targetDirectory) |
53 | 53 | { |
54 | - $manifestPath = getcwd() . '/' . $input->getArgument('manifest'); |
|
54 | + $manifestPath = getcwd().'/'.$input->getArgument('manifest'); |
|
55 | 55 | |
56 | 56 | $manifest = new \Dmitrynaum\SAM\Component\Manifest($manifestPath); |
57 | 57 | $address = $manifest->getServerAddress(); |