Skip to content

Commit

Permalink
Merge pull request #57 from wp-cli/fix/phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Jul 5, 2020
2 parents a396128 + b0731a5 commit 6a1527c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: false
os: linux
dist: trusty

language: php
Expand Down
2 changes: 1 addition & 1 deletion src/Find_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private function recurse_directory( $path ) {
// Don't recurse directories that probably don't have a WordPress installation.
if ( ! $this->skip_ignored_paths ) {
// Assume base path doesn't need comparison
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '/' ) . '#', '', $path );
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '#' ) . '#', '', $path );
// Ignore all hidden system directories
$bits = explode( '/', trim( $compared_path, '/' ) );
$current_dir = array_pop( $bits );
Expand Down

0 comments on commit 6a1527c

Please sign in to comment.