mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-24 21:49:02 +00:00
Replace "else if" with "elseif"
This commit is contained in:
@@ -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'))) {
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user