@@ 183-185 (lines=3) @@ | ||
180 | if ($this->mkdir(dirname($path)) === false) { |
|
181 | throw new AssetFileStorageException('Failed to create a directory for provider-latest storage'); |
|
182 | } |
|
183 | if (file_put_contents($path, $json) === false) { |
|
184 | throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"'); |
|
185 | } |
|
186 | if (file_put_contents($latestPath, $json) === false) { |
|
187 | throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"'); |
|
188 | } |
|
@@ 186-188 (lines=3) @@ | ||
183 | if (file_put_contents($path, $json) === false) { |
|
184 | throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"'); |
|
185 | } |
|
186 | if (file_put_contents($latestPath, $json) === false) { |
|
187 | throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"'); |
|
188 | } |
|
189 | $this->writePackagesJson($hash); |
|
190 | } finally { |
|
191 | $this->releaseLock(); |