Skip to content

Commit 474c36c

Browse files
authored
Merge pull request #876 from josbeir/4.x
Clean up code-sniffing violations in baked migrations
2 parents f6c05c9 + 3ea8c0a commit 474c36c

File tree

37 files changed

+64
-0
lines changed

37 files changed

+64
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ error.log
1616
/tests/test_app/config/TestsMigrations/schema-dump-test.lock
1717
/tests/test_app/Plugin/TestBlog/config/Migrations/*
1818
.phpunit.cache
19+
.ddev
1920

2021
# IDE and editor specific files #
2122
#################################

templates/bake/config/diff.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class {{ name }} extends AbstractMigration
4242
{% else %}
4343
* https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
4444
{% endif %}
45+
*
4546
* @return void
4647
*/
4748
public function up(): void
@@ -128,6 +129,7 @@ not empty %}
128129
*
129130
* More information on this method is available here:
130131
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
132+
*
131133
* @return void
132134
*/
133135
public function down(): void

templates/bake/config/skeleton.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class {{ name }} extends AbstractMigration
4343
{% else %}
4444
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
4545
{% endif %}
46+
*
4647
* @return void
4748
*/
4849
public function change(): void

templates/bake/config/snapshot.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class {{ name }} extends AbstractMigration
4141
*
4242
* More information on this method is available here:
4343
* https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
44+
*
4445
* @return void
4546
*/
4647
public function up(): void
@@ -58,6 +59,7 @@ class {{ name }} extends AbstractMigration
5859
*
5960
* More information on this method is available here:
6061
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
62+
*
6163
* @return void
6264
*/
6365
public function down(): void

tests/comparisons/Diff/addRemove/the_diff_add_remove_mysql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffAddRemoveMysql extends BaseMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/migrations/4/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -42,6 +43,7 @@ public function up(): void
4243
*
4344
* More information on this method is available here:
4445
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
46+
*
4547
* @return void
4648
*/
4749
public function down(): void

tests/comparisons/Diff/addRemove/the_diff_add_remove_pgsql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffAddRemovePgsql extends AbstractMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -33,6 +34,7 @@ public function up(): void
3334
*
3435
* More information on this method is available here:
3536
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
37+
*
3638
* @return void
3739
*/
3840
public function down(): void

tests/comparisons/Diff/default/the_diff_default_mysql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffDefaultMysql extends BaseMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/migrations/4/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -147,6 +148,7 @@ public function up(): void
147148
*
148149
* More information on this method is available here:
149150
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
151+
*
150152
* @return void
151153
*/
152154
public function down(): void

tests/comparisons/Diff/default/the_diff_default_pgsql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffDefaultPgsql extends AbstractMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -126,6 +127,7 @@ public function up(): void
126127
*
127128
* More information on this method is available here:
128129
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
130+
*
129131
* @return void
130132
*/
131133
public function down(): void

tests/comparisons/Diff/simple/the_diff_simple_mysql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffSimpleMysql extends BaseMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/migrations/4/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -74,6 +75,7 @@ public function up(): void
7475
*
7576
* More information on this method is available here:
7677
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
78+
*
7779
* @return void
7880
*/
7981
public function down(): void

tests/comparisons/Diff/simple/the_diff_simple_pgsql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TheDiffSimplePgsql extends AbstractMigration
1010
*
1111
* More information on this method is available here:
1212
* https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
13+
*
1314
* @return void
1415
*/
1516
public function up(): void
@@ -62,6 +63,7 @@ public function up(): void
6263
*
6364
* More information on this method is available here:
6465
* https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
66+
*
6567
* @return void
6668
*/
6769
public function down(): void

0 commit comments

Comments
 (0)