Completed
Push — master ( ddbf46...07af17 )
by Pavel
06:00
created
Adaptors/Symfony/FormProcessor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * FormProcessor constructor.
21 21
      *
22 22
      * @param FormFactoryInterface     $factory
23
-     * @param string|FormTypeInterface $form
23
+     * @param \Symfony\Component\Form\FormInterface $form
24 24
      * @param array                    $options
25 25
      */
26 26
     public function __construct(FormFactoryInterface $factory, $form, array $options = [])
Please login to merge, or discard this patch.
Tests/AbstractCrudsWebTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             implode(
37 37
                 "\n\n",
38 38
                 array_map(
39
-                    function ($l) {
39
+                    function($l) {
40 40
                         return implode("\n\n", $l);
41 41
                     },
42 42
                     $errors
Please login to merge, or discard this patch.
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.
Adaptors/JmsSerializer/JmsValidatorSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             throw new EntityProcessingException(
41 41
                 'Data for the entity is not valid',
42 42
                 array_map(
43
-                    function (ConstraintViolationInterface $violation) {
43
+                    function(ConstraintViolationInterface $violation) {
44 44
                         return $violation->getMessage();
45 45
                     },
46 46
                     iterator_to_array($list)
Please login to merge, or discard this patch.
Adaptors/Symfony/MappedEntityFormFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     }
29 29
 
30 30
     /**
31
-     * @param $className
31
+     * @param string $className
32 32
      *
33 33
      * @return FormInterface
34 34
      *
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace ScayTrase\Api\Cruds\Adaptors\Symfony;
4 4
 
5 5
 use ScayTrase\Api\Cruds\Exception\EntityProcessingException;
6
-use ScayTrase\Api\Cruds\Exception\MapperException;
7 6
 use ScayTrase\Api\Cruds\PropertyMapperInterface;
8 7
 use Symfony\Component\Form\FormFactoryInterface;
9 8
 use Symfony\Component\Form\FormInterface;
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ->beforeNormalization()
66 66
             ->ifArray()
67 67
             ->then(
68
-                function (array $v) {
68
+                function(array $v) {
69 69
                     if (array_keys($v) !== range(0, count($v) - 1)) {
70 70
                         return $v;
71 71
                     }
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
             ->defaultNull()
110 110
             ->example('@my_entity.factory')
111 111
             ->info(
112
-                'Service ID implementing ' . PHP_EOL .
113
-                ObjectFactoryInterface::class . PHP_EOL .
114
-                'Defaults to ' . ReflectionConstructorFactory::class
112
+                'Service ID implementing '.PHP_EOL.
113
+                ObjectFactoryInterface::class.PHP_EOL.
114
+                'Defaults to '.ReflectionConstructorFactory::class
115 115
             );
116 116
 
117 117
         $create
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
             ->defaultNull()
121 121
             ->example('@my_entity.factory')
122 122
             ->info(
123
-                'Service ID implementing ' . PHP_EOL .
124
-                ObjectFactoryInterface::class . PHP_EOL .
125
-                'Defaults to ' . ReflectionConstructorFactory::class
123
+                'Service ID implementing '.PHP_EOL.
124
+                ObjectFactoryInterface::class.PHP_EOL.
125
+                'Defaults to '.ReflectionConstructorFactory::class
126 126
             );
127 127
 
128 128
         $this->configureActionNode($create, 'create');
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             ->beforeNormalization()
142 142
             ->ifString()
143 143
             ->then(
144
-                function ($v) {
144
+                function($v) {
145 145
                     return [$v];
146 146
                 }
147 147
             )
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
             ->defaultNull()
177 177
             ->example('@my_entity.factory')
178 178
             ->info(
179
-                'Service ID implementing ' . PHP_EOL .
180
-                ObjectFactoryInterface::class . PHP_EOL .
181
-                'Defaults to ' . ReflectionConstructorFactory::class
179
+                'Service ID implementing '.PHP_EOL.
180
+                ObjectFactoryInterface::class.PHP_EOL.
181
+                'Defaults to '.ReflectionConstructorFactory::class
182 182
             );
183 183
 
184 184
         $this->configureActionNode($update, 'update');
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
         $parent
200 200
             ->children()
201 201
             ->scalarNode('path')
202
-            ->example('/' . $action)
202
+            ->example('/'.$action)
203 203
             ->info('Action path (prefixed)')
204
-            ->defaultValue('/' . $action);
204
+            ->defaultValue('/'.$action);
205 205
     }
206 206
 }
Please login to merge, or discard this patch.