Passed
Push — release/3.x ( aef957...f49df5 )
by Erik
03:28
created
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.
src/Zicht/Bundle/PageBundle/Url/PageUrlProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             ->andWhere('p.title LIKE :pattern')
81 81
             ->setMaxResults(30)
82 82
             ->getQuery()
83
-            ->execute(array('pattern' => '%' . $pattern . '%'));
83
+            ->execute(array('pattern' => '%'.$pattern.'%'));
84 84
 
85 85
         $suggestions = array();
86 86
         foreach ($pages as $page) {
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Security/Voter/ScheduledContentVoter.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
         $from = $object->isScheduledFrom();
33 33
         $till = $object->isScheduledTill();
34 34
 
35
-        if (!$object->isPublic() || false === self::notEmpty($from, $till))  {
35
+        if (!$object->isPublic() || false === self::notEmpty($from, $till)) {
36 36
             return $vote;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Model/ContentItemMatrix.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@
 block discarded – undo
102 102
     {
103 103
         if (array_key_exists($region, $this->matrix)) {
104 104
             array_walk(
105
-                $this->matrix[ $region ],
106
-                function ($value, $idx, $matrix) use ($type, $region) {
105
+                $this->matrix[$region],
106
+                function($value, $idx, $matrix) use ($type, $region) {
107 107
                     $class = explode('\\', $value);
108 108
                     $className = array_pop($class);
109 109
                     if ($className === $type) {
110
-                        unset($matrix[ $region ][ $idx ]);
110
+                        unset($matrix[$region][$idx]);
111 111
                     }
112 112
                 },
113 113
                 $this->matrix
Please login to merge, or discard this patch.
src/Zicht/Bundle/PageBundle/Entity/ContentItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $shortType = Str::infix(lcfirst(Str::classname(Str::rstrip($this->getType(), 'ContentItem'))), $infix);
25 25
 
26 26
         if ($template = $this->getTemplateName()) {
27
-            $shortType .= $infix . $template;
27
+            $shortType .= $infix.$template;
28 28
         }
29 29
 
30 30
         return $shortType;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         foreach ($reflectionFrom->getProperties() as $property) {
46 46
             $property->setAccessible(true);
47
-            $method = 'set' . ucfirst($property->getName());
47
+            $method = 'set'.ucfirst($property->getName());
48 48
             if ($reflectionTo->hasMethod($method)) {
49 49
                 $to->$method($property->getValue($from));
50 50
             }
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($className)));
49
+                $placeholder = 'content_item.type.'.strtolower(str_replace(' ', '_', Str::humanize($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/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', $event->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/ContentItemTypeType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         if ($options['container']) {
62 62
             $page = $options['container'];
63
-            $choiceFilter = function ($choices) use ($page) {
63
+            $choiceFilter = function($choices) use ($page) {
64 64
                 $ret = array();
65 65
                 if ($page instanceof ContentItemContainer && null !== $page->getContentItemMatrix()) {
66 66
                     $types = $page->getContentItemMatrix()->getTypes();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 }
121 121
                 if ($isPersistedEntity && $typeAdmin = $this->sonata->getAdminByClass(get_class($subject))) {
122 122
                     $view->vars['type'] = Str::humanize(Str::classname($subject->getConvertToType()));
123
-                    $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode() . '|' . $typeAdmin->getCode());
123
+                    $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode().'|'.$typeAdmin->getCode());
124 124
                     $childAdmin->setRequest($genericAdmin->getRequest());
125 125
 
126 126
                     if ($subject && $subject->getPage() && $subject->getPage()->getId()) {
Please login to merge, or discard this patch.