Completed
Push — unused-compiler-pass ( 93ebf5 )
by Kamil
31:23 queued 11:08
created
Bundle/AttributeBundle/DependencyInjection/SyliusAttributeExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29 29
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
30
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
 
32 32
         $loader->load('services.xml');
33 33
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($resources as $subjectName => $subjectConfig) {
57 57
             foreach ($subjectConfig as $resourceName => $resourceConfig) {
58 58
                 if (is_array($resourceConfig)) {
59
-                    $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig;
59
+                    $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig;
60 60
                 }
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/DependencyInjection/SyliusGridExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/DependencyInjection/SyliusUserExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function load(array $config, ContainerBuilder $container)
45 45
     {
46 46
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
47
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
47
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
48 48
 
49 49
         $loader->load(sprintf('services/integrations/%s.xml', $config['driver']));
50 50
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         foreach ($resources as $variableName => $variableConfig) {
70 70
             foreach ($variableConfig as $resourceName => $resourceConfig) {
71 71
                 if (is_array($resourceConfig)) {
72
-                    $resolvedResources[$variableName.'_'.$resourceName] = $resourceConfig;
72
+                    $resolvedResources[$variableName . '_' . $resourceName] = $resourceConfig;
73 73
                 }
74 74
             }
75 75
         }
Please login to merge, or discard this patch.
Bundle/FixturesBundle/DependencyInjection/SyliusFixturesExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return;
91 91
         }
92 92
 
93
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
93
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
94 94
         $loader->load('resource_integration.xml');
95 95
 
96 96
         $container->prependExtensionConfig('sylius_resource', [
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/TemplatingTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $client = $this->getClient();
28 28
 
29
-        $crawler = $client->request('GET', '/template/'.$templateName);
29
+        $crawler = $client->request('GET', '/template/' . $templateName);
30 30
         $this->assertEquals($contents, trim($crawler->text()));
31 31
     }
32 32
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $client = $this->getClient();
56 56
 
57
-        $crawler = $client->request('GET', '/template/'.$templateName);
57
+        $crawler = $client->request('GET', '/template/' . $templateName);
58 58
         $this->assertEquals($contents, trim($crawler->text()));
59 59
     }
60 60
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $client = $this->getClient();
84 84
 
85
-        $crawler = $client->request('GET', '/template/'.$templateName);
85
+        $crawler = $client->request('GET', '/template/' . $templateName);
86 86
         $this->assertEquals($contents, trim($crawler->text()));
87 87
     }
88 88
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $client = $this->getClient();
110 110
 
111
-        $crawler = $client->request('GET', '/template/'.$templateName);
111
+        $crawler = $client->request('GET', '/template/' . $templateName);
112 112
         $this->assertEquals($contents, trim($crawler->text()));
113 113
     }
114 114
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/DependencyInjection/SyliusThemeExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return;
91 91
         }
92 92
 
93
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
93
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
94 94
         $loader->load('resource_integration.xml');
95 95
 
96 96
         $container->prependExtensionConfig('sylius_resource', [
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Tests/Command/DebugResourceCommandTest.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 | sylius.two |
57 57
 +------------+
58 58
 
59
-EOT
59
+eot
60 60
         , $display);
61 61
     }
62 62
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 | whatever.something.elephants | camels          |
83 83
 +------------------------------+-----------------+
84 84
 
85
-EOT
85
+eot
86 86
         , $display);
87 87
     }
88 88
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/spec/Routing/ResourceLoaderSpec.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
             ],
970 970
         ];
971 971
         $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST'])
972
-                     ->willReturn($createRoute);
972
+                        ->willReturn($createRoute);
973 973
         $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled();
974 974
 
975 975
         $updateDefaults = [
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
             ],
980 980
         ];
981 981
         $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH'])
982
-                     ->willReturn($updateRoute);
982
+                        ->willReturn($updateRoute);
983 983
         $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled();
984 984
 
985 985
         $deleteDefaults = [
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
             ],
990 990
         ];
991 991
         $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE'])
992
-                     ->willReturn($deleteRoute);
992
+                        ->willReturn($deleteRoute);
993 993
         $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled();
994 994
 
995 995
         $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 <<<EOT
50 50
 foo: bar
51 51
 only: string
52
-EOT;
52
+eot;
53 53
 
54 54
         $this
55 55
             ->shouldThrow(InvalidConfigurationException::class)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $configuration =
64 64
 <<<EOT
65 65
 alias: sylius.foo
66
-EOT;
66
+eot;
67 67
 
68 68
         $this
69 69
             ->shouldThrow(\InvalidArgumentException::class)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $configuration =
93 93
 <<<EOT
94 94
 alias: sylius.product
95
-EOT;
95
+eot;
96 96
 
97 97
         $showDefaults = [
98 98
             '_controller' => 'sylius.controller.product:showAction',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $configuration =
165 165
 <<<EOT
166 166
 alias: sylius.product_option
167
-EOT;
167
+eot;
168 168
 
169 169
         $showDefaults = [
170 170
             '_controller' => 'sylius.controller.product_option:showAction',
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 <<<EOT
238 238
 alias: sylius.product
239 239
 path: super-duper-products
240
-EOT;
240
+eot;
241 241
 
242 242
         $showDefaults = [
243 243
             '_controller' => 'sylius.controller.product:showAction',
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 <<<EOT
311 311
 alias: sylius.product
312 312
 form: sylius_product_custom
313
-EOT;
313
+eot;
314 314
 
315 315
         $showDefaults = [
316 316
             '_controller' => 'sylius.controller.product:showAction',
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 <<<EOT
386 386
 alias: sylius.product
387 387
 section: admin
388
-EOT;
388
+eot;
389 389
 
390 390
         $showDefaults = [
391 391
             '_controller' => 'sylius.controller.product:showAction',
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 <<<EOT
464 464
 alias: sylius.product
465 465
 templates: SyliusAdminBundle:Product
466
-EOT;
466
+eot;
467 467
 
468 468
         $showDefaults = [
469 469
             '_controller' => 'sylius.controller.product:showAction',
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 <<<EOT
539 539
 alias: sylius.product
540 540
 except: ['show', 'delete']
541
-EOT;
541
+eot;
542 542
 
543 543
         $indexDefaults = [
544 544
             '_controller' => 'sylius.controller.product:indexAction',
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 <<<EOT
591 591
 alias: sylius.product
592 592
 only: ['create', 'index']
593
-EOT;
593
+eot;
594 594
 
595 595
         $indexDefaults = [
596 596
             '_controller' => 'sylius.controller.product:indexAction',
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 alias: sylius.product
621 621
 except: ['show', 'delete']
622 622
 only: ['create']
623
-EOT;
623
+eot;
624 624
 
625 625
         $this
626 626
             ->shouldThrow(\InvalidArgumentException::class)
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 <<<EOT
651 651
 alias: sylius.product
652 652
 redirect: update
653
-EOT;
653
+eot;
654 654
 
655 655
         $showDefaults = [
656 656
             '_controller' => 'sylius.controller.product:showAction',
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
         $configuration =
725 725
 <<<EOT
726 726
 alias: sylius.product
727
-EOT;
727
+eot;
728 728
 
729 729
         $showDefaults = [
730 730
             '_controller' => 'sylius.controller.product:showAction',
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 alias: sylius.product
800 800
 only: ['create', 'index']
801 801
 grid: sylius_admin_product
802
-EOT;
802
+eot;
803 803
 
804 804
         $indexDefaults = [
805 805
             '_controller' => 'sylius.controller.product:indexAction',
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
         bar: foo
853 853
     update:
854 854
         abc: xyz
855
-EOT;
855
+eot;
856 856
 
857 857
         $showDefaults = [
858 858
             '_controller' => 'sylius.controller.product:showAction',
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
 <<<EOT
943 943
 alias: sylius.product
944 944
 permission: true
945
-EOT;
945
+eot;
946 946
 
947 947
         $showDefaults = [
948 948
             '_controller' => 'sylius.controller.product:showAction',
Please login to merge, or discard this patch.
Bundle/ResourceBundle/Doctrine/ODM/MongoDB/TranslatableRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     protected function getPropertyName($name)
97 97
     {
98 98
         if (in_array($name, $this->translatableFields, true)) {
99
-            return 'translations.'.$this->localeProvider->getDefaultLocaleCode().'.'.$name;
99
+            return 'translations.' . $this->localeProvider->getDefaultLocaleCode() . '.' . $name;
100 100
         }
101 101
 
102 102
         return $name;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB;
13 13
 
14 14
 use Doctrine\MongoDB\Query\Builder as QueryBuilder;
15
-use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
16 15
 use Sylius\Component\Resource\Repository\TranslatableRepositoryInterface;
16
+use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
17 17
 
18 18
 /**
19 19
  * Doctrine ORM driver translatable entity repository.
Please login to merge, or discard this patch.