Completed
Push — 1.x ( 815042...ac7482 )
by
unknown
06:00
created
src/DependencyInjection/Compiler/AccessCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/DependencyInjection/SonataAnnotationExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
features/Fixtures/Project/public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
features/Fixtures/Project/src/Kernel.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,17 +22,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Reader/ListReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/Reader/ShowReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/Reader/DatagridReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
                 // the name property changes for DatagridAssociationField
30 30
                 $name = $property->getName();
31 31
                 if ($annotation instanceof DatagridAssociationField) {
32
-                    $name .= '.'.$annotation->getField();
32
+                    $name .= '.' . $annotation->getField();
33 33
                 }
34 34
 
35 35
                 if (!$annotation->hasPosition()) {
Please login to merge, or discard this patch.