Passed
Push — release/3.x ( b5378b...d49369 )
by
unknown
10:01
created
src/Zicht/Bundle/PageBundle/Test/Integration/ContentItemMatrixTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
             ->method('getContentItems')
53 53
             ->will(
54 54
                 $this->returnCallback(
55
-                    function () use (&$recorded, $pageUnderTest, $region) {
55
+                    function() use (&$recorded, $pageUnderTest, $region) {
56 56
                         $args = func_get_args();
57
-                        $recorded[]= $args;
57
+                        $recorded[] = $args;
58 58
                         $ret = call_user_func_array(array($pageUnderTest, 'getContentItems'), $args);
59 59
                         return $ret;
60 60
                     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ->method('getTemplateName')
66 66
             ->will(
67 67
                 $this->returnCallback(
68
-                    function () use ($pageUnderTest) {
68
+                    function() use ($pageUnderTest) {
69 69
                         return $pageUnderTest->getTemplateName();
70 70
                     }
71 71
                 )
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $called = array();
79 79
         foreach ($recorded as $calls) {
80
-            $called[]= $calls[0];
80
+            $called[] = $calls[0];
81 81
         }
82 82
         $this->assertContains($region, $called);
83 83
     }
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
 
101 101
             /** @var ContentItemMatrix $matrix */
102 102
             if (!$matrix) {
103
-                $ret[]= array($name, $pageClassName);
103
+                $ret[] = array($name, $pageClassName);
104 104
                 continue;
105 105
             }
106 106
 
107 107
             foreach ($matrix->getTypes() as $contentItemClassName) {
108 108
                 foreach ($matrix->getRegions($contentItemClassName) as $region) {
109
-                    $ret[]= array($name, $pageClassName, $region, $contentItemClassName);
109
+                    $ret[] = array($name, $pageClassName, $region, $contentItemClassName);
110 110
                 }
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/ZichtPageBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         if (null !== $idx) {
39 39
             array_splice($beforeOptimizationPasses, $idx, 0, array($generatorPass));
40 40
         } else {
41
-            $beforeOptimizationPasses[]= $generatorPass;
41
+            $beforeOptimizationPasses[] = $generatorPass;
42 42
         }
43 43
         $container->getCompilerPassConfig()->setBeforeOptimizationPasses($beforeOptimizationPasses);
44 44
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Command/CheckContentItemsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                                     implode(
90 90
                                         '", "',
91 91
                                         array_map(
92
-                                            function ($name) use ($matrix) {
92
+                                            function($name) use ($matrix) {
93 93
                                                 return $this->getShortName($name, $matrix->getNamespacePrefix());
94 94
                                             },
95 95
                                             $matrix->getTypes($contentitem->getRegion())
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Manager/PageManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@
 block discarded – undo
81 81
                 return $this->getBundleName($parentClass);
82 82
             }
83 83
 
84
-            throw new \RuntimeException("Could not determine bundle name for " . $className);
84
+            throw new \RuntimeException("Could not determine bundle name for ".$className);
85 85
         }
86
-        $bundle = $vendor . $bundleName;
86
+        $bundle = $vendor.$bundleName;
87 87
         return $bundle;
88 88
     }
89 89
 
Please login to merge, or discard this patch.
Bundle/PageBundle/Validator/Constraints/ContentItemMatrixValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
                 if (!in_array($contentItem->getRegion(), $matrix->getRegions($type))) {
44 44
                     $this->context->addViolationAt(
45
-                        'contentItems[' . $i . ']',
45
+                        'contentItems['.$i.']',
46 46
                         $this->translator->trans(
47 47
                             "content_item.invalid.region.type.combination",
48 48
                             array(
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Command/ListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $baseUrl = rtrim($input->getOption('base-url'), '/');
36 36
 
37 37
         foreach ($pages as $page) {
38
-            $output->writeln($baseUrl . $urlProvider->url($page));
38
+            $output->writeln($baseUrl.$urlProvider->url($page));
39 39
         }
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Command/AliasCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->setDescription("Creates aliases for all pages")
27 27
             ->setName('zicht:page:alias')
28 28
             ->addArgument('entity', InputArgument::OPTIONAL, 'Only do a specific entity')
29
-            ->addOption('where', 'w', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Add a WHERE query')
29
+            ->addOption('where', 'w', InputOption::VALUE_REQUIRED|InputOption::VALUE_IS_ARRAY, 'Add a WHERE query')
30 30
             ->addOption('move', '', InputOption::VALUE_NONE, 'Force regeneration (use MOVE strategy for new aliases)');
31 31
     }
32 32
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             }
74 74
             $result = $aliaser->createAlias($page);
75 75
             if ($output->getVerbosity() > OutputInterface::VERBOSITY_VERBOSE) {
76
-                $output->writeln(" -> " . ($result ? '[created]' : '[already aliased]'));
76
+                $output->writeln(" -> ".($result ? '[created]' : '[already aliased]'));
77 77
             }
78 78
         }
79 79
         $progress->finish();
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/DependencyInjection/ZichtPageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
         if ($container->hasParameter('twig.form.resources')) {
73 73
             $formResources = $container->getParameter('twig.form.resources');
74
-            $formResources[]= 'ZichtPageBundle::form_theme.html.twig';
74
+            $formResources[] = 'ZichtPageBundle::form_theme.html.twig';
75 75
             $container->setParameter('twig.form.resources', $formResources);
76 76
         }
77 77
     }
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Admin/PageAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,14 +176,14 @@
 block discarded – undo
176 176
                             'edit'   => 'inline',
177 177
                             'inline' => 'table',
178 178
                             'sortable' => 'weight',
179
-                            'admin_code' => $this->code . '|' . $this->contentItemAdminCode
179
+                            'admin_code' => $this->code.'|'.$this->contentItemAdminCode
180 180
                         )
181 181
                     )
182 182
                     ->end()->end();
183 183
 
184 184
                 $formMapper->getFormBuilder()->addEventListener(
185 185
                     FormEvents::SUBMIT,
186
-                    function (FormEvent $e) {
186
+                    function(FormEvent $e) {
187 187
                         /** @var PageInterface $pageData */
188 188
                         $pageData = $e->getData();
189 189
 
Please login to merge, or discard this patch.