From ef3f62af952bd404938fd2edfbac1e4fac3b5698 Mon Sep 17 00:00:00 2001 From: randstring Date: Wed, 17 Apr 2019 12:53:44 +0300 Subject: [PATCH 1/3] Fix mistaken exception variable name --- src/Find_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Find_Command.php b/src/Find_Command.php index dcd14f8..28b84ab 100644 --- a/src/Find_Command.php +++ b/src/Find_Command.php @@ -285,7 +285,7 @@ private function recurse_directory( $path ) { $this->found_wp[ $version_path ][ $constant ] = $value; } } catch ( \Exception $e ) { - $this->log( "Could not process the 'wp-config.php' transformation: " . $exception->getMessage() ); + $this->log( "Could not process the 'wp-config.php' transformation: " . $e->getMessage() ); } } $this->log( "Found WordPress installation at '{$version_path}'" ); From 37c797ea93d27f71d0342b9c3dcb8877bcc82837 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 17 Apr 2019 13:38:41 +0300 Subject: [PATCH 2/3] Use a clear variable name for exceptions Co-Authored-By: randstring --- src/Find_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Find_Command.php b/src/Find_Command.php index 28b84ab..8f69f3a 100644 --- a/src/Find_Command.php +++ b/src/Find_Command.php @@ -284,7 +284,7 @@ private function recurse_directory( $path ) { } $this->found_wp[ $version_path ][ $constant ] = $value; } - } catch ( \Exception $e ) { + } catch ( Exception $exception ) { $this->log( "Could not process the 'wp-config.php' transformation: " . $e->getMessage() ); } } From ef8819660faa64da51bb9c9f719161159076995a Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 17 Apr 2019 13:38:58 +0300 Subject: [PATCH 3/3] Use a clear variable name for exceptions Co-Authored-By: randstring --- src/Find_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Find_Command.php b/src/Find_Command.php index 8f69f3a..c7abc08 100644 --- a/src/Find_Command.php +++ b/src/Find_Command.php @@ -285,7 +285,7 @@ private function recurse_directory( $path ) { $this->found_wp[ $version_path ][ $constant ] = $value; } } catch ( Exception $exception ) { - $this->log( "Could not process the 'wp-config.php' transformation: " . $e->getMessage() ); + $this->log( "Could not process the 'wp-config.php' transformation: " . $exception->getMessage() ); } } $this->log( "Found WordPress installation at '{$version_path}'" );