@@ -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 { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if(preg_match('/\.sprite-'.$this->type.'.*\@cache-version: (\d+);/s', $oldLESS, $cvMatches)) { |
72 | 72 | $cacheVersion = ((int) $cvMatches[1]) + 1; |
73 | 73 | |
74 | - $newLESS = preg_replace('/\.sprite-'.$this->type.'.*/s', '',$oldLESS); |
|
74 | + $newLESS = preg_replace('/\.sprite-'.$this->type.'.*/s', '', $oldLESS); |
|
75 | 75 | $newLESS .= ''. |
76 | 76 | ".sprite-{$this->type} {\n". |
77 | 77 | " .sprite();\n". |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | (PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('CLI only.'); |
4 | 4 | |
5 | -chdir(__DIR__ . '/../'); //Just to make things easier, change dir to project root. |
|
5 | +chdir(__DIR__.'/../'); //Just to make things easier, change dir to project root. |
|
6 | 6 | |
7 | 7 | function setup() { |
8 | 8 | vendor_copy(); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | chmod_files(); |
11 | 11 | |
12 | 12 | //Make sure .gitkeep file is recreated |
13 | - touch(getcwd() . '/application/tests/_ci_phpunit_test/.gitkeep'); |
|
13 | + touch(getcwd().'/application/tests/_ci_phpunit_test/.gitkeep'); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /**********************************************************************************************************************/ |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | function chmod_files() { |
24 | - $directory = new RecursiveDirectoryIterator(getcwd() . '/application/config'); |
|
24 | + $directory = new RecursiveDirectoryIterator(getcwd().'/application/config'); |
|
25 | 25 | $flattened = new RecursiveIteratorIterator($directory); |
26 | 26 | |
27 | 27 | $files = new RegexIterator($flattened, '/^(.*\/)?(database|database_password|config|email|recaptcha|sites)\.php/'); |