Skip to content

Commit

Permalink
Fix PHP code syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 23, 2022
1 parent 2d806fe commit 069b97c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.php_cs.cache
.php-cs-fixer.cache
composer.lock
.phpunit.result.cache
/phpunit.xml
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
'single_line_throw' => false,
// this must be disabled because the output of some tests include NBSP characters
'non_printable_character' => false,
'blank_line_between_import_groups' => false,
))
;
2 changes: 1 addition & 1 deletion src/Config/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function new(string $value): self
*/
public static function fromEasyAdminAssetPackage(string $value): self
{
return (self::new($value))->package(AssetPackage::PACKAGE_NAME);
return self::new($value)->package(AssetPackage::PACKAGE_NAME);
}

public function async(bool $async = true): self
Expand Down
2 changes: 1 addition & 1 deletion src/Field/Configurator/CodeEditorConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function supports(FieldDto $field, EntityDto $entityDto): bool
public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $context): void
{
if ('rtl' === $context->getI18n()->getTextDirection()) {
$field->addCssAsset((Asset::fromEasyAdminAssetPackage('field-code-editor.rtl.css'))->getAsDto());
$field->addCssAsset(Asset::fromEasyAdminAssetPackage('field-code-editor.rtl.css')->getAsDto());
}
}
}
2 changes: 1 addition & 1 deletion src/Field/Configurator/TextEditorConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function supports(FieldDto $field, EntityDto $entityDto): bool
public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $context): void
{
if ('rtl' === $context->getI18n()->getTextDirection()) {
$field->addCssAsset((Asset::fromEasyAdminAssetPackage('field-text-editor.rtl.css'))->getAsDto());
$field->addCssAsset(Asset::fromEasyAdminAssetPackage('field-text-editor.rtl.css')->getAsDto());
}
}
}

0 comments on commit 069b97c

Please sign in to comment.