@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | imagealphablending($sheetImage, FALSE); |
| 39 | 39 | imagesavealpha($sheetImage, TRUE); |
| 40 | 40 | |
| 41 | - imagefill($sheetImage,0,0,0x7fff0000); |
|
| 41 | + imagefill($sheetImage, 0, 0, 0x7fff0000); |
|
| 42 | 42 | |
| 43 | 43 | $x = 0; |
| 44 | - foreach ($this->fileList as $filename) { |
|
| 44 | + foreach($this->fileList as $filename) { |
|
| 45 | 45 | $iconImage = imagecreatefrompng("{$this->iconFolder}/{$filename}"); |
| 46 | 46 | imagealphablending($iconImage, TRUE); |
| 47 | 47 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $x++; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - imagepng($sheetImage, ASSET_FOLDER . "/img/{$this->type}s.png"); |
|
| 55 | + imagepng($sheetImage, ASSET_FOLDER."/img/{$this->type}s.png"); |
|
| 56 | 56 | say('Updated spritesheet!'); |
| 57 | 57 | } |
| 58 | 58 | private function generateLESS(string $filename, int $dst_x) : void { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | " .sprite();\n". |
| 79 | 79 | " background: url('../../img/{$this->type}s.@{cache-version}.png') no-repeat;\n\n". |
| 80 | 80 | " {$newIconLESS}\n". |
| 81 | - "} //end sprite-{$this->type}",$oldLESS); |
|
| 81 | + "} //end sprite-{$this->type}", $oldLESS); |
|
| 82 | 82 | |
| 83 | 83 | file_put_contents($icons_file, $newLESS); |
| 84 | 84 | say('Updated LESS!'); |