}
return $result;
}
-
+
/**
* Returns a list of status messages of the given type, with message and
* params left untouched, like a sane version of getStatusArray
- *
+ *
* @param $type String
*
* @return Array
foreach ( $this->errors as $error ) {
if ( $error['type'] === $type ) {
$result[] = $error;
- }
+ }
}
return $result;
}
}
/**
- * If the specified source message exists, replace it with the specified
+ * If the specified source message exists, replace it with the specified
* destination message, but keep the same parameters as in the original error.
*
* Return true if the replacement was done, false otherwise.