From 61aef351a71d1e4ff65e507396d7d65062ca0209 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sun, 7 Aug 2016 15:12:04 -0700 Subject: [PATCH] Replace "else if" with "elseif" --- scripts/v4_migration.php | 6 +++--- src/Curl/Curl.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/v4_migration.php b/scripts/v4_migration.php index d78c3d0..43834ad 100644 --- a/scripts/v4_migration.php +++ b/scripts/v4_migration.php @@ -68,14 +68,14 @@ $results['files_to_change_count'] = count($results['files_to_change']); if ($results['errors_count'] > 0) { echo 'ERROR: Unable to read files.' . "\n"; exit(1); -} else if ($results['files_found_count'] === 0) { +} elseif ($results['files_found_count'] === 0) { echo 'Current directory "' . $cwd . '"' . "\n"; echo 'ERROR: No read files found in current directory.' . "\n"; exit(1); -} else if ($results['files_to_change_count'] === 0) { +} elseif ($results['files_to_change_count'] === 0) { echo 'OK: No files to change.' . "\n"; exit(0); -} else if ($results['files_to_change_count'] > 0) { +} elseif ($results['files_to_change_count'] > 0) { echo $results['files_to_change_count'] . ' of ' . $results['files_found_count'] . ' files to change found.' . "\n"; echo 'Continue? [y/n] '; if (!in_array(trim(fgets(STDIN)), array('y', 'Y'))) { diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 328298e..6ab15d3 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -162,7 +162,7 @@ class Curl if (class_exists('CURLFile')) { $data[$key] = new \CURLFile(substr($value, 1)); } - } else if ($value instanceof \CURLFile) { + } elseif ($value instanceof \CURLFile) { $binary_data = true; } } @@ -1222,7 +1222,7 @@ class Curl } } } - } else if ($array === null) { + } elseif ($array === null) { $return[$prefix] = $array; } return $return;