Skip to content

Commit 069b97c

Browse files
committed
Fix PHP code syntax
1 parent 2d806fe commit 069b97c

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.php_cs.cache
2+
.php-cs-fixer.cache
23
composer.lock
34
.phpunit.result.cache
45
/phpunit.xml

.php-cs-fixer.dist.php

+1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
'single_line_throw' => false,
3131
// this must be disabled because the output of some tests include NBSP characters
3232
'non_printable_character' => false,
33+
'blank_line_between_import_groups' => false,
3334
))
3435
;

src/Config/Asset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static function new(string $value): self
4848
*/
4949
public static function fromEasyAdminAssetPackage(string $value): self
5050
{
51-
return (self::new($value))->package(AssetPackage::PACKAGE_NAME);
51+
return self::new($value)->package(AssetPackage::PACKAGE_NAME);
5252
}
5353

5454
public function async(bool $async = true): self

src/Field/Configurator/CodeEditorConfigurator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function supports(FieldDto $field, EntityDto $entityDto): bool
2222
public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $context): void
2323
{
2424
if ('rtl' === $context->getI18n()->getTextDirection()) {
25-
$field->addCssAsset((Asset::fromEasyAdminAssetPackage('field-code-editor.rtl.css'))->getAsDto());
25+
$field->addCssAsset(Asset::fromEasyAdminAssetPackage('field-code-editor.rtl.css')->getAsDto());
2626
}
2727
}
2828
}

src/Field/Configurator/TextEditorConfigurator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function supports(FieldDto $field, EntityDto $entityDto): bool
2222
public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $context): void
2323
{
2424
if ('rtl' === $context->getI18n()->getTextDirection()) {
25-
$field->addCssAsset((Asset::fromEasyAdminAssetPackage('field-text-editor.rtl.css'))->getAsDto());
25+
$field->addCssAsset(Asset::fromEasyAdminAssetPackage('field-text-editor.rtl.css')->getAsDto());
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)