Test Failed
Branch master (bc7e03)
by Muhammed
30:14 queued 24:20
created
src/Zicht/Bundle/PageBundle/Type/ContentItemRegionType.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
 
105 105
         foreach ($fullmatrix as $region => $classNames) {
106 106
             foreach ($classNames as $className) {
107
-                $placeholder = 'content_item.type.' . strtolower(str_replace(' ', '_', Str::humanize(Str::classname($className))));
107
+                $placeholder = 'content_item.type.'.strtolower(str_replace(' ', '_', Str::humanize(Str::classname($className))));
108 108
                 $matrix[$region][$className] = $this->translator->trans($placeholder, array(), 'admin', 'nl');
109 109
             }
110 110
         }
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
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                                 'edit'   => 'inline',
203 203
                                 'inline' => 'table',
204 204
                                 'sortable' => 'weight',
205
-                                'admin_code' => $this->code . '|' . $this->contentItemAdminCode
205
+                                'admin_code' => $this->code.'|'.$this->contentItemAdminCode
206 206
                             )
207 207
                         )
208 208
                     ->end()->end() //needed to do twice, since a tab is a group surrounding a 'with'
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
                 $formMapper->getFormBuilder()->addEventListener(
212 212
                     FormEvents::SUBMIT,
213
-                    function (FormEvent $e) {
213
+                    function(FormEvent $e) {
214 214
                         /** @var PageInterface $pageData */
215 215
                         $pageData = $e->getData();
216 216
 
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.
DependencyInjection/CompilerPass/GenerateAdminServicesCompilerPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
             return;
28 28
         }
29 29
 
30
-        $naming = function ($fqEntityClassName) {
30
+        $naming = function($fqEntityClassName) {
31 31
             return
32 32
                 str_replace(
33 33
                     '\\Entity\\',
34 34
                     '\\Admin\\',
35 35
                     $fqEntityClassName
36
-                ) . 'Admin';
36
+                ).'Admin';
37 37
         };
38 38
 
39 39
         $config = $container->getParameter('zicht_page.config');
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
                     $tags['sonata.admin'][0]['label'] = Str::rstrip(Str::classname($entityClassName), 'Page');
72 72
                     $adminService->setTags($tags);
73 73
 
74
-                    $id = $baseIds[$type]. '.' . Str::uscore(Str::classname($entityClassName));
74
+                    $id = $baseIds[$type].'.'.Str::uscore(Str::classname($entityClassName));
75 75
 
76 76
                     $adminService->replaceArgument(0, $id);
77 77
                     $adminService->replaceArgument(1, $entityClassName);
78 78
 
79 79
                     $container->setDefinition($id, $adminService);
80 80
 
81
-                    $serviceDefs[$type][]= $id;
81
+                    $serviceDefs[$type][] = $id;
82 82
                 } else {
83 83
                     throw new \Exception(sprintf('The PageBundle was unable to create a service definition for %s because the associated class %s was not found', $entityClassName, $adminClassName));
84 84
                 }
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.