Skip to content

Commit eff9ac5

Browse files
committed
Add missing return void types.
1 parent 1832162 commit eff9ac5

File tree

109 files changed

+563
-32
lines changed

Some content is hidden

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

109 files changed

+563
-32
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"require-dev": {
3030
"monolog/monolog": "^1.3",
3131
"phpstan/phpstan": "^0.12.4",
32-
"phpunit/phpunit": "^7.5.15"
32+
"phpunit/phpunit": "^7.5.15",
33+
"spryker/code-sniffer": "^0.15.4"
3334
},
3435
"suggest": {
3536
"monolog/monolog": "The recommended logging library to use with Propel."
@@ -43,6 +44,8 @@
4344
"bin/propel"
4445
],
4546
"scripts": {
47+
"cs-check": "phpcs -p -s --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml src/",
48+
"cs-fix": "phpcbf -p --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml src/",
4649
"stan": [
4750
"vendor/bin/phpstan analyze"
4851
]

src/Propel/Generator/Behavior/AutoAddPk/AutoAddPkBehavior.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class AutoAddPkBehavior extends Behavior
2929
/**
3030
* Copy the behavior to the database tables
3131
* Only for tables that have no Pk
32+
* @return void
3233
*/
3334
public function modifyDatabase()
3435
{
@@ -42,6 +43,7 @@ public function modifyDatabase()
4243

4344
/**
4445
* Add the primary key to the current table
46+
* @return void
4547
*/
4648
public function modifyTable()
4749
{

src/Propel/Generator/Behavior/Delegate/DelegateBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class DelegateBehavior extends Behavior
4343
/**
4444
* Lists the delegates and checks that the behavior can use them,
4545
* And adds a fk from the delegate to the main table if not already set
46+
* @return void
4647
*/
4748
public function modifyTable()
4849
{

src/Propel/Generator/Behavior/NestedSet/NestedSetBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class NestedSetBehavior extends Behavior
3535

3636
/**
3737
* Add the left, right and scope to the current table
38+
* @return void
3839
*/
3940
public function modifyTable()
4041
{

src/Propel/Generator/Behavior/Sluggable/SluggableBehavior.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class SluggableBehavior extends Behavior
4545
/**
4646
* Adds the slug_column to the current table.
4747
*
48+
* @return void
4849
*/
4950
public function modifyTable()
5051
{
@@ -68,6 +69,7 @@ public function modifyTable()
6869
* Adds a unique constraint to the table to enforce uniqueness of the slug_column
6970
*
7071
* @param Table $table
72+
* @return void
7173
*/
7274
protected function addUniqueConstraint(Table $table)
7375
{

src/Propel/Generator/Behavior/Sortable/SortableBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class SortableBehavior extends Behavior
3434

3535
/**
3636
* Add the rank_column to the current table
37+
* @return void
3738
*/
3839
public function modifyTable()
3940
{

src/Propel/Generator/Behavior/Timestampable/TimestampableBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected function withCreatedAt()
4545

4646
/**
4747
* Add the create_column and update_columns to the current table
48+
* @return void
4849
*/
4950
public function modifyTable()
5051
{

src/Propel/Generator/Behavior/Validate/ValidateBehavior.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function getParametersFromColumnName($columnName = null)
102102
* Useful for i18n behavior
103103
*
104104
* @param string $columnName The column name
105+
* @return void
105106
*/
106107
public function removeParametersFromColumnName($columnName = null)
107108
{
@@ -145,6 +146,7 @@ public function addRuleOnPk()
145146
* Merge $paramArray array into parameters array.
146147
* This method avoid that there are rules with the same name, when adding parameters programmatically.
147148
* Useful for Concrete Inheritance behavior.
149+
* @return void
148150
*/
149151
public function mergeParameters(array $params = null)
150152
{
@@ -168,6 +170,7 @@ public function mergeParameters(array $params = null)
168170
/**
169171
* Convert those parameters, containing an array in YAML format
170172
* into a php array
173+
* @return void
171174
*/
172175
protected function cleanupParameters()
173176
{
@@ -280,10 +283,11 @@ protected function addValidateMethod()
280283

281284
/**
282285
* Adds the getValidationFailures() method.
286+
*
287+
* @return string
283288
*/
284289
protected function addGetValidationFailuresMethod()
285290
{
286291
return $this->renderTemplate('objectGetValidationFailures');
287292
}
288-
289293
}

src/Propel/Generator/Builder/DataModelBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ public function getBuildProperty($name)
402402
* Sets the GeneratorConfig object.
403403
*
404404
* @param GeneratorConfigInterface $v
405+
* @return void
405406
*/
406407
public function setGeneratorConfig(GeneratorConfigInterface $v)
407408
{

src/Propel/Generator/Builder/Om/AbstractOMBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ protected function getCrossFKAddMethodInformation(CrossForeignKeys $crossFKs, $c
771771
* @param array $shortSignature
772772
* @param array $normalizedShortSignature
773773
* @param array $phpDoc
774+
* @return void
774775
*/
775776
protected function extractCrossInformation(
776777
CrossForeignKeys $crossFKs,
@@ -951,6 +952,7 @@ public function hasBehaviorModifier($hookName, $modifier)
951952
* @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave"
952953
* @param string $modifier The name of the modifier object providing the method in the behavior
953954
* @param string $script The script will be modified in this method.
955+
* @return void
954956
*/
955957
public function applyBehaviorModifierBase($hookName, $modifier, &$script, $tab = " ")
956958
{

0 commit comments

Comments
 (0)