@@ -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\Feature; |
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\Feature; |
6 | 6 | use ASN1\Element; |
@@ -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\Component; |
6 | 6 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @throws DecodeException If decoding fails |
50 | 50 | * @return self |
51 | 51 | */ |
52 | - public static function fromDER(string $data, int &$offset = null): self |
|
52 | + public static function fromDER(string $data, int & $offset = null): self |
|
53 | 53 | { |
54 | 54 | $idx = $offset ? $offset : 0; |
55 | 55 | $datalen = strlen($data); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @throws DecodeException If decoding fails |
88 | 88 | * @return int|string |
89 | 89 | */ |
90 | - private static function _decodeLongFormLength(int $length, string $data, int &$offset) |
|
90 | + private static function _decodeLongFormLength(int $length, string $data, int & $offset) |
|
91 | 91 | { |
92 | 92 | // first octet must not be 0xff (spec 8.1.3.5c) |
93 | 93 | if ($length == 127) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * @throws DecodeException If decoding or expectation fails |
117 | 117 | * @return self |
118 | 118 | */ |
119 | - public static function expectFromDER(string $data, int &$offset, int $expected = null): self |
|
119 | + public static function expectFromDER(string $data, int & $offset, int $expected = null): self |
|
120 | 120 | { |
121 | 121 | $idx = $offset; |
122 | 122 | $length = self::fromDER($data, $idx); |
@@ -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\Component; |
6 | 6 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @throws DecodeException If decoding fails |
85 | 85 | * @return self |
86 | 86 | */ |
87 | - public static function fromDER(string $data, int &$offset = null): self |
|
87 | + public static function fromDER(string $data, int & $offset = null): self |
|
88 | 88 | { |
89 | 89 | $idx = $offset ? $offset : 0; |
90 | 90 | $datalen = strlen($data); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @throws DecodeException If decoding fails |
118 | 118 | * @return string Tag number |
119 | 119 | */ |
120 | - private static function _decodeLongFormTag(string $data, int &$offset): string |
|
120 | + private static function _decodeLongFormTag(string $data, int & $offset): string |
|
121 | 121 | { |
122 | 122 | $datalen = strlen($data); |
123 | 123 | $tag = gmp_init(0, 10); |
@@ -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; |
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; |
6 | 6 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @return self |
192 | 192 | */ |
193 | 193 | protected static function _decodeFromDER(Identifier $identifier, string $data, |
194 | - int &$offset) |
|
194 | + int & $offset) |
|
195 | 195 | { |
196 | 196 | throw new \BadMethodCallException( |
197 | 197 | __METHOD__ . " must be implemented in derived class."); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * type, but decoding yields another type |
211 | 211 | * @return self |
212 | 212 | */ |
213 | - public static function fromDER(string $data, int &$offset = null) |
|
213 | + public static function fromDER(string $data, int & $offset = null) |
|
214 | 214 | { |
215 | 215 | // decode identifier |
216 | 216 | $idx = $offset ? $offset : 0; |
@@ -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\Exception; |
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\Util; |
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; |
6 | 6 |