@@ -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 | } |