Skip to content

Commit 6a1527c

Browse files
authored
Merge pull request #57 from wp-cli/fix/phpcs
2 parents a396128 + b0731a5 commit 6a1527c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sudo: false
1+
os: linux
22
dist: trusty
33

44
language: php

src/Find_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private function recurse_directory( $path ) {
234234
// Don't recurse directories that probably don't have a WordPress installation.
235235
if ( ! $this->skip_ignored_paths ) {
236236
// Assume base path doesn't need comparison
237-
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '/' ) . '#', '', $path );
237+
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '#' ) . '#', '', $path );
238238
// Ignore all hidden system directories
239239
$bits = explode( '/', trim( $compared_path, '/' ) );
240240
$current_dir = array_pop( $bits );

0 commit comments

Comments
 (0)