Skip to content

Commit f7ce5cd

Browse files
committed
docs: update coding style with php-cs-fixer
1 parent 44d0bb6 commit f7ce5cd

218 files changed

Lines changed: 257 additions & 257 deletions

File tree

Some content is hidden

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

user_guide_src/source/cli/cli_commands/006.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
try {
44
// ...
5-
} catch (Exception $e) {
5+
} catch (\Exception $e) {
66
$this->showError($e);
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$color = CLI::prompt('What is your favorite color?');
3+
$color = \CLI::prompt('What is your favorite color?');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$color = CLI::prompt('What is your favorite color?', 'blue');
3+
$color = \CLI::prompt('What is your favorite color?', 'blue');
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']);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$email = CLI::prompt('What is your email?', null, 'required|valid_email');
3+
$email = \CLI::prompt('What is your email?', null, 'required|valid_email');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$email = CLI::prompt('What is your email?', null, ['required', 'valid_email']);
3+
$email = \CLI::prompt('What is your email?', null, ['required', 'valid_email']);

user_guide_src/source/cli/cli_library/007.php

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

3-
$fruit = CLI::promptByKey('These are your choices:', ['The red apple', 'The plump orange', 'The ripe banana']);
3+
$fruit = \CLI::promptByKey('These are your choices:', ['The red apple', 'The plump orange', 'The ripe banana']);
44
/*
55
* These are your choices:
66
* [0] The red apple

user_guide_src/source/cli/cli_library/008.php

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

3-
$fruit = CLI::promptByKey(['These are your choices:', 'Which would you like?'], [
3+
$fruit = \CLI::promptByKey(['These are your choices:', 'Which would you like?'], [
44
'apple' => 'The red apple',
55
'orange' => 'The plump orange',
66
'banana' => 'The ripe banana',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
CLI::write('The rain in Spain falls mainly on the plains.');
3+
\CLI::write('The rain in Spain falls mainly on the plains.');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
CLI::write('File created.', 'green');
3+
\CLI::write('File created.', 'green');

0 commit comments

Comments
 (0)