@@ -68,16 +68,16 @@ discard block |
||
68 | 68 | $src = $this->composer_config['name'] . "\\\\" . $this->composer_config['projectname'] . "\\\\"; |
69 | 69 | $tests = $this->composer_config['name'] . "\\\\" . $this->composer_config['projectname'] . "\\\\Test\\\\"; |
70 | 70 | $composer_data['autoload']['psr-0'] = [ |
71 | - $src => "src/", |
|
72 | - $tests => "tests/" |
|
71 | + $src => "src/", |
|
72 | + $tests => "tests/" |
|
73 | 73 | ]; |
74 | 74 | $composer_data['autoload']['psr-4'] = [ |
75 | - $src => "src/", |
|
76 | - $tests => "tests/" |
|
75 | + $src => "src/", |
|
76 | + $tests => "tests/" |
|
77 | 77 | ]; |
78 | 78 | $composer_data['autoload-dev']['psr-4'] = [ |
79 | - $src => "src/", |
|
80 | - $tests => "tests/" |
|
79 | + $src => "src/", |
|
80 | + $tests => "tests/" |
|
81 | 81 | ]; |
82 | 82 | $composer_data['minimum-stability'] = $this->composer_config['minimum-stability']; |
83 | 83 | $string = stripslashes(json_encode($composer_data, JSON_PRETTY_PRINT)); |
@@ -119,9 +119,9 @@ discard block |
||
119 | 119 | { |
120 | 120 | $file = fopen('src/temp/' . $prefix . $name . '.' . $ext, 'w'); |
121 | 121 | fwrite(/** @scrutinizer ignore-type */ |
122 | - $file, $data); |
|
122 | + $file, $data); |
|
123 | 123 | fclose(/** @scrutinizer ignore-type */ |
124 | - $file); |
|
124 | + $file); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | private function generateZipFile() |
@@ -129,21 +129,21 @@ discard block |
||
129 | 129 | $zipFile = new \PhpZip\ZipFile(); |
130 | 130 | $mainFile = "src/" . $this->composer_config['projectname'] . ".php"; |
131 | 131 | $zipFile |
132 | - ->addFile(__DIR__ . "/temp/" . $this->composer_config['projectname'] . ".php", $mainFile) |
|
133 | - ->addFile(__DIR__ . "/temp/composer.json", "composer.json") |
|
134 | - ->addFile(__DIR__ . "/temp/.gitignore", ".gitignore") |
|
135 | - ->addFromString("README.md", "#" . $this->composer_config['projectname']); |
|
132 | + ->addFile(__DIR__ . "/temp/" . $this->composer_config['projectname'] . ".php", $mainFile) |
|
133 | + ->addFile(__DIR__ . "/temp/composer.json", "composer.json") |
|
134 | + ->addFile(__DIR__ . "/temp/.gitignore", ".gitignore") |
|
135 | + ->addFromString("README.md", "#" . $this->composer_config['projectname']); |
|
136 | 136 | |
137 | 137 | if ($this->composer_config['phpunit']) { |
138 | 138 | $testFile = "tests/" . $this->composer_config['projectname'] . "Test.php"; |
139 | 139 | $zipFile |
140 | - ->addFile(__DIR__ . "/temp/phpunit.xml.dist", "tests/phpunit.xml.dist") |
|
141 | - ->addFile(__DIR__ . "/temp/test" . $this->composer_config['projectname'] . ".php", $testFile); |
|
140 | + ->addFile(__DIR__ . "/temp/phpunit.xml.dist", "tests/phpunit.xml.dist") |
|
141 | + ->addFile(__DIR__ . "/temp/test" . $this->composer_config['projectname'] . ".php", $testFile); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | $zipFile |
145 | - ->saveAsFile($this->composer_config['projectname'] . '.zip') |
|
146 | - ->close(); |
|
145 | + ->saveAsFile($this->composer_config['projectname'] . '.zip') |
|
146 | + ->close(); |
|
147 | 147 | |
148 | 148 | } |
149 | 149 |