Apply fixes from StyleCI
This commit is contained in:
parent
53102f9219
commit
f63fd6fecf
@ -60,7 +60,9 @@ class Serialization
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -777,6 +777,7 @@ trait TL
|
||||
if (!is_string($x)) {
|
||||
throw new Exception("deserialize: generated value isn't a string");
|
||||
}
|
||||
|
||||
return $x;
|
||||
case 'true':
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user