Completed
Pull Request — master (#338)
by Ema
02:49
created
src/MageApplication.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $dispatcher = new EventDispatcher();
51 51
         $this->setDispatcher($dispatcher);
52 52
 
53
-        $dispatcher->addListener(ConsoleEvents::EXCEPTION, function (ConsoleExceptionEvent $event) {
53
+        $dispatcher->addListener(ConsoleEvents::EXCEPTION, function(ConsoleExceptionEvent $event) {
54 54
             $output = $event->getOutput();
55 55
             $command = $event->getCommand();
56 56
             $output->writeln(sprintf('Oops, exception thrown while running command <info>%s</info>', $command->getName()));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function configure()
71 71
     {
72
-        $configFile = $this->workingDir.DIRECTORY_SEPARATOR.$this->configFile;
72
+        $configFile = $this->workingDir . DIRECTORY_SEPARATOR . $this->configFile;
73 73
         if (!file_exists($configFile) || !is_readable($configFile)) {
74 74
             throw new RuntimeException(sprintf('The file "%s" does not exists or is not readable.', $configFile));
75 75
         }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         if (array_key_exists('magephp', $config) && is_array($config['magephp'])) {
85 85
             $logger = null;
86 86
             if (array_key_exists('log_dir', $config['magephp'])) {
87
-                $logDirectory = $this->workingDir.DIRECTORY_SEPARATOR.$config['magephp']['log_dir'];
87
+                $logDirectory = $this->workingDir . DIRECTORY_SEPARATOR . $config['magephp']['log_dir'];
88 88
 
89 89
                 if (file_exists($logDirectory) && is_dir($logDirectory)) {
90 90
                     $logfile = sprintf('%s/%s.log', $logDirectory, date('Ymd_His'));
Please login to merge, or discard this patch.