@@ -81,7 +81,7 @@ |
||
| 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) |
@@ -153,7 +153,7 @@ discard block |
||
| 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 |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - * @return Tag[]|ArrayCollection |
|
| 175 | + * @return Category[] |
|
| 176 | 176 | */ |
| 177 | 177 | public function getChildren() |
| 178 | 178 | { |
@@ -18,7 +18,7 @@ |
||
| 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) |
@@ -35,8 +35,7 @@ |
||
| 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') |
@@ -18,7 +18,7 @@ |
||
| 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']}"), |
@@ -115,7 +115,7 @@ |
||
| 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( |
@@ -51,7 +51,7 @@ |
||
| 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 | } |