Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-02-22 19:45:45 +00:00 committed by StyleCI Bot
parent 53102f9219
commit f63fd6fecf
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -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;