@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @return self |
43 | 43 | */ |
44 | 44 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
45 | - int &$offset) |
|
45 | + int & $offset) |
|
46 | 46 | { |
47 | 47 | $idx = $offset; |
48 | 48 | if (!$identifier->isPrimitive()) { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ASN1\Type\Primitive; |
6 | 6 | |
@@ -32,14 +32,14 @@ discard block |
||
32 | 32 | * @link http://php.net/manual/en/language.types.float.php |
33 | 33 | * @var string |
34 | 34 | */ |
35 | - const PHP_EXPONENT_DNUM = '/^'. /* @formatter:off */ |
|
36 | - '([+\-]?'. // sign |
|
37 | - '(?:'. |
|
38 | - '\d+'. // LNUM |
|
39 | - '|'. |
|
40 | - '(?:\d*\.\d+|\d+\.\d*)'. // DNUM |
|
41 | - '))[eE]'. |
|
42 | - '([+\-]?\d+)'. // exponent |
|
35 | + const PHP_EXPONENT_DNUM = '/^' . /* @formatter:off */ |
|
36 | + '([+\-]?' . // sign |
|
37 | + '(?:' . |
|
38 | + '\d+' . // LNUM |
|
39 | + '|' . |
|
40 | + '(?:\d*\.\d+|\d+\.\d*)' . // DNUM |
|
41 | + '))[eE]' . |
|
42 | + '([+\-]?\d+)' . // exponent |
|
43 | 43 | '$/'; /* @formatter:on */ |
44 | 44 | |
45 | 45 | /** |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * @return self |
115 | 115 | */ |
116 | 116 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
117 | - int &$offset) |
|
117 | + int & $offset) |
|
118 | 118 | { |
119 | 119 | $idx = $offset; |
120 | 120 | $length = Length::expectFromDER($data, $idx); |