@@ -31,9 +31,9 @@ |
||
31 | 31 | */ |
32 | 32 | public static function getBinaries(Event $event) |
33 | 33 | { |
34 | - $dir = self::getRootPath().'/bin'; |
|
34 | + $dir = self::getRootPath() . '/bin'; |
|
35 | 35 | |
36 | - if(!file_exists($dir)) |
|
36 | + if (!file_exists($dir)) |
|
37 | 37 | { |
38 | 38 | mkdir($dir); |
39 | 39 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $output->writeln('<info>BxOptimization set up.</info>'); |
46 | 46 | |
47 | 47 | } catch (\Exception $e) { |
48 | - $output->writeln('<error>'.get_class($e).': '.$e->getMessage().'</error>'); |
|
48 | + $output->writeln('<error>' . get_class($e) . ': ' . $e->getMessage() . '</error>'); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @param string $file Путь к файлу |
20 | 20 | * @return void |
21 | 21 | */ |
22 | - function queueFile($file); |
|
22 | + function queueFile($file); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Обрабатывает файлы в очереди |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function canHandleFile($file = null) |
19 | 19 | { |
20 | - if(!$file) { |
|
20 | + if (!$file) { |
|
21 | 21 | throw new \Exception("В обработчик " . get_class() . " передано неверное имя файла: $file"); |
22 | 22 | } |
23 | 23 |
@@ -49,13 +49,13 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function enableHandler($key) |
51 | 51 | { |
52 | - if(!$key) { |
|
52 | + if (!$key) { |
|
53 | 53 | throw new \Exception("Не передан ключ обработчика"); |
54 | 54 | } else { |
55 | 55 | $key = strtolower(trim($key)); |
56 | 56 | } |
57 | 57 | |
58 | - if(isset($this->defaultHandlers[$key])) { |
|
58 | + if (isset($this->defaultHandlers[$key])) { |
|
59 | 59 | $this->handlers[$key] = new $this->defaultHandlers[$key]; |
60 | 60 | } else { |
61 | 61 | throw new \Exception("Обработчик $key не найден"); |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | { |
84 | 84 | $return = false; |
85 | 85 | |
86 | - if(!isset($this->handlers[$key]) || $replace) { |
|
86 | + if (!isset($this->handlers[$key]) || $replace) { |
|
87 | 87 | $this->handlers[$key] = new $classname; |
88 | - $return = true; |
|
88 | + $return = true; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | return $return; |