@@ -33,14 +33,14 @@ discard block |
||
| 33 | 33 | * @link http://php.net/manual/en/language.types.float.php |
| 34 | 34 | * @var string |
| 35 | 35 | */ |
| 36 | - const PHP_EXPONENT_DNUM = '/^'. /* @formatter:off */ |
|
| 37 | - '([+\-]?'. // sign |
|
| 38 | - '(?:'. |
|
| 39 | - '\d+'. // LNUM |
|
| 40 | - '|'. |
|
| 41 | - '(?:\d*\.\d+|\d+\.\d*)'. // DNUM |
|
| 42 | - '))[eE]'. |
|
| 43 | - '([+\-]?\d+)'. // exponent |
|
| 36 | + const PHP_EXPONENT_DNUM = '/^' . /* @formatter:off */ |
|
| 37 | + '([+\-]?' . // sign |
|
| 38 | + '(?:' . |
|
| 39 | + '\d+' . // LNUM |
|
| 40 | + '|' . |
|
| 41 | + '(?:\d*\.\d+|\d+\.\d*)' . // DNUM |
|
| 42 | + '))[eE]' . |
|
| 43 | + '([+\-]?\d+)' . // exponent |
|
| 44 | 44 | '$/'; /* @formatter:on */ |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * @return self |
| 116 | 116 | */ |
| 117 | 117 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 118 | - int &$offset): ElementBase |
|
| 118 | + int & $offset): ElementBase |
|
| 119 | 119 | { |
| 120 | 120 | $idx = $offset; |
| 121 | 121 | $length = Length::expectFromDER($data, $idx)->intLength(); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * @return self |
| 40 | 40 | */ |
| 41 | 41 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 42 | - int &$offset): ElementBase |
|
| 42 | + int & $offset): ElementBase |
|
| 43 | 43 | { |
| 44 | 44 | $idx = $offset; |
| 45 | 45 | $len = Length::expectFromDER($data, $idx)->intLength(); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @return self |
| 70 | 70 | */ |
| 71 | 71 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 72 | - int &$offset): ElementBase |
|
| 72 | + int & $offset): ElementBase |
|
| 73 | 73 | { |
| 74 | 74 | $idx = $offset; |
| 75 | 75 | $len = Length::expectFromDER($data, $idx)->intLength(); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | { |
| 110 | 110 | return implode(".", |
| 111 | 111 | array_map( |
| 112 | - function ($num) { |
|
| 112 | + function($num) { |
|
| 113 | 113 | return gmp_strval($num, 10); |
| 114 | 114 | }, $subids)); |
| 115 | 115 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * @return self |
| 93 | 93 | */ |
| 94 | 94 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 95 | - int &$offset): ElementBase |
|
| 95 | + int & $offset): ElementBase |
|
| 96 | 96 | { |
| 97 | 97 | $idx = $offset; |
| 98 | 98 | $length = Length::expectFromDER($data, $idx)->intLength(); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * @return self |
| 65 | 65 | */ |
| 66 | 66 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 67 | - int &$offset): ElementBase |
|
| 67 | + int & $offset): ElementBase |
|
| 68 | 68 | { |
| 69 | 69 | $idx = $offset; |
| 70 | 70 | $length = Length::expectFromDER($data, $idx)->intLength(); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | * @return self |
| 123 | 123 | */ |
| 124 | 124 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
| 125 | - int &$offset): ElementBase |
|
| 125 | + int & $offset): ElementBase |
|
| 126 | 126 | { |
| 127 | 127 | $idx = $offset; |
| 128 | 128 | $length = Length::expectFromDER($data, $idx)->intLength(); |