Skip to content

Commit 0918d69

Browse files
committed
style
1 parent 0c5ca22 commit 0918d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ protected function compileMaybe($expression)
435435
throw new ViewCompilationException('The @maybe directive requires exactly 2 parameters.');
436436
}
437437

438-
[ $attribute, $data ] = array_map('trim', $parts);
438+
[$attribute, $data] = array_map('trim', $parts);
439439

440440
return "<?php if($data !== '' && $data !== null && trim(is_bool($data) ? ($data ? 'true' : 'false') : $data) !== '') echo $attribute . '=\"' . e(is_bool($data) ? ($data ? 'true' : 'false') : $data) . '\"'; ?>";
441441
}

tests/View/Blade/BladeMaybeStatementsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function evaluateBlade(string $compiled, array $data = []): string
161161
{
162162
extract($data);
163163
ob_start();
164-
eval('?>' . $compiled);
164+
eval('?>'.$compiled);
165165
return ob_get_clean();
166166
}
167167
}

0 commit comments

Comments
 (0)