Completed
Push — master ( 9e29b7...c3d8ab )
by Yaroslav
19:31
created
src/Entity/ArticleRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-     * @param null $categorySlug
84
+     * @param string $categorySlug
85 85
      * @return Query
86 86
      */
87 87
     public function findPublishedByCategorySlugLimitedQuery($categorySlug = null)
Please login to merge, or discard this patch.
src/Entity/Category.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-     * @return mixed
156
+     * @return Category
157 157
      */
158 158
     public function getParent()
159 159
     {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     }
173 173
 
174 174
     /**
175
-     * @return Tag[]|ArrayCollection
175
+     * @return Category[]
176 176
      */
177 177
     public function getChildren()
178 178
     {
Please login to merge, or discard this patch.
src/Entity/TranslationRepository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     private $listener;
19 19
 
20 20
     /**
21
-     * @param object $entity
21
+     * @param Base\AbstractPost $entity
22 22
      * @return array
23 23
      */
24 24
     public function findTranslations($entity)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
                 ->getConfiguration($this->_em, get_class($entity));
36 36
 
37 37
             $translationClass = isset($config['translationClass']) ?
38
-                $config['translationClass'] :
39
-                $translationMeta->rootEntityName;
38
+                $config['translationClass'] : $translationMeta->rootEntityName;
40 39
 
41 40
             $qb = $this->_em->createQueryBuilder();
42 41
             $qb->select('trans.content, trans.field, trans.locale')
Please login to merge, or discard this patch.
src/Controller/SidebarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
                 'decorate' => true,
19 19
                 'representationField' => 'slug',
20 20
                 'html' => true,
21
-                'nodeDecorator' => function ($node) use ($showNumber) {
21
+                'nodeDecorator' => function($node) use ($showNumber) {
22 22
                     // Silent missing IDE warning
23 23
                     return sprintf('<a href=' . '"%s">%s</a>' . ($showNumber ? ' (%d)' : ''),
24 24
                         $this->generateUrl("harentius_blog_category_{$node['id']}"),
Please login to merge, or discard this patch.
src/EventListener/SitemapListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         }
116 116
 
117 117
         // Categories
118
-        $addCategoriesRoutes = function ($categories) use ($event, &$addCategoriesRoutes) {
118
+        $addCategoriesRoutes = function($categories) use ($event, &$addCategoriesRoutes) {
119 119
             foreach ($categories as $category) {
120 120
                 $event->getGenerator()->addUrl(
121 121
                     new UrlConcrete(
Please login to merge, or discard this patch.
src/Sidebar/Tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             $minDiff = 1;
52 52
 
53 53
             foreach ($this->sidebarTagSizes as $tagPercent) {
54
-                if (($diff = abs($tag['weight'] / $maxWeight - $tagPercent / 100)) < $minDiff) {
54
+                if (($diff = abs($tag['weight']/$maxWeight - $tagPercent/100)) < $minDiff) {
55 55
                     $minDiff = $diff;
56 56
                     $percentage = $tagPercent;
57 57
                 }
Please login to merge, or discard this patch.