@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | $filePath = $isVersion ? ($wwwDir . $ds . $path) : ($wwwDir . $ds . Utils::normalizePath($revision)); |
79 | 79 | if ( ! file_exists($filePath)) { |
80 | 80 | Utils::throwError( |
81 | - new AssetNotFoundException(sprintf("Asset '%s' not found.", $filePath)), |
|
82 | - $config['missingAsset'], |
|
83 | - $need |
|
84 | - ); |
|
81 | + new AssetNotFoundException(sprintf("Asset '%s' not found.", $filePath)), |
|
82 | + $config['missingAsset'], |
|
83 | + $need |
|
84 | + ); |
|
85 | 85 | return ''; |
86 | 86 | } |
87 | 87 | } |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | if (is_string($manifest)) { |
172 | 172 | if ( ! file_exists($manifest)) { |
173 | 173 | Utils::throwError( |
174 | - new ManifestNotFoundException(sprintf("Manifest file not found: '%s'.", $manifest)), |
|
175 | - $config['missingManifest'], |
|
176 | - $need |
|
177 | - ); |
|
174 | + new ManifestNotFoundException(sprintf("Manifest file not found: '%s'.", $manifest)), |
|
175 | + $config['missingManifest'], |
|
176 | + $need |
|
177 | + ); |
|
178 | 178 | return NULL; |
179 | 179 | } |
180 | 180 | return Json::decode(file_get_contents($manifest), Json::FORCE_ARRAY); |
@@ -198,10 +198,10 @@ discard block |
||
198 | 198 | $dir = realpath($wwwDir . DIRECTORY_SEPARATOR . dirname($asset)); |
199 | 199 | if ($dir === FALSE) { |
200 | 200 | Utils::throwError( |
201 | - new DirNotFoundException(sprintf("Parent dir of asset '%s' not found.", $asset)), |
|
202 | - $config['missingAsset'], |
|
203 | - $need |
|
204 | - ); |
|
201 | + new DirNotFoundException(sprintf("Parent dir of asset '%s' not found.", $asset)), |
|
202 | + $config['missingAsset'], |
|
203 | + $need |
|
204 | + ); |
|
205 | 205 | return NULL; |
206 | 206 | } |
207 | 207 | |
@@ -219,11 +219,11 @@ discard block |
||
219 | 219 | } |
220 | 220 | |
221 | 221 | Utils::throwError( |
222 | - new ManifestNotFoundException( |
|
223 | - sprintf("Manifest not found in: %s.", implode(', ', $autodetectPaths))), |
|
224 | - $config['missingManifest'], |
|
225 | - $need |
|
226 | - ); |
|
222 | + new ManifestNotFoundException( |
|
223 | + sprintf("Manifest not found in: %s.", implode(', ', $autodetectPaths))), |
|
224 | + $config['missingManifest'], |
|
225 | + $need |
|
226 | + ); |
|
227 | 227 | return NULL; |
228 | 228 | } |
229 | 229 | |
@@ -241,10 +241,10 @@ discard block |
||
241 | 241 | |
242 | 242 | if ($revision === NULL) { |
243 | 243 | Utils::throwError( |
244 | - new RevisionNotFound(sprintf("Revision for asset '%s' not found in manifest.", $path)), |
|
245 | - $config['missingRevision'], |
|
246 | - $need |
|
247 | - ); |
|
244 | + new RevisionNotFound(sprintf("Revision for asset '%s' not found in manifest.", $path)), |
|
245 | + $config['missingRevision'], |
|
246 | + $need |
|
247 | + ); |
|
248 | 248 | } |
249 | 249 | |
250 | 250 | return $revision; |