Completed
Push — master ( a682ba...4851b3 )
by Paweł
40:50
created
src/SWP/Bundle/ContentBundle/Factory/AbstractArticleFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher Content Bundle.
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected function populateLead(PackageInterface $package)
82 82
     {
83
-        return trim($package->getDescription().implode('', array_map(function (ItemInterface $item) {
83
+        return trim($package->getDescription().implode('', array_map(function(ItemInterface $item) {
84 84
             $this->ensureTypeIsAllowed($item->getType());
85 85
 
86 86
             return ' '.$item->getDescription();
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function populateBody(PackageInterface $package)
96 96
     {
97
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
97
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
98 98
             $this->ensureTypeIsAllowed($item->getType());
99 99
 
100 100
             return $item->getBody();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Doctrine/ODM/PHPCR/ArticleMedia.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -52,6 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     /**
54 54
      * {@inheritdoc}
55
+     * @param \Doctrine\ODM\PHPCR\Document\Generic $parent
55 56
      */
56 57
     public function setParent($parent)
57 58
     {
@@ -88,6 +89,7 @@  discard block
 block discarded – undo
88 89
 
89 90
     /**
90 91
      * {@inheritdoc}
92
+     * @param ImageRendition $rendition
91 93
      */
92 94
     public function addRendition($rendition)
93 95
     {
Please login to merge, or discard this patch.
SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadCollectionRouteArticles.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@  discard block
 block discarded – undo
46 46
         $manager->flush();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $env
51
+     */
49 52
     public function loadRoutes($env, ObjectManager $manager)
50 53
     {
51 54
         $routes = [
@@ -95,6 +98,10 @@  discard block
 block discarded – undo
95 98
         $manager->flush();
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $env
103
+     * @param ObjectManager $manager
104
+     */
98 105
     public function setRoutesContent($env, $manager)
99 106
     {
100 107
         $routes = [
@@ -118,6 +125,10 @@  discard block
 block discarded – undo
118 125
         }
119 126
     }
120 127
 
128
+    /**
129
+     * @param string $env
130
+     * @param ObjectManager $manager
131
+     */
121 132
     public function loadArticles($env, $manager)
122 133
     {
123 134
         $articles = [
Please login to merge, or discard this patch.
src/SWP/Bundle/MenuBundle/Form/Type/MenuType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher Menu Bundle.
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             ->add('parent', MenuItemSelectorType::class)
36 36
             ->add('route', RouteSelectorType::class);
37 37
 
38
-        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
38
+        $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
39 39
             $menuItem = $event->getData();
40 40
             $form = $event->getForm();
41 41
 
Please login to merge, or discard this patch.