From 540da66bdfec289a87f4badc6a572b32b55f9472 Mon Sep 17 00:00:00 2001 From: CodeLingoBot Date: Fri, 5 Apr 2019 20:21:08 +1300 Subject: [PATCH] Change PHP keywords to comply with PSR2 Signed-off-by: CodeLingoBot --- features/bootstrap/FeatureContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php index c0d4a21..d001f16 100644 --- a/features/bootstrap/FeatureContext.php +++ b/features/bootstrap/FeatureContext.php @@ -156,7 +156,7 @@ private static function terminate_proc( $proc ) { } public static function create_cache_dir() { - self::$suite_cache_dir = sys_get_temp_dir() . '/' . uniqid( "wp-cli-test-suite-cache-", TRUE ); + self::$suite_cache_dir = sys_get_temp_dir() . '/' . uniqid( "wp-cli-test-suite-cache-", true ); mkdir( self::$suite_cache_dir ); return self::$suite_cache_dir; } @@ -197,13 +197,13 @@ private function _replace_var( $matches ) { public function create_run_dir() { if ( !isset( $this->variables['RUN_DIR'] ) ) { - $this->variables['RUN_DIR'] = sys_get_temp_dir() . '/' . uniqid( "wp-cli-test-run-", TRUE ); + $this->variables['RUN_DIR'] = sys_get_temp_dir() . '/' . uniqid( "wp-cli-test-run-", true ); mkdir( $this->variables['RUN_DIR'] ); } } public function build_phar( $version = 'same' ) { - $this->variables['PHAR_PATH'] = $this->variables['RUN_DIR'] . '/' . uniqid( "wp-cli-build-", TRUE ) . '.phar'; + $this->variables['PHAR_PATH'] = $this->variables['RUN_DIR'] . '/' . uniqid( "wp-cli-build-", true ) . '.phar'; $this->proc( Utils\esc_cmd( 'php -dphar.readonly=0 %1$s %2$s --version=%3$s && chmod +x %2$s',