Completed
Push — master ( 1b3a7e...f4d44d )
by Pavel
04:33
created
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.
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/CrudsEntitiesConfigurator.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
             $actionConfig['class']      = $class;
60 60
             $actionConfig['mount']      = $mount;
61 61
             $actionConfig['repository'] = $repositoryDefinition;
62
-            $actionConfig['path']       = $prefix . $actionConfig['path'];
62
+            $actionConfig['path']       = $prefix.$actionConfig['path'];
63 63
             $actionConfig['manager']    = $manager;
64
-            $function                   = new \ReflectionMethod($this, 'register' . ucfirst($action) . 'Action');
64
+            $function                   = new \ReflectionMethod($this, 'register'.ucfirst($action).'Action');
65 65
             $args                       = [];
66 66
 
67 67
             foreach ($function->getParameters() as $parameter) {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $controllerId = $this->generateControllerId($name, $actionName);
106 106
         $this->container->setDefinition($controllerId, $definition);
107 107
 
108
-        $action = $controllerId . ':' . CreateController::ACTION;
108
+        $action = $controllerId.':'.CreateController::ACTION;
109 109
         $this->registerRoute(
110 110
             $mount,
111 111
             $name,
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $controllerId = $this->generateControllerId($name, $actionName);
132 132
         $this->container->setDefinition($controllerId, $definition);
133 133
 
134
-        $action = $controllerId . ':' . ReadController::ACTION;
134
+        $action = $controllerId.':'.ReadController::ACTION;
135 135
         $this->registerRoute(
136 136
             $mount,
137 137
             $name,
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $controllerId = $this->generateControllerId($name, $actionName);
166 166
         $this->container->setDefinition($controllerId, $definition);
167 167
 
168
-        $action = $controllerId . ':' . UpdateController::ACTION;
168
+        $action = $controllerId.':'.UpdateController::ACTION;
169 169
         $this->registerRoute(
170 170
             $mount,
171 171
             $name,
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $controllerId = $controllerId = $this->generateControllerId($name, $actionName);
193 193
         $this->container->setDefinition($controllerId, $definition);
194 194
 
195
-        $action = $controllerId . ':' . DeleteController::ACTION;
195
+        $action = $controllerId.':'.DeleteController::ACTION;
196 196
         $this->registerRoute(
197 197
             $mount,
198 198
             $name,
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         $controllerId = $this->generateControllerId($name, $actionName);
233 233
         $this->container->setDefinition($controllerId, $definition);
234 234
 
235
-        $action = $controllerId . ':' . SearchController::ACTION;
235
+        $action = $controllerId.':'.SearchController::ACTION;
236 236
         $this->registerRoute(
237 237
             $mount,
238 238
             $name,
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
             'addRoute',
288 288
             [
289 289
                 $mount,
290
-                $this->normalize('cruds.routing.' . $name . '.' . $actionName),
290
+                $this->normalize('cruds.routing.'.$name.'.'.$actionName),
291 291
                 $path,
292 292
                 $action,
293 293
                 $methods,
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     private function generateControllerId($name, $actionName)
312 312
     {
313
-        return $this->normalize('cruds.generated_controller.' . $name . '.' . $actionName);
313
+        return $this->normalize('cruds.generated_controller.'.$name.'.'.$actionName);
314 314
     }
315 315
 
316 316
     /**
Please login to merge, or discard this patch.