Completed
Push — master ( cec9f3...d27170 )
by Kamil
22:53
created
src/Sylius/Component/Grid/spec/View/GridViewFactorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function getMatchers()
58 58
     {
59 59
         return [
60
-            'beSameGridViewAs' => function ($subject, $key) {
60
+            'beSameGridViewAs' => function($subject, $key) {
61 61
                 return serialize($subject) === serialize($key);
62 62
             },
63 63
         ];
Please login to merge, or discard this patch.
Sylius/Component/Grid/spec/Definition/ArrayToDefinitionConverterSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     public function getMatchers()
105 105
     {
106 106
         return [
107
-            'beSameGridAs' => function ($subject, $key) {
107
+            'beSameGridAs' => function($subject, $key) {
108 108
                 return serialize($subject) === serialize($key);
109 109
             },
110 110
         ];
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFieldTypesPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_field');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_field') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid fields needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterDriversPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->findDefinition('sylius.registry.grid_driver');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) {
35
-            if (!isset($attributes[0]['alias']))  {
35
+            if (!isset($attributes[0]['alias'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFiltersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Doctrine/DBAL/DataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     public function getData(Parameters $parameters)
71 71
     {
72
-        $countQueryBuilderModifier = function ($queryBuilder) {
72
+        $countQueryBuilderModifier = function($queryBuilder) {
73 73
             $queryBuilder
74 74
                 ->select('COUNT(DISTINCT o.id) AS total_results')
75 75
                 ->setMaxResults(1)
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/spec/Grid/View/ResourceGridViewFactorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function getMatchers()
68 68
     {
69 69
         return [
70
-            'beSameResourceGridViewAs' => function ($subject, $key) {
70
+            'beSameResourceGridViewAs' => function($subject, $key) {
71 71
                 if (!$subject instanceof ResourceGridView || !$key instanceof ResourceGridView) {
72 72
                     return false;
73 73
                 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Routing/ResourceLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,22 +82,22 @@
 block discarded – undo
82 82
         }
83 83
 
84 84
         if (in_array('create', $routesToGenerate)) {
85
-            $createRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath : $rootPath . 'new', 'create', $isApi ? ['POST'] : ['GET', 'POST'], $isApi);
85
+            $createRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath : $rootPath.'new', 'create', $isApi ? ['POST'] : ['GET', 'POST'], $isApi);
86 86
             $routes->add($this->getRouteName($metadata, $configuration, 'create'), $createRoute);
87 87
         }
88 88
 
89 89
         if (in_array('update', $routesToGenerate)) {
90
-            $updateRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath . '{id}' : $rootPath . '{id}/edit', 'update', $isApi ? ['PUT', 'PATCH'] : ['GET', 'PUT', 'PATCH'], $isApi);
90
+            $updateRoute = $this->createRoute($metadata, $configuration, $isApi ? $rootPath.'{id}' : $rootPath.'{id}/edit', 'update', $isApi ? ['PUT', 'PATCH'] : ['GET', 'PUT', 'PATCH'], $isApi);
91 91
             $routes->add($this->getRouteName($metadata, $configuration, 'update'), $updateRoute);
92 92
         }
93 93
 
94 94
         if (in_array('show', $routesToGenerate)) {
95
-            $showRoute = $this->createRoute($metadata, $configuration, $rootPath . '{id}', 'show', ['GET'], $isApi);
95
+            $showRoute = $this->createRoute($metadata, $configuration, $rootPath.'{id}', 'show', ['GET'], $isApi);
96 96
             $routes->add($this->getRouteName($metadata, $configuration, 'show'), $showRoute);
97 97
         }
98 98
 
99 99
         if (in_array('delete', $routesToGenerate)) {
100
-            $deleteRoute = $this->createRoute($metadata, $configuration, $rootPath . '{id}', 'delete', ['DELETE'], $isApi);
100
+            $deleteRoute = $this->createRoute($metadata, $configuration, $rootPath.'{id}', 'delete', ['DELETE'], $isApi);
101 101
             $routes->add($this->getRouteName($metadata, $configuration, 'delete'), $deleteRoute);
102 102
         }
103 103
 
Please login to merge, or discard this patch.