Skip to content

Commit 6d0b348

Browse files
committed
Remove space in Blade's @ directives
1 parent 1549000 commit 6d0b348

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Converter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ protected static function buildFormOpen(string $options): string
201201
$input .= "\n".static::$indent.' @if (strtoupper('.$method.') !== \'GET\')';
202202
$input .= "\n".static::$indent.' @csrf';
203203
$input .= "\n".static::$indent.' @if (strtoupper('.$method.') !== \'POST\')';
204-
$input .= "\n".static::$indent.' @method ('.$method.')';
204+
$input .= "\n".static::$indent.' @method('.$method.')';
205205
$input .= "\n".static::$indent.' @endif';
206206
$input .= "\n".static::$indent.' @endif';
207207

208208
} elseif ($method !== 'GET') {
209209
$input .= "\n".static::$indent.' @csrf';
210210

211211
if ($method !== 'POST') {
212-
$input .= "\n".static::$indent.' @method (\''.$method.'\')';
212+
$input .= "\n".static::$indent.' @method(\''.$method.'\')';
213213
}
214214
}
215215

@@ -367,7 +367,7 @@ protected static function buildSelect(string $name, string $list, string $select
367367
$input .= static::$indent.' @foreach ('.$list.' as $optionValue => $optionText)'."\n";
368368
$input .= static::$indent.' <option '."\n";
369369
$input .= static::$indent.' value="'.static::escapedEcho('$optionValue').'" '."\n";
370-
$input .= static::$indent.' @selected (in_array($optionValue, (array) ('.static::withOldHelperIfNeeded($name, $selectedValue).')))'."\n";
370+
$input .= static::$indent.' @selected(in_array($optionValue, (array) ('.static::withOldHelperIfNeeded($name, $selectedValue).')))'."\n";
371371
$input .= static::$indent.' >'.static::escapedEcho('$optionText').'</option>'."\n";
372372
$input .= static::$indent.' @endforeach'."\n";
373373
$input .= static::$indent.'</select>';
@@ -432,7 +432,7 @@ protected static function buildHtmlTagAttributes(array $attributes): string
432432
} elseif ($attrName === 'multiple') {
433433
$attr = '@if ('.$attrValue.') multiple @endif';
434434
} else {
435-
$attr = '@'.$attrName.' ('.$attrValue.')';
435+
$attr = '@'.$attrName.'('.$attrValue.')';
436436
}
437437

438438
} elseif ($attrName === 'class' && preg_match('/^\s*(\[\s*.*\s*\])\s*$/Us', $attrValue, $matches)) {

0 commit comments

Comments
 (0)