Test Failed
Pull Request — release/2.5.x (#11)
by Muhammed
03:24
created
src/Zicht/Bundle/PageBundle/AdminMenu/EventPropagationBuilder.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
                     $admin->generateObjectUrl('edit', $e->getPage()),
68 68
                     sprintf(
69 69
                         'Beheer pagina "%s"',
70
-                        strlen($title) > 20 ? substr($title, 0, 20) . '...' : $title
70
+                        strlen($title) > 20 ? substr($title, 0, 20).'...' : $title
71 71
                     )
72 72
                 )
73 73
             );
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Type/DiscriminatorMapType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
         /** @var $em \Doctrine\ORM\EntityManager */
44 44
         $em = $this->doctrine->getManager();
45 45
 
46
-        $choiceCallback = function (Options $options) use ($em) {
46
+        $choiceCallback = function(Options $options) use ($em) {
47 47
             $ret = array();
48 48
             foreach ($em->getClassMetadata($options['entity'])->discriminatorMap as $className) {
49
-                $placeholder = 'content_item.type.' . strtolower(str_replace(' ', '_', Str::humanize(Str::classname($className))));
49
+                $placeholder = 'content_item.type.'.strtolower(str_replace(' ', '_', Str::humanize(Str::classname($className))));
50 50
                 $ret[$className] = $placeholder;
51 51
             }
52 52
             if (is_callable($options['choice_filter'])) {
Please login to merge, or discard this patch.
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.
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.
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.