Commit a96d71f4 authored by Carsten  Rose's avatar Carsten Rose
Browse files

KeyValueStringParser.php: fixed a problem which have never been reported.

OnArray.php: typo in doc.
doUpload: enhance type declaration.
parent cc55f4fb
......@@ -72,11 +72,12 @@ class File {
}
/**
* @param string $keyStoreExtra
* @param string $sipUpload
* @param array $statusUpload
* @throws CodeException
* @throws UserFormException
*/
private function doUpload($sipUpload, $statusUpload) {
private function doUpload($sipUpload, array $statusUpload) {
list($dummy, $newArr) = each($_FILES);
$statusUpload = array_merge($statusUpload, $newArr);
......
......@@ -103,7 +103,7 @@ class KeyValueStringParser {
$returnValue = array();
foreach ($keyValuePairs as $keyValuePairString) {
if (trim($keyValuePairString === "")) {
if (trim($keyValuePairString) === "") {
continue;
}
......
......@@ -262,7 +262,7 @@ class OnArray {
}
/**
* Iterates over an array and replaces all occurences of $search with $replace. Returns the new array.
* Iterates over an array and replaces $search with $replace in all elements. Returns the new array.
*
* @param array $src
* @param $search
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment