Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-10 21:28:34 +00:00 committed by StyleCI Bot
parent 110aa57888
commit 12bd1ee1d4

View File

@ -114,19 +114,19 @@ trait TL
switch ($type['type']) {
case 'int':
if (!is_numeric($object)) {
throw new Exception("given value (".$object.") isn't numeric");
throw new Exception('given value ('.$object.") isn't numeric");
}
return \danog\PHP\Struct::pack('<i', $object);
case '#':
if (!is_numeric($object)) {
throw new Exception("given value (".$object.") isn't numeric");
throw new Exception('given value ('.$object.") isn't numeric");
}
return \danog\PHP\Struct::pack('<I', $object);
case 'long':
if (!is_numeric($object)) {
throw new Exception("given value (".$object.") isn't numeric");
throw new Exception('given value ('.$object.") isn't numeric");
}
return \danog\PHP\Struct::pack('<q', $object);