Skip to content

Commit 5c3a2b7

Browse files
committed
style-ci
1 parent 57156a1 commit 5c3a2b7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Illuminate/View/Compilers/Concerns/CompilesJson.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ trait CompilesJson
1515
* Compile the JSON statement into valid PHP.
1616
*
1717
* @param string $expression
18-
*
1918
* @return string
2019
*/
2120
protected function compileJson($expression)
@@ -39,7 +38,6 @@ protected function compileJson($expression)
3938
* and other nested structures by using PHP's tokenizer.
4039
*
4140
* @param string $expression
42-
*
4341
* @return array
4442
*/
4543
protected function parseArguments($expression)
@@ -48,7 +46,7 @@ protected function parseArguments($expression)
4846
return [];
4947
}
5048

51-
$tokens = @token_get_all('<?php ' . $expression);
49+
$tokens = @token_get_all('<?php '.$expression);
5250

5351
if (false === $tokens) {
5452
// Fallback to simple explode if tokenization fails
@@ -85,10 +83,10 @@ protected function parseArguments($expression)
8583

8684
// Track nesting depth for parentheses, brackets, and braces
8785
if ('(' === $char || '[' === $char || '{' === $char) {
88-
++$depth;
86+
$depth++;
8987
$current .= $char;
9088
} elseif (')' === $char || ']' === $char || '}' === $char) {
91-
--$depth;
89+
$depth--;
9290
$current .= $char;
9391
} elseif (',' === $char && 0 === $depth) {
9492
// Only split on commas at the top level

0 commit comments

Comments
 (0)