Skip to content

Commit ccf8c12

Browse files
committed
apply php-cs-fixer
1 parent b06dd78 commit ccf8c12

File tree

80 files changed

+219
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+219
-219
lines changed

.php_cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ return PhpCsFixer\Config::create()
1818
'syntax' => 'short'
1919
],
2020
'blank_line_after_namespace' => true,
21-
'concat_space' => true,
21+
'concat_space' => [
22+
'spacing' => 'one'
23+
],
2224
'encoding' => true,
2325
'full_opening_tag' => true,
2426
'function_declaration' => [

src/config/CodeGeneratorConfig.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ public function setGenerateEmptyDocblock(bool $generate) {
143143
public function getGenerateScalarTypeHints(): bool {
144144
return $this->options['generateScalarTypeHints'];
145145
}
146-
147-
148146

149147
/**
150148
* Returns whether sorting is enabled
@@ -230,7 +228,7 @@ public function setGenerateReturnTypeHints(bool $generate) {
230228
$this->options['generateReturnTypeHints'] = $generate;
231229
return $this;
232230
}
233-
231+
234232
/**
235233
* Returns whether return nullable type hints will be generated (PHP 7.3)
236234
*
@@ -239,7 +237,7 @@ public function setGenerateReturnTypeHints(bool $generate) {
239237
public function getGenerateNullableTypes(): bool {
240238
return $this->options['generateNullableTypes'];
241239
}
242-
240+
243241
/**
244242
* Sets whether return nullable type hints will be generated (PHP 7.3)
245243
*

src/generator/ComparatorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ public static function createMethodComparator(string $type): Comparator {
7070
// }
7171
return new DefaultMethodComparator();
7272
}
73-
}
73+
}

src/generator/ModelGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ModelGenerator {
2323

2424
/** @var CodeGeneratorConfig */
2525
private $config;
26-
26+
2727
/** @var Formatter */
2828
private $formatter;
2929

src/generator/builder/AbstractBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ protected function buildDocblock(DocblockInterface $model): void {
6565
}
6666
}
6767

68-
}
68+
}

src/generator/builder/ConstantBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace gossi\codegen\generator\builder;
55

6-
use gossi\codegen\model\AbstractModel;
76
use gossi\codegen\generator\builder\parts\ValueBuilderPart;
7+
use gossi\codegen\model\AbstractModel;
88

99
class ConstantBuilder extends AbstractBuilder {
1010

@@ -17,4 +17,4 @@ public function build(AbstractModel $model): void {
1717
$this->writer->writeln(';');
1818
}
1919

20-
}
20+
}

src/generator/builder/FunctionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ public function build(AbstractModel $model): void {
1717
$this->writeBody($model);
1818
}
1919

20-
}
20+
}

src/generator/builder/InterfaceBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ private function sort(PhpInterface $model) {
4141
$this->sortConstants($model);
4242
$this->sortMethods($model);
4343
}
44-
}
44+
}

src/generator/builder/MethodBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ public function build(AbstractModel $model): void {
3939
$this->writeBody($model);
4040
}
4141

42-
}
42+
}

src/generator/builder/ParameterBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ public function build(AbstractModel $model): void {
3131
}
3232
}
3333

34-
}
34+
}

0 commit comments

Comments
 (0)