@@ -57,11 +57,11 @@ |
||
57 | 57 | $num = gmp_init($this->_number, 10); |
58 | 58 | switch (gmp_sign($num)) { |
59 | 59 | // positive |
60 | - case 1: |
|
61 | - return self::_encodePositiveInteger($num); |
|
62 | - // negative |
|
63 | - case -1: |
|
64 | - return self::_encodeNegativeInteger($num); |
|
60 | + case 1: |
|
61 | + return self::_encodePositiveInteger($num); |
|
62 | + // negative |
|
63 | + case -1: |
|
64 | + return self::_encodeNegativeInteger($num); |
|
65 | 65 | } |
66 | 66 | // zero |
67 | 67 | return "\0"; |
@@ -273,7 +273,7 @@ |
||
273 | 273 | /** |
274 | 274 | * Test that number is valid for this context. |
275 | 275 | * |
276 | - * @param mixed $num |
|
276 | + * @param string $num |
|
277 | 277 | * @return boolean |
278 | 278 | */ |
279 | 279 | private static function _validateNumber($num): bool |
@@ -332,10 +332,10 @@ |
||
332 | 332 | private function _isPseudoType($tag): bool |
333 | 333 | { |
334 | 334 | switch ($tag) { |
335 | - case self::TYPE_STRING: |
|
336 | - return $this instanceof StringType; |
|
337 | - case self::TYPE_TIME: |
|
338 | - return $this instanceof TimeType; |
|
335 | + case self::TYPE_STRING: |
|
336 | + return $this instanceof StringType; |
|
337 | + case self::TYPE_TIME: |
|
338 | + return $this instanceof TimeType; |
|
339 | 339 | } |
340 | 340 | return false; |
341 | 341 | } |