@@ -54,7 +54,7 @@ |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $roles[$annotation->getRole()] = array_map( |
| 57 | - function (string $permission) use ($prefix) { |
|
| 57 | + function(string $permission) use ($prefix) { |
|
| 58 | 58 | return $prefix . strtoupper($permission); |
| 59 | 59 | }, |
| 60 | 60 | $annotation->permissions |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $config['directory'] ?? $container->getParameter('kernel.project_dir') . '/src/' |
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 27 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 28 | 28 | $loader->load('reader.xml'); |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use KunicMarko\SonataAnnotationBundle\Features\Fixtures\Project\Kernel; |
| 4 | 4 | use Symfony\Component\HttpFoundation\Request; |
| 5 | 5 | |
| 6 | -require __DIR__.'../../../../../vendor/autoload.php'; |
|
| 6 | +require __DIR__ . '../../../../../vendor/autoload.php'; |
|
| 7 | 7 | |
| 8 | 8 | umask(0000); |
| 9 | 9 | |
@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function getCacheDir() |
| 24 | 24 | { |
| 25 | - return $this->getProjectDir().'/var/cache/test'; |
|
| 25 | + return $this->getProjectDir() . '/var/cache/test'; |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | public function getLogDir() |
| 29 | 29 | { |
| 30 | - return $this->getProjectDir().'/var/logs'; |
|
| 30 | + return $this->getProjectDir() . '/var/logs'; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function registerBundles() |
| 34 | 34 | { |
| 35 | - $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
| 35 | + $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
| 36 | 36 | foreach ($contents as $class => $envs) { |
| 37 | 37 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
| 38 | 38 | yield new $class(); |
@@ -42,19 +42,19 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) |
| 44 | 44 | { |
| 45 | - $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
| 45 | + $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
| 46 | 46 | $container->setParameter('container.autowiring.strict_mode', true); |
| 47 | 47 | $container->setParameter('container.dumper.inline_class_loader', true); |
| 48 | - $loader->load($this->getProjectDir().'/config/packages/*.yaml', 'glob'); |
|
| 49 | - $loader->load($this->getProjectDir().'/config/services.yaml', 'glob'); |
|
| 48 | + $loader->load($this->getProjectDir() . '/config/packages/*.yaml', 'glob'); |
|
| 49 | + $loader->load($this->getProjectDir() . '/config/services.yaml', 'glob'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | protected function configureRoutes(RouteCollectionBuilder $routes) |
| 53 | 53 | { |
| 54 | - $confDir = $this->getProjectDir().'/config'; |
|
| 54 | + $confDir = $this->getProjectDir() . '/config'; |
|
| 55 | 55 | |
| 56 | - $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 57 | - $routes->import($confDir.'/{routes}/test/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 58 | - $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 56 | + $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 57 | + $routes->import($confDir . '/{routes}/test/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 58 | + $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 59 | 59 | } |
| 60 | 60 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | // the name property changes for ListAssociationField |
| 35 | 35 | $name = $property->getName(); |
| 36 | 36 | if ($annotation instanceof ListAssociationField) { |
| 37 | - $name .= '.'.$annotation->getField(); |
|
| 37 | + $name .= '.' . $annotation->getField(); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if (!$annotation->hasPosition()) { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | // the name property changes for ShowAssociationField |
| 34 | 34 | $name = $property->getName(); |
| 35 | 35 | if ($annotation instanceof ShowAssociationField) { |
| 36 | - $name .= '.'.$annotation->getField(); |
|
| 36 | + $name .= '.' . $annotation->getField(); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | if (!$annotation->hasPosition()) { |