dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filebackend: use self:: instead of FileBackend:: for some constant uses
[lhc/web/wiklou.git]
/
includes
/
libs
/
StatusValue.php
diff --git
a/includes/libs/StatusValue.php
b/includes/libs/StatusValue.php
index
3bdafe1
..
4b381f8
100644
(file)
--- a/
includes/libs/StatusValue.php
+++ b/
includes/libs/StatusValue.php
@@
-75,7
+75,7
@@
class StatusValue {
/**
* Factory function for good results
*
/**
* Factory function for good results
*
- * @param mixed $value
+ * @param mixed
|null
$value
* @return static
*/
public static function newGood( $value = null ) {
* @return static
*/
public static function newGood( $value = null ) {
@@
-93,7
+93,7
@@
class StatusValue {
* 1 => object(StatusValue) # The StatusValue with warning messages, only
* ]
*
* 1 => object(StatusValue) # The StatusValue with warning messages, only
* ]
*
- * @return
StatusValue
[]
+ * @return
static
[]
*/
public function splitByErrorType() {
$errorsOnlyStatusValue = clone $this;
*/
public function splitByErrorType() {
$errorsOnlyStatusValue = clone $this;
@@
-107,7
+107,7
@@
class StatusValue {
} else {
$errorsOnlyStatusValue->errors[] = $item;
}
} else {
$errorsOnlyStatusValue->errors[] = $item;
}
- }
;
+ }
return [ $errorsOnlyStatusValue, $warningsOnlyStatusValue ];
}
return [ $errorsOnlyStatusValue, $warningsOnlyStatusValue ];
}
@@
-162,7
+162,7
@@
class StatusValue {
* Change operation result
*
* @param bool $ok Whether the operation completed
* Change operation result
*
* @param bool $ok Whether the operation completed
- * @param mixed $value
+ * @param mixed
|null
$value
*/
public function setResult( $ok, $value = null ) {
$this->ok = (bool)$ok;
*/
public function setResult( $ok, $value = null ) {
$this->ok = (bool)$ok;