@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
| 27 | 27 | { |
| 28 | - $scssDir = realpath(__DIR__ .'/../Resources/scss'); |
|
| 28 | + $scssDir = realpath(__DIR__.'/../Resources/scss'); |
|
| 29 | 29 | |
| 30 | 30 | // ICONS 16x16 |
| 31 | - $fp = fopen($scssDir . '/_fatcow16.scss', 'w+'); |
|
| 31 | + $fp = fopen($scssDir.'/_fatcow16.scss', 'w+'); |
|
| 32 | 32 | $content = ""; |
| 33 | - $icons16 = glob(__DIR__ .'/../Resources/public/images/icons16x16/*.{png,jpg,gif}', GLOB_BRACE); |
|
| 34 | - foreach($icons16 as $img) |
|
| 33 | + $icons16 = glob(__DIR__.'/../Resources/public/images/icons16x16/*.{png,jpg,gif}', GLOB_BRACE); |
|
| 34 | + foreach ($icons16 as $img) |
|
| 35 | 35 | { |
| 36 | 36 | $image = pathinfo($img); |
| 37 | 37 | $content .= sprintf('.fci-%s {background-image:url(\'#{$icon16}/%s\');}'.PHP_EOL, $this->_slugify($image['filename']), basename($img)); |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | $output->writeln(sprintf('Icons 16x16 - %d icons available', count($icons16))); |
| 42 | 42 | |
| 43 | 43 | // ICONS 32x32 |
| 44 | - $fp = fopen($scssDir . '/_fatcow32.scss', 'w+'); |
|
| 44 | + $fp = fopen($scssDir.'/_fatcow32.scss', 'w+'); |
|
| 45 | 45 | $content = ""; |
| 46 | - $icons32 = glob(__DIR__ .'/../Resources/public/images/icons32x32/*.{png,jpg,gif}', GLOB_BRACE); |
|
| 47 | - foreach($icons32 as $img) |
|
| 46 | + $icons32 = glob(__DIR__.'/../Resources/public/images/icons32x32/*.{png,jpg,gif}', GLOB_BRACE); |
|
| 47 | + foreach ($icons32 as $img) |
|
| 48 | 48 | { |
| 49 | 49 | $image = pathinfo($img); |
| 50 | 50 | $content .= sprintf('.fci32-%s {background-image:url(\'#{$icon32}/%s\');}'.PHP_EOL, $this->_slugify($image['filename']), basename($img)); |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | /** |
| 9 | 9 | * Registers an autoload for all the classes in JPInfinity\FatcowIconsBundle |
| 10 | 10 | */ |
| 11 | -spl_autoload_register(function ($className) { |
|
| 11 | +spl_autoload_register(function($className) { |
|
| 12 | 12 | $namespace = 'JPInfinity\\FatcowIconsBundle'; |
| 13 | 13 | |
| 14 | 14 | if (strpos($className, $namespace) === 0) { |
| 15 | 15 | $className = str_replace($namespace, '', $className); |
| 16 | - $fileName = __DIR__ . '/' . str_replace('\\', '/', $className) . '.php'; |
|
| 16 | + $fileName = __DIR__.'/'.str_replace('\\', '/', $className).'.php'; |
|
| 17 | 17 | if (file_exists($fileName)) { |
| 18 | 18 | require($fileName); |
| 19 | 19 | } |