@@ -22,11 +22,11 @@ |
||
22 | 22 | $this->buildSignature($model); |
23 | 23 | |
24 | 24 | // body |
25 | - if ($this->config->getGeneratePsrCode()) { |
|
26 | - $this->writer->writeln("\n{")->indent(); |
|
27 | - } else { |
|
28 | - $this->writer->writeln(" {\n")->indent(); |
|
29 | - } |
|
25 | + if ($this->config->getGeneratePsrCode()) { |
|
26 | + $this->writer->writeln("\n{")->indent(); |
|
27 | + } else { |
|
28 | + $this->writer->writeln(" {\n")->indent(); |
|
29 | + } |
|
30 | 30 | |
31 | 31 | $this->buildTraits($model); |
32 | 32 | $this->buildConstants($model); |
@@ -47,11 +47,11 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | protected function writeBody(RoutineInterface $model) { |
50 | - if ($this->config->getGeneratePsrCode()) { |
|
51 | - $this->writer->writeln("\n{")->indent(); |
|
52 | - } else { |
|
53 | - $this->writer->writeln(" {")->indent(); |
|
54 | - } |
|
50 | + if ($this->config->getGeneratePsrCode()) { |
|
51 | + $this->writer->writeln("\n{")->indent(); |
|
52 | + } else { |
|
53 | + $this->writer->writeln(" {")->indent(); |
|
54 | + } |
|
55 | 55 | |
56 | 56 | $this->writer->writeln(trim($model->getBody())); |
57 | 57 | $this->writer->outdent()->rtrim()->writeln('}'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'constantSorting' => CodeGenerator::SORT_CONSTANTS_DEFAULT, |
41 | 41 | 'propertySorting' => CodeGenerator::SORT_PROPERTIES_DEFAULT, |
42 | 42 | 'methodSorting' => CodeGenerator::SORT_METHODS_DEFAULT, |
43 | - 'generatePsrCode' => false |
|
43 | + 'generatePsrCode' => false |
|
44 | 44 | ]); |
45 | 45 | |
46 | 46 | $resolver->setAllowedTypes('generateDocblock', 'bool'); |
@@ -110,14 +110,14 @@ discard block |
||
110 | 110 | return $this->options['generateScalarTypeHints']; |
111 | 111 | } |
112 | 112 | |
113 | - /** |
|
114 | - * Returns whether PSR-code compatible will be generated |
|
115 | - * |
|
116 | - * @return bool `true` if they will be generated and `false` if not |
|
117 | - */ |
|
113 | + /** |
|
114 | + * Returns whether PSR-code compatible will be generated |
|
115 | + * |
|
116 | + * @return bool `true` if they will be generated and `false` if not |
|
117 | + */ |
|
118 | 118 | public function getGeneratePsrCode() { |
119 | - return $this->options['generatePsrCode']; |
|
120 | - } |
|
119 | + return $this->options['generatePsrCode']; |
|
120 | + } |
|
121 | 121 | |
122 | 122 | /** |
123 | 123 | * Returns whether sorting is enabled |
@@ -175,11 +175,11 @@ discard block |
||
175 | 175 | return $this; |
176 | 176 | } |
177 | 177 | |
178 | - /** |
|
179 | - * @param bool $generate `true` if they will be generated and `false` if not |
|
180 | - * @return $this |
|
181 | - */ |
|
182 | - public function setGeneratePsrCode($generate) { |
|
178 | + /** |
|
179 | + * @param bool $generate `true` if they will be generated and `false` if not |
|
180 | + * @return $this |
|
181 | + */ |
|
182 | + public function setGeneratePsrCode($generate) { |
|
183 | 183 | $this->options['generatePsrCode'] = $generate; |
184 | 184 | return $this; |
185 | 185 | } |