Skip to content

Commit 9dab0cf

Browse files
committed
Fix CS and more missing return type docs.
1 parent eff9ac5 commit 9dab0cf

File tree

114 files changed

+574
-550
lines changed

Some content is hidden

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

114 files changed

+574
-550
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +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
32+
* @return void
3333
*/
3434
public function modifyDatabase()
3535
{
@@ -43,7 +43,7 @@ public function modifyDatabase()
4343

4444
/**
4545
* Add the primary key to the current table
46-
* @return void
46+
* @return void
4747
*/
4848
public function modifyTable()
4949
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +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
46+
* @return void
4747
*/
4848
public function modifyTable()
4949
{

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

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

3636
/**
3737
* Add the left, right and scope to the current table
38-
* @return void
38+
* @return void
3939
*/
4040
public function modifyTable()
4141
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SluggableBehavior extends Behavior
4545
/**
4646
* Adds the slug_column to the current table.
4747
*
48-
* @return void
48+
* @return void
4949
*/
5050
public function modifyTable()
5151
{
@@ -69,7 +69,7 @@ public function modifyTable()
6969
* Adds a unique constraint to the table to enforce uniqueness of the slug_column
7070
*
7171
* @param Table $table
72-
* @return void
72+
* @return void
7373
*/
7474
protected function addUniqueConstraint(Table $table)
7575
{

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

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

3535
/**
3636
* Add the rank_column to the current table
37-
* @return void
37+
* @return void
3838
*/
3939
public function modifyTable()
4040
{

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

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

4646
/**
4747
* Add the create_column and update_columns to the current table
48-
* @return void
48+
* @return void
4949
*/
5050
public function modifyTable()
5151
{

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Validate a model object using Symfony2 Validator component
2020
*
2121
* @author Cristiano Cinotti
22-
*/
22+
*/
2323
class ValidateBehavior extends Behavior
2424
{
2525
/**
@@ -79,7 +79,7 @@ public function objectAttributes()
7979
* Returns the parameters associated with a given column.
8080
* Useful for i18n behavior
8181
*
82-
* @param string $columnName The column name
82+
* @param string|null $columnName The column name
8383
* @return array The array of parameters associated to given column
8484
*/
8585
public function getParametersFromColumnName($columnName = null)
@@ -101,8 +101,8 @@ public function getParametersFromColumnName($columnName = null)
101101
* Remove parameters associated with given column.
102102
* Useful for i18n behavior
103103
*
104-
* @param string $columnName The column name
105-
* @return void
104+
* @param string|null $columnName The column name
105+
* @return void
106106
*/
107107
public function removeParametersFromColumnName($columnName = null)
108108
{
@@ -146,7 +146,7 @@ public function addRuleOnPk()
146146
* Merge $paramArray array into parameters array.
147147
* This method avoid that there are rules with the same name, when adding parameters programmatically.
148148
* Useful for Concrete Inheritance behavior.
149-
* @return void
149+
* @return void
150150
*/
151151
public function mergeParameters(array $params = null)
152152
{
@@ -170,7 +170,7 @@ public function mergeParameters(array $params = null)
170170
/**
171171
* Convert those parameters, containing an array in YAML format
172172
* into a php array
173-
* @return void
173+
* @return void
174174
*/
175175
protected function cleanupParameters()
176176
{

src/Propel/Generator/Builder/DataModelBuilder.php

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ protected function getCrossFKAddMethodInformation(CrossForeignKeys $crossFKs, $c
771771
* @param array $shortSignature
772772
* @param array $normalizedShortSignature
773773
* @param array $phpDoc
774-
* @return void
774+
* @return void
775775
*/
776776
protected function extractCrossInformation(
777777
CrossForeignKeys $crossFKs,
@@ -952,7 +952,7 @@ public function hasBehaviorModifier($hookName, $modifier)
952952
* @param string $hookName The name of the hook as called from one of this class methods, e.g. "preSave"
953953
* @param string $modifier The name of the modifier object providing the method in the behavior
954954
* @param string $script The script will be modified in this method.
955-
* @return void
955+
* @return void
956956
*/
957957
public function applyBehaviorModifierBase($hookName, $modifier, &$script, $tab = " ")
958958
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function addClassOpen(&$script)
7575
* if you want to change that behavior.
7676
*
7777
* @see ObjectBuilder::addClassBody()
78-
* @return void
78+
* @return void
7979
*/
8080
protected function addClassBody(&$script)
8181
{

0 commit comments

Comments
 (0)