Apply fixes from StyleCI
This commit is contained in:
parent
110aa57888
commit
12bd1ee1d4
@ -114,19 +114,19 @@ trait TL
|
|||||||
switch ($type['type']) {
|
switch ($type['type']) {
|
||||||
case 'int':
|
case 'int':
|
||||||
if (!is_numeric($object)) {
|
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);
|
return \danog\PHP\Struct::pack('<i', $object);
|
||||||
case '#':
|
case '#':
|
||||||
if (!is_numeric($object)) {
|
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);
|
return \danog\PHP\Struct::pack('<I', $object);
|
||||||
case 'long':
|
case 'long':
|
||||||
if (!is_numeric($object)) {
|
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);
|
return \danog\PHP\Struct::pack('<q', $object);
|
||||||
|
Loading…
Reference in New Issue
Block a user