Skip to content

Commit

Permalink
Fix CS in generated migrations (remove comma from param name in docbl…
Browse files Browse the repository at this point in the history
…ock)
  • Loading branch information
Chris Burke committed Oct 16, 2014
1 parent abc4c92 commit d3a3af7
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions Config/Migration/001_init_migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class InitMigrations extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -47,11 +47,11 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
return true;
}

}
}
6 changes: 3 additions & 3 deletions Config/Migration/002_convert_version_to_class_names.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ConvertVersionToClassNames extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
* @throws InternalErrorException
*/
Expand All @@ -68,7 +68,7 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
Expand Down Expand Up @@ -104,7 +104,7 @@ public function needsUpgrade() {
* Check if every plugin is loaded/reachable, we need access to them
*
* @throws MissingPluginException
* @return void
* @return void
*/
public function checkPlugins() {
$types = Hash::extract($this->records, '{n}.' . $this->Version->Version->alias . '.type');
Expand Down
6 changes: 3 additions & 3 deletions Config/Migration/003_increase_class_name_length.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class IncreaseClassNameLength extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -43,11 +43,11 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
return true;
}

}
}
4 changes: 2 additions & 2 deletions Console/Command/Templates/migration.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class <?php echo $class; ?> extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -41,7 +41,7 @@ class <?php echo $class; ?> extends CakeMigration {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
Expand Down
4 changes: 2 additions & 2 deletions Console/Templates/classes/migration.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class <?php echo $class; ?> extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -41,7 +41,7 @@ class <?php echo $class; ?> extends CakeMigration {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
Expand Down
6 changes: 3 additions & 3 deletions Lib/CakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class CakeMigration extends Object {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -136,7 +136,7 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
Expand Down Expand Up @@ -219,7 +219,7 @@ public function __construct($options = array()) {
/**
* Run migration
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Status of the process
* @throws MigrationException
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class M4af6d40056b04408808500cb58157726 extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -31,11 +31,11 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
return true;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AnotherMigrationPluginTestMigration extends CakeMigration {
/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function before($direction) {
Expand All @@ -31,11 +31,11 @@ public function before($direction) {
/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @param string $direction Direction of migration process (up or down)
* @return boolean Should process continue
*/
public function after($direction) {
return true;
}

}
}

0 comments on commit d3a3af7

Please sign in to comment.