Skip to content

Commit 3e912dc

Browse files
committed
Fix style
1 parent a8b523c commit 3e912dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Support/helpers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ function call($callback, array $parameters = [], $defaultMethod = 'handle')
3535
*/
3636
function varexport($expression, bool $return = false)
3737
{
38-
$export = var_export($expression, true);
39-
4038
$patterns = [
4139
"/array \(\n\)/" => '[]',
4240
"/array \(\n\s+\)/" => '[]',
@@ -46,8 +44,8 @@ function varexport($expression, bool $return = false)
4644
"/([ ]*)(\'[^\']+\') => ([\[\'])/" => '$1$2 => $3',
4745
];
4846

47+
$export = var_export($expression, true);
4948
$export = preg_replace(array_keys($patterns), array_values($patterns), $export);
50-
5149
if ($return) {
5250
return $export;
5351
}

0 commit comments

Comments
 (0)