Passed
Pull Request — master (#21)
by Pavel
06:33
created
DependencyInjection/Compiler/DoctrineOrmCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             return;
22 22
         }
23 23
 
24
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config'));
24
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
25 25
         $loader->load('doctrine.yml');
26 26
 
27 27
         $factory = $container->getDefinition('cruds.factory.reflection');
Please login to merge, or discard this patch.
DependencyInjection/CrudsExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /** {@inheritdoc} */
13 13
     public function load(array $configs, ContainerBuilder $container)
14 14
     {
15
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
15
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
16 16
         $loader->load('cruds.yml');
17 17
 
18 18
         $config = $this->processConfiguration($this->getConfiguration([], $container), $configs);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $configurator = new CrudsEntitiesConfigurator($container);
21 21
         $container->addObjectResource($configurator);
22 22
         foreach ($config['entities'] as $name => $entityConfig) {
23
-            $entityConfig['prefix'] = $entityConfig['prefix'] ?: '/' . $name;
23
+            $entityConfig['prefix'] = $entityConfig['prefix'] ?: '/'.$name;
24 24
             $configurator->processEntityConfiguration($name, $entityConfig);
25 25
         }
26 26
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 continue;
30 30
             }
31 31
 
32
-            $container->removeDefinition('cruds.api.listener.' . $listener);
32
+            $container->removeDefinition('cruds.api.listener.'.$listener);
33 33
         }
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             ->beforeNormalization()
92 92
             ->ifArray()
93 93
             ->then(
94
-                function (array $v) {
94
+                function(array $v) {
95 95
                     if (array_keys($v) !== range(0, count($v) - 1)) {
96 96
                         return $v;
97 97
                     }
Please login to merge, or discard this patch.
Tests/Unit/Controller/CountControllerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use ScayTrase\Api\Cruds\PublicPropertyMapper;
11 11
 use ScayTrase\Api\Cruds\ReferenceProviderInterface;
12 12
 use ScayTrase\Api\Cruds\Tests\Fixtures\AbcClass;
13
-use ScayTrase\Api\Cruds\Tests\Unit\AbstractControllerTest;
14 13
 use Symfony\Component\EventDispatcher\Event;
15 14
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16 15
 
Please login to merge, or discard this patch.
DependencyInjection/Compiler/SymfonyFormsCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             return;
17 17
         }
18 18
 
19
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config'));
19
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config'));
20 20
         $loader->load('forms.yml');
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
Tests/KernelProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
     public static function getClass()
18 18
     {
19 19
         if (false === ($alias = getenv(self::ENV_VAR))) {
20
-            throw new \LogicException('Cannot obtain kernel alias from "' . self::ENV_VAR . '"" ENV variable');
20
+            throw new \LogicException('Cannot obtain kernel alias from "'.self::ENV_VAR.'"" ENV variable');
21 21
         }
22 22
 
23 23
         if (!array_key_exists($alias, self::$map)) {
24
-            throw new \LogicException('Invalid kernel alias: ' . $alias);
24
+            throw new \LogicException('Invalid kernel alias: '.$alias);
25 25
         }
26 26
 
27 27
         return self::$map[$alias];
Please login to merge, or discard this patch.
dump_reference.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 ScayTrase\Api\Cruds\DependencyInjection\Configuration;
4 4
 use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper;
5 5
 
6
-require_once __DIR__ . '/bootstrap.php';
6
+require_once __DIR__.'/bootstrap.php';
7 7
 
8 8
 $config = new Configuration();
9 9
 $dumper = new YamlReferenceDumper();
Please login to merge, or discard this patch.
Exception/EntityProcessingException.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
         }
35 35
 
36 36
         return new static(
37
-            'Invalid data submitted for entity: ' . PHP_EOL .
37
+            'Invalid data submitted for entity: '.PHP_EOL.
38 38
             Yaml::dump($errors)
39 39
         );
40 40
     }
Please login to merge, or discard this patch.
Tests/Unit/Processor/FormProcessorTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
7 7
 use ScayTrase\Api\Cruds\Exception\EntityProcessingException;
8 8
 use ScayTrase\Api\Cruds\PublicPropertyMapper;
9 9
 use ScayTrase\Api\Cruds\Tests\WebTestCase;
10
-use ScayTrase\Api\Cruds\Tests\Fixtures\SymfonySerializer\SymfonyTestKernel;
11
-use ScayTrase\Api\Cruds\Tests\StaticKernelTestTrait;
12 10
 use Symfony\Component\Form\AbstractType;
13 11
 use Symfony\Component\Form\Extension\Core\Type\CollectionType;
14 12
 use Symfony\Component\Form\Extension\Core\Type\IntegerType;
Please login to merge, or discard this patch.