Skip to content

Commit 8685f13

Browse files
Remove unused code and unnecessary else branches
1 parent 3f31aa0 commit 8685f13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ProxyHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,8 @@ private static function exportPropertyScopes(string $parent): string
355355
$propertyScopes = VarExporter::export($propertyScopes);
356356
$propertyScopes = str_replace(VarExporter::export($parent), 'parent::class', $propertyScopes);
357357
$propertyScopes = preg_replace("/(?|(,)\n( ) |\n |,\n (\]))/", '$1$2', $propertyScopes);
358-
$propertyScopes = str_replace("\n", "\n ", $propertyScopes);
359358

360-
return $propertyScopes;
359+
return str_replace("\n", "\n ", $propertyScopes);
361360
}
362361

363362
private static function exportDefault(\ReflectionParameter $param, $namespace): string

0 commit comments

Comments
 (0)