Skip to content

Commit 1e4c2d7

Browse files
authored
Fix documentation issues (#1064)
- Update migrations documentation link: 3 -> 5 - Use strict comparison (===) instead of loose (==)
1 parent 4120877 commit 1e4c2d7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/en/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class CreateProducts extends BaseMigration
188188
* Change Method.
189189
*
190190
* More information on this method is available here:
191-
* https://book.cakephp.org/migrations/3/en/writing-migrations.html#the-change-method
191+
* https://book.cakephp.org/migrations/5/en/writing-migrations.html#the-change-method
192192
* @return void
193193
*/
194194
public function change(): void

docs/en/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The command line above will generate a migration file that resembles::
197197
* Change Method.
198198
*
199199
* More information on this method is available here:
200-
* https://book.cakephp.org/migrations/3/en/writing-migrations.html#the-change-method
200+
* https://book.cakephp.org/migrations/5/en/writing-migrations.html#the-change-method
201201
* @return void
202202
*/
203203
public function change(): void

docs/en/seeding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class ConfigSeed extends BaseSeed
254254
"SELECT COUNT(*) as count FROM settings WHERE setting_key = 'maintenance_mode'"
255255
);
256256

257-
if ($exists['count'] == 0) {
257+
if ($exists['count'] === 0) {
258258
$this->table('settings')->insert([
259259
'setting_key' => 'maintenance_mode',
260260
'setting_value' => 'false',

docs/en/seeding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ that update configuration or reference data. For these seeds, you can override t
269269
"SELECT COUNT(*) as count FROM settings WHERE setting_key = 'maintenance_mode'"
270270
);
271271
272-
if ($exists['count'] == 0) {
272+
if ($exists['count'] === 0) {
273273
$this->table('settings')->insert([
274274
'setting_key' => 'maintenance_mode',
275275
'setting_value' => 'false',

0 commit comments

Comments
 (0)