@@ -369,7 +369,7 @@ |
||
| 369 | 369 | /** |
| 370 | 370 | * Add widget. |
| 371 | 371 | * |
| 372 | - * @param Widget $widgetMap |
|
| 372 | + * @param WidgetMap $widgetMap |
|
| 373 | 373 | */ |
| 374 | 374 | public function addWidgetMap(WidgetMap $widgetMap) |
| 375 | 375 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param string $name |
| 65 | 65 | * |
| 66 | - * @return View |
|
| 66 | + * @return ArticleTranslation |
|
| 67 | 67 | */ |
| 68 | 68 | public function setName($name) |
| 69 | 69 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @param string $slug |
| 79 | 79 | * |
| 80 | - * @return View |
|
| 80 | + * @return ArticleTranslation |
|
| 81 | 81 | */ |
| 82 | 82 | public function setSlug($slug) |
| 83 | 83 | { |
@@ -109,9 +109,8 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * Set category. |
| 111 | 111 | * |
| 112 | - * @param string $category |
|
| 113 | 112 | * |
| 114 | - * @return Article |
|
| 113 | + * @return ArticleTranslation |
|
| 115 | 114 | */ |
| 116 | 115 | public function setDescription($description) |
| 117 | 116 | { |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | /** |
| 216 | 216 | * @param VirtualBusinessPage $page |
| 217 | 217 | * @param BusinessTemplate $businessTemplate |
| 218 | - * @param array $businessProperties |
|
| 218 | + * @param BusinessProperty[] $businessProperties |
|
| 219 | 219 | * @param EntityManager $em |
| 220 | 220 | * @param $entity |
| 221 | 221 | * |
@@ -179,6 +179,9 @@ |
||
| 179 | 179 | return PropertyAccess::createPropertyAccessor()->getValue($this->translate(), 'getUrl'); |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $name |
|
| 184 | + */ |
|
| 182 | 185 | public function setUrl($name, $locale = null) |
| 183 | 186 | { |
| 184 | 187 | $this->translate($locale)->setUrl($name); |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Doctrine\ORM\Mapping\ManyToOne; |
| 9 | 9 | use Doctrine\ORM\Mapping\OneToMany; |
| 10 | 10 | use Doctrine\ORM\Mapping\OneToOne; |
| 11 | -use Doctrine\ORM\Query\Expr\Join; |
|
| 12 | 11 | use Doctrine\ORM\QueryBuilder; |
| 13 | 12 | use FOS\UserBundle\Model\UserInterface; |
| 14 | 13 | use Knp\DoctrineBehaviors\Model\Translatable\Translatable; |
@@ -190,7 +190,6 @@ |
||
| 190 | 190 | * |
| 191 | 191 | * @param array $parameters The link parameters (go to LinkTrait to have the list) |
| 192 | 192 | * @param string $label link label |
| 193 | - * @param array $attr custom attributes |
|
| 194 | 193 | * |
| 195 | 194 | * @return string |
| 196 | 195 | */ |
@@ -264,7 +264,7 @@ |
||
| 264 | 264 | |
| 265 | 265 | private function formatAttributes($attributes) |
| 266 | 266 | { |
| 267 | - array_walk($attributes, function (&$item, $key) { |
|
| 267 | + array_walk($attributes, function(&$item, $key) { |
|
| 268 | 268 | if (is_array($item)) { |
| 269 | 269 | $item = implode($item, ' '); |
| 270 | 270 | } |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | $pageId = $page->getId(); |
| 125 | 125 | $viewReference = array_filter( |
| 126 | 126 | $viewReferences, |
| 127 | - function ($e) use ($pageId) { |
|
| 127 | + function($e) use ($pageId) { |
|
| 128 | 128 | return $e->getViewId() == $pageId; |
| 129 | 129 | }); |
| 130 | 130 | if (!empty($viewReference[0])) { |