/**
* Class Constructor
*
- * @return void
*/
public function __construct() {}
*/
public function is_user_over_quota() {
if ( function_exists( 'upload_is_user_over_quota' ) ) {
- if ( upload_is_user_over_quota( 1 ) ) {
+ if ( upload_is_user_over_quota() ) {
echo "Sorry, you have used your upload quota.\n";
return true;
}
}
$last_arg = $key;
- } else if ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) {
+ } elseif ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) {
for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) {
$key = $match[1]{$j};
$out[$key] = true;
}
$last_arg = $key;
- } else if ( $last_arg !== null ) {
+ } elseif ( $last_arg !== null ) {
$out[$last_arg] = $args[$i];
}
}