Apply fixes from StyleCI
This commit is contained in:
parent
53102f9219
commit
f63fd6fecf
@ -60,7 +60,9 @@ class Serialization
|
|||||||
} else {
|
} else {
|
||||||
throw new Exception('File does not exist');
|
throw new Exception('File does not exist');
|
||||||
}
|
}
|
||||||
if ($unserialized === false) throw new Exception('An error occurred on deserialization');
|
if ($unserialized === false) {
|
||||||
|
throw new Exception('An error occurred on deserialization');
|
||||||
|
}
|
||||||
return $unserialized;
|
return $unserialized;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -777,6 +777,7 @@ trait TL
|
|||||||
if (!is_string($x)) {
|
if (!is_string($x)) {
|
||||||
throw new Exception("deserialize: generated value isn't a string");
|
throw new Exception("deserialize: generated value isn't a string");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $x;
|
return $x;
|
||||||
case 'true':
|
case 'true':
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user