Skip to content

Commit ce62ef1

Browse files
committed
fix cs
1 parent ce721c4 commit ce62ef1

50 files changed

Lines changed: 110 additions & 110 deletions

Some content is hidden

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

src/config/CodeFileGeneratorConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setHeaderDocblock(Docblock $docblock) {
8080
/**
8181
* Returns whether a blank line should be generated at the end of the file
8282
*
83-
* @return boolean `true` if it will be generated and `false` if not
83+
* @return bool `true` if it will be generated and `false` if not
8484
*/
8585
public function getBlankLineAtEnd() {
8686
return $this->options['blankLineAtEnd'];
@@ -89,7 +89,7 @@ public function getBlankLineAtEnd() {
8989
/**
9090
* Sets whether a blank line should be generated at the end of the file
9191
*
92-
* @param boolean $show `true` if it will be generated and `false` if not
92+
* @param bool $show `true` if it will be generated and `false` if not
9393
* @return $this
9494
*/
9595
public function setBlankLineAtEnd($show) {
@@ -101,7 +101,7 @@ public function setBlankLineAtEnd($show) {
101101
* Returns whether a `declare(strict_types=1);` statement should be printed
102102
* below the header comments (PHP 7)
103103
*
104-
* @return boolean `true` if it will be printed and `false` if not
104+
* @return bool `true` if it will be printed and `false` if not
105105
*/
106106
public function getDeclareStrictTypes() {
107107
return $this->options['declareStrictTypes'];
@@ -111,7 +111,7 @@ public function getDeclareStrictTypes() {
111111
* Sets whether a `declare(strict_types=1);` statement should be printed
112112
* below the header comments (PHP 7)
113113
*
114-
* @param boolean $strict `true` if it will be printed and `false` if not
114+
* @param bool $strict `true` if it will be printed and `false` if not
115115
* @return $this
116116
*/
117117
public function setDeclareStrictTypes($strict) {

src/config/CodeGeneratorConfig.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
namespace gossi\codegen\config;
33

4-
use Symfony\Component\OptionsResolver\OptionsResolver;
54
use Symfony\Component\OptionsResolver\Options;
5+
use Symfony\Component\OptionsResolver\OptionsResolver;
66

77
/**
88
* Configuration for code generator
@@ -61,7 +61,7 @@ protected function getAllowedOptionTypes() {
6161
/**
6262
* Returns whether docblocks should be generated
6363
*
64-
* @return boolean `true` if they will be generated and `false` if not
64+
* @return bool `true` if they will be generated and `false` if not
6565
*/
6666
public function getGenerateDocblock() {
6767
return $this->options['generateDocblock'];
@@ -70,7 +70,7 @@ public function getGenerateDocblock() {
7070
/**
7171
* Sets whether docblocks should be generated
7272
*
73-
* @param boolean $generate `true` if they will be generated and `false` if not
73+
* @param bool $generate `true` if they will be generated and `false` if not
7474
* @return $this
7575
*/
7676
public function setGenerateDocblock($generate) {
@@ -84,7 +84,7 @@ public function setGenerateDocblock($generate) {
8484
/**
8585
* Returns whether empty docblocks are generated
8686
*
87-
* @return boolean `true` if they will be generated and `false` if not
87+
* @return bool `true` if they will be generated and `false` if not
8888
*/
8989
public function getGenerateEmptyDocblock() {
9090
return $this->options['generateEmptyDocblock'];
@@ -93,7 +93,7 @@ public function getGenerateEmptyDocblock() {
9393
/**
9494
* Sets whether empty docblocks are generated
9595
*
96-
* @param boolean $generate `true` if they will be generated and `false` if not
96+
* @param bool $generate `true` if they will be generated and `false` if not
9797
* @return $this
9898
*/
9999
public function setGenerateEmptyDocblock($generate) {
@@ -107,7 +107,7 @@ public function setGenerateEmptyDocblock($generate) {
107107
/**
108108
* Returns whether scalar type hints will be generated for method parameters (PHP 7)
109109
*
110-
* @return boolean `true` if they will be generated and `false` if not
110+
* @return bool `true` if they will be generated and `false` if not
111111
*/
112112
public function getGenerateScalarTypeHints() {
113113
return $this->options['generateScalarTypeHints'];
@@ -116,7 +116,7 @@ public function getGenerateScalarTypeHints() {
116116
/**
117117
* Sets whether scalar type hints will be generated for method parameters (PHP 7)
118118
*
119-
* @param boolean $generate `true` if they will be generated and `false` if not
119+
* @param bool $generate `true` if they will be generated and `false` if not
120120
* @return $this
121121
*/
122122
public function setGenerateScalarTypeHints($generate) {
@@ -127,7 +127,7 @@ public function setGenerateScalarTypeHints($generate) {
127127
/**
128128
* Returns whether return type hints will be generated for method parameters (PHP 7)
129129
*
130-
* @return boolean `true` if they will be generated and `false` if not
130+
* @return bool `true` if they will be generated and `false` if not
131131
*/
132132
public function getGenerateReturnTypeHints() {
133133
return $this->options['generateReturnTypeHints'];
@@ -136,11 +136,11 @@ public function getGenerateReturnTypeHints() {
136136
/**
137137
* Sets whether return type hints will be generated for method parameters (PHP 7)
138138
*
139-
* @param boolean $generate `true` if they will be generated and `false` if not
139+
* @param bool $generate `true` if they will be generated and `false` if not
140140
* @return $this
141141
*/
142142
public function setGenerateReturnTypeHints($generate) {
143143
$this->options['generateReturnTypeHints'] = $generate;
144144
return $this;
145145
}
146-
}
146+
}

src/model/AbstractModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ public function setDescription($description) {
8181
return $this;
8282
}
8383

84-
}
84+
}

src/model/AbstractPhpMember.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
namespace gossi\codegen\model;
1818

1919
use gossi\codegen\model\parts\DocblockTrait;
20-
use gossi\codegen\model\parts\NameTrait;
2120
use gossi\codegen\model\parts\LongDescriptionTrait;
21+
use gossi\codegen\model\parts\NameTrait;
2222
use gossi\codegen\model\parts\TypeTrait;
2323
use gossi\docblock\Docblock;
2424

@@ -104,7 +104,7 @@ public function getVisibility() {
104104
/**
105105
* Sets whether or not this member is static
106106
*
107-
* @param boolean $bool
107+
* @param bool $bool
108108
* @return $this
109109
*/
110110
public function setStatic($bool) {
@@ -116,7 +116,7 @@ public function setStatic($bool) {
116116
/**
117117
* Returns whether this member is static
118118
*
119-
* @return boolean `true` if static and `false` if not
119+
* @return bool `true` if static and `false` if not
120120
*/
121121
public function isStatic() {
122122
return $this->static;

src/model/AbstractPhpStruct.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
*/
1717
namespace gossi\codegen\model;
1818

19-
use gossi\docblock\Docblock;
20-
use gossi\codegen\model\parts\QualifiedNameTrait;
2119
use gossi\codegen\model\parts\DocblockTrait;
2220
use gossi\codegen\model\parts\LongDescriptionTrait;
21+
use gossi\codegen\model\parts\QualifiedNameTrait;
22+
use gossi\docblock\Docblock;
2323

2424
/**
2525
* Represents an abstract php structure (class, trait or interface).
@@ -187,7 +187,7 @@ public function declareUse($qualifiedName, $alias = null) {
187187
* Returns whether the given use statement is present
188188
*
189189
* @param string $qualifiedName
190-
* @return boolean
190+
* @return bool
191191
*/
192192
public function hasUseStatement($qualifiedName) {
193193
$flipped = array_flip($this->useStatements);
@@ -286,7 +286,7 @@ public function removeMethod($nameOrMethod) {
286286
* Checks whether a method exists or not
287287
*
288288
* @param string|PhpMethod $nameOrMethod method name or Method instance
289-
* @return boolean `true` if it exists and `false` if not
289+
* @return bool `true` if it exists and `false` if not
290290
*/
291291
public function hasMethod($nameOrMethod) {
292292
if ($nameOrMethod instanceof PhpMethod) {

src/model/ConstantsInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function setConstant($nameOrConstant, $value = null);
2424
* Checks whether a constant exists
2525
*
2626
* @param string $name
27-
* @return boolean
27+
* @return bool
2828
*/
2929
public function hasConstant($name);
3030

src/model/DocblockInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ public function setDocblock($doc);
1919
* @return Docblock
2020
*/
2121
public function getDocblock();
22-
}
22+
}

src/model/GenerateableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ interface GenerateableInterface {
77
* Generates docblock based on provided information
88
*/
99
public function generateDocblock();
10-
}
10+
}

src/model/NamespaceInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ public function setNamespace($namespace);
1717
* @return string
1818
*/
1919
public function getNamespace();
20-
}
20+
}

src/model/PhpConstant.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22
namespace gossi\codegen\model;
33

4-
use gossi\docblock\Docblock;
5-
use gossi\docblock\tags\VarTag;
6-
use gossi\codegen\model\parts\NameTrait;
7-
use gossi\codegen\model\parts\LongDescriptionTrait;
84
use gossi\codegen\model\parts\DocblockTrait;
9-
use gossi\codegen\model\parts\TypeTrait;
5+
use gossi\codegen\model\parts\LongDescriptionTrait;
6+
use gossi\codegen\model\parts\NameTrait;
107
use gossi\codegen\model\parts\TypeDocblockGeneratorTrait;
8+
use gossi\codegen\model\parts\TypeTrait;
119
use gossi\codegen\model\parts\ValueTrait;
10+
use gossi\docblock\Docblock;
11+
use gossi\docblock\tags\VarTag;
1212

1313
/**
1414
* Represents a PHP constant.
@@ -45,4 +45,4 @@ public function generateDocblock() {
4545
// var tag
4646
$this->generateTypeTag(new VarTag());
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)