@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
3 | +require_once __DIR__.'/../vendor/autoload.php'; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | ], [ |
55 | 55 | 'json' => '[', |
56 | 56 | 'expect' => '[]', |
57 | - ],[ |
|
57 | + ], [ |
|
58 | 58 | 'json' => '[{', |
59 | 59 | 'expect' => '[{}]', |
60 | 60 | ], [ |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $this->reset($missingValue); |
63 | 63 | |
64 | - return $head . $this->doFix(\rtrim($json)) . $tail; |
|
64 | + return $head.$this->doFix(\rtrim($json)).$tail; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | public function trim($json) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | if (\strlen($json) === 1 && isset($this->pairs[$json])) { |
92 | - return $json . $this->pairs[$json]; |
|
92 | + return $json.$this->pairs[$json]; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | if ($json[0] !== '"') { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $last2 = \substr($json, -2); |
101 | 101 | |
102 | 102 | if ($last2 === '\"' || $last !== '"') { |
103 | - return $json . '"'; |
|
103 | + return $json.'"'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | return null; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return $tmpJson; |
42 | 42 | } |
43 | 43 | |
44 | - return \substr($tmpJson, 0, 0 - \strlen($matches[1])) . $literal; |
|
44 | + return \substr($tmpJson, 0, 0 - \strlen($matches[1])).$literal; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | protected function padStack($tmpJson) |