@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public static function getBinaries(Event $event) |
| 27 | 27 | { |
| 28 | - $dir = self::getRootPath().'/bin'; |
|
| 28 | + $dir = self::getRootPath() . '/bin'; |
|
| 29 | 29 | |
| 30 | 30 | if (!file_exists($dir)) { |
| 31 | 31 | mkdir($dir); |
@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | foreach (self::$extByPlatforms as $ext) { |
| 37 | 37 | foreach (self::$tools as $tool) { |
| 38 | 38 | file_put_contents( |
| 39 | - $dir.'/'.$tool.$ext, |
|
| 40 | - fopen('https://github.com/nosilver4u/ewww-image-optimizer/raw/master/binaries/'.$tool.$ext, 'r') |
|
| 39 | + $dir . '/' . $tool . $ext, |
|
| 40 | + fopen('https://github.com/nosilver4u/ewww-image-optimizer/raw/master/binaries/' . $tool . $ext, 'r') |
|
| 41 | 41 | ); |
| 42 | - chmod($dir.'/'.$tool.$ext, 0754); |
|
| 43 | - $event->getIO()->write($tool.$ext); |
|
| 42 | + chmod($dir . '/' . $tool . $ext, 0754); |
|
| 43 | + $event->getIO()->write($tool . $ext); |
|
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |