Skip to content

Commit 5ec3d14

Browse files
committed
fix typos and docs standards
1 parent 2779a78 commit 5ec3d14

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ Once you've decided to commit the time to seeing your pull request through, [ple
218218
219219
## Support
220220
221-
Github issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
221+
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
222222

223223

features/bootstrap/FeatureContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private static function get_vendor_dir() {
205205
* Get the environment variables required for launched `wp` processes
206206
*/
207207
private static function get_process_env_variables() {
208-
// Ensure we're using the expected `wp` binary
208+
// Ensure we're using the expected `wp` binary.
209209
$bin_dir = getenv( 'WP_CLI_BIN_DIR' ) ?: realpath( dirname( dirname( __DIR__ ) ) . '/bin' );
210210
$vendor_dir = self::get_vendor_dir();
211211
$path_separator = Utils\is_windows() ? ';' : ':';
@@ -390,7 +390,7 @@ public function beforeScenario( $event ) {
390390
public function afterScenario( $event ) {
391391

392392
if ( self::$run_dir ) {
393-
// remove altered WP install, unless there's an error
393+
// Remove altered WP install, unless there's an error.
394394
if ( $event->getResult() < 4 ) {
395395
self::remove_dir( self::$run_dir );
396396
}

features/bootstrap/support.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function check_string( $output, $expected, $action, $message = false ) {
6969
}
7070

7171
function compare_tables( $expected_rows, $actual_rows, $output ) {
72-
// the first row is the header and must be present
72+
// The first row is the header and must be present.
7373
if ( $expected_rows[0] !== $actual_rows[0] ) {
7474
throw new Exception( $output );
7575
}
@@ -165,11 +165,11 @@ function check_that_csv_string_contains_values( $actual_csv, $expected_csv ) {
165165
return false;
166166
}
167167

168-
// Each sample must have headers
168+
// Each sample must have headers.
169169
$actual_headers = array_values( array_shift( $actual_csv ) );
170170
$expected_headers = array_values( array_shift( $expected_csv ) );
171171

172-
// Each expected_csv must exist somewhere in actual_csv in the proper column
172+
// Each expected_csv must exist somewhere in actual_csv in the proper column.
173173
$expected_result = 0;
174174
foreach ( $expected_csv as $expected_row ) {
175175
$expected_row = array_combine( $expected_headers, $expected_row );

features/steps/given.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function ( $world, TableNode $table ) {
172172
foreach ( $table->getHash() as $row ) {
173173
$path = $world->replace_variables( $row['path'] );
174174
if ( file_exists( $path ) ) {
175-
// assume it's the same file and skip re-download
175+
// Assume it's the same file and skip re-download.
176176
continue;
177177
}
178178

features/steps/then.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function ( $world, $stream, $operator, $goal_ver ) {
182182
function ( $world, $path, $type, $action, $expected = null ) {
183183
$path = $world->replace_variables( $path );
184184

185-
// If it's a relative path, make it relative to the current test dir
185+
// If it's a relative path, make it relative to the current test dir.
186186
if ( '/' !== $path[0] ) {
187187
$path = $world->variables['RUN_DIR'] . "/$path";
188188
}
@@ -228,7 +228,7 @@ function ( $world, $path, $type, $action, $expected = null ) {
228228
'/^the contents of the (.+) file should match (((\/.+\/)|(#.+#))([a-z]+)?)$/',
229229
function ( $world, $path, $expected ) {
230230
$path = $world->replace_variables( $path );
231-
// If it's a relative path, make it relative to the current test dir
231+
// If it's a relative path, make it relative to the current test dir.
232232
if ( '/' !== $path[0] ) {
233233
$path = $world->variables['RUN_DIR'] . "/$path";
234234
}

utils/behat-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function version_tags(
6767
version_tags( 'less-than-php', PHP_VERSION, '>=', $features_folder )
6868
);
6969

70-
// Skip Github API tests if `GITHUB_TOKEN` not available because of rate
70+
// Skip GitHub API tests if `GITHUB_TOKEN` not available because of rate
7171
// limiting. See https://github.com/wp-cli/wp-cli/issues/1612
7272
if ( ! getenv( 'GITHUB_TOKEN' ) ) {
7373
$skip_tags[] = '@github-api';

0 commit comments

Comments
 (0)