@@ -172,7 +172,7 @@ public function deploy(ObjectManagerFactory $omFactory, array $locales)
172
172
$ fileArea . Theme::THEME_PATH_SEPARATOR . $ fileTheme ,
173
173
$ this ->findAncestors ($ area . Theme::THEME_PATH_SEPARATOR . $ themePath )
174
174
))
175
- ) {;
175
+ ) {
176
176
$ compiledFile = $ this ->deployFile ($ filePath , $ area , $ themePath , $ locale , $ module , $ fullPath );
177
177
if ($ compiledFile !== '' ) {
178
178
$ this ->deployFile ($ compiledFile , $ area , $ themePath , $ locale , $ module , $ fullPath );
@@ -303,7 +303,7 @@ protected function emulateApplicationLocale($locale, $area)
303
303
* @param string $themePath
304
304
* @param string $locale
305
305
* @param string $module
306
- * @param string $fullPath
306
+ * @param string|null $fullPath
307
307
* @return string
308
308
* @throws \InvalidArgumentException
309
309
* @throws LocalizedException
@@ -351,14 +351,13 @@ private function deployFile($filePath, $area, $themePath, $locale, $module, $ful
351
351
}
352
352
$ this ->count ++;
353
353
} catch (ContentProcessorException $ exception ) {
354
- $ pathInfo = ( $ fullPath) ? $ fullPath : $ filePath ;
354
+ $ pathInfo = $ fullPath ? : $ filePath ;
355
355
$ errorMessage = __ ('Compilation from source: ' ) . $ pathInfo
356
356
. PHP_EOL . $ exception ->getMessage ();
357
357
$ this ->errorCount ++;
358
- $ this ->output ->write (PHP_EOL . PHP_EOL . $ errorMessage . PHP_EOL , true );
358
+ $ this ->output ->write (PHP_EOL . PHP_EOL . $ errorMessage . PHP_EOL , true );
359
359
360
- $ logger = $ this ->getLogger ();
361
- $ logger ->critical ($ errorMessage );
360
+ $ this ->getLogger ()->critical ($ errorMessage );
362
361
} catch (\Exception $ exception ) {
363
362
$ this ->output ->write ('. ' );
364
363
$ this ->verboseLog ($ exception ->getTraceAsString ());
@@ -401,6 +400,8 @@ private function verboseLog($message)
401
400
}
402
401
403
402
/**
403
+ * Retrieves LoggerInterface instance
404
+ *
404
405
* @return LoggerInterface
405
406
* @deprecated
406
407
*/
0 commit comments