Skip to content

Commit 31ca5af

Browse files
authored
Merge pull request #5773 from kenjis/fix-docs-run-cs-fixer
docs: fix coding style by php-cs-fixer
2 parents 78d8487 + 170faa1 commit 31ca5af

File tree

246 files changed

+438
-458
lines changed

Some content is hidden

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

246 files changed

+438
-458
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$overwrite = CLI::prompt('File exists. Overwrite?', ['y','n']);
3+
$overwrite = CLI::prompt('File exists. Overwrite?', ['y', 'n']);

user_guide_src/source/cli/cli_library/008.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
$fruit = CLI::promptByKey(['These are your choices:', 'Which would you like?'], [
4-
'apple' => 'The red apple',
4+
'apple' => 'The red apple',
55
'orange' => 'The plump orange',
6-
'banana' => 'The ripe banana'
6+
'banana' => 'The ripe banana',
77
]);
88
/*
99
* These are your choices:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
CLI::write("fileA \t". CLI::color('/path/to/file', 'white'), 'yellow');
3+
CLI::write("fileA \t" . CLI::color('/path/to/file', 'white'), 'yellow');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

33
CLI::color("task1\t", 'yellow');
4-
CLI::wrap("Some long description goes here that might be longer than the current window.");
4+
CLI::wrap('Some long description goes here that might be longer than the current window.');

user_guide_src/source/cli/cli_library/021.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$thead = ['ID', 'Title', 'Updated At', 'Active'];
44
$tbody = [
55
[7, 'A great item title', '2017-11-15 10:35:02', 1],
6-
[8, 'Another great item title', '2017-11-16 13:46:54', 0]
6+
[8, 'Another great item title', '2017-11-16 13:46:54', 0],
77
];
88

99
CLI::table($tbody, $thead);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

33
$classmap = [
4-
'Markdown' => APPPATH . 'third_party/markdown.php'
4+
'Markdown' => APPPATH . 'third_party/markdown.php',
55
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
$query = $db->query("SOME QUERY");
3+
$query = $db->query('SOME QUERY');
44

55
$query->resultID;

user_guide_src/source/database/configuration/001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ class Database extends Config
2424
'strictOn' => false,
2525
'failover' => [],
2626
];
27-
27+
2828
// ...
2929
}

user_guide_src/source/database/configuration/005.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
'encrypt' => false,
3333
'compress' => false,
3434
'strictOn' => false,
35-
]
35+
],
3636
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
$sql = "INSERT INTO mytable (title, name) VALUES (".$db->escape($title).", ".$db->escape($name).")";
3+
$sql = 'INSERT INTO mytable (title, name) VALUES (' . $db->escape($title) . ', ' . $db->escape($name) . ')';
44
$db->query($sql);
55
echo $db->affectedRows();

0 commit comments

Comments
 (0)