Skip to content

Commit c979496

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents b39aa6e + fbf8e71 commit c979496

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Helpers/TemplateHelper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static function splitBladeExpressionForProperty(string $bladeExpression)
143143
{
144144
try {
145145
$explodedValues = array_map('trim', explode(',', $bladeExpression));
146-
146+
147147
if (count($explodedValues) > 3) {
148148
[$group, $property, $propertyVarName, $dtoVar] = $explodedValues;
149149
} elseif (count($explodedValues) > 2) {
@@ -153,18 +153,18 @@ public static function splitBladeExpressionForProperty(string $bladeExpression)
153153
} else {
154154
return [];
155155
}
156-
156+
157157
$group = static::normalizeVarNameFromBladeExpression($group);
158158
$property = static::normalizeVarNameFromBladeExpression($property);
159-
159+
160160
$propertyVarName ??= static::generatePropertyVarName($group, $property);
161161
// Ensure the variable name is not empty or null
162162
if (empty($propertyVarName) || is_null($propertyVarName) || $propertyVarName === 'null') {
163163
$propertyVarName = static::generatePropertyVarName($group, $property);
164164
}
165-
165+
166166
$dtoVar ??= '$content';
167-
167+
168168
return [$group, $property, $dtoVar, static::normalizeVarNameFromBladeExpression($propertyVarName)];
169169
} catch (\Throwable $th) {
170170
//

0 commit comments

Comments
 (0)