Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alterphp committed May 24, 2019
1 parent d8183d8 commit 8e2353e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Controller/EasyAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function embeddedListAction()
$fields = \array_filter(
$this->entity['list']['fields'],
function ($name) use ($hiddenFields) {
return !in_array($name, $hiddenFields);
return !\in_array($name, $hiddenFields);
},
ARRAY_FILTER_USE_KEY
);
Expand Down
3 changes: 1 addition & 2 deletions src/DependencyInjection/EasyAdminExtensionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace AlterPHP\EasyAdminExtensionBundle\DependencyInjection;

use EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
Expand Down Expand Up @@ -58,7 +57,7 @@ public function prepend(ContainerBuilder $container)
// @see https://github.com/symfony/symfony/pull/30527
// Put back user default path
$userDefaultPath = $twigDefaultPath.'/bundles/EasyAdminBundle/';
if (file_exists($userDefaultPath)) {
if (\file_exists($userDefaultPath)) {
$paths[$userDefaultPath] = 'EasyAdmin';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(RouterInterface $router, TranslatorInterface $transl
public function getExtendedType()
{
$extendedTypes = static::getExtendedTypes();
$extendedType = reset($extendedTypes);
$extendedType = \reset($extendedTypes);

return $extendedType;
}
Expand Down

0 comments on commit 8e2353e

Please sign in to comment.