@@ -271,7 +271,7 @@ |
||
| 271 | 271 | /** |
| 272 | 272 | * Test that number is valid for this context. |
| 273 | 273 | * |
| 274 | - * @param mixed $num |
|
| 274 | + * @param string $num |
|
| 275 | 275 | * @return boolean |
| 276 | 276 | */ |
| 277 | 277 | private static function _validateNumber($num) |
@@ -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"; |
@@ -331,10 +331,10 @@ |
||
| 331 | 331 | private function _isPseudoType($tag) |
| 332 | 332 | { |
| 333 | 333 | switch ($tag) { |
| 334 | - case self::TYPE_STRING: |
|
| 335 | - return $this instanceof StringType; |
|
| 336 | - case self::TYPE_TIME: |
|
| 337 | - return $this instanceof TimeType; |
|
| 334 | + case self::TYPE_STRING: |
|
| 335 | + return $this instanceof StringType; |
|
| 336 | + case self::TYPE_TIME: |
|
| 337 | + return $this instanceof TimeType; |
|
| 338 | 338 | } |
| 339 | 339 | return false; |
| 340 | 340 | } |