@@ -66,7 +66,7 @@ |
||
| 66 | 66 | //we use the PRE_SUBMIT event to set the mode option |
| 67 | 67 | $builder->addEventListener( |
| 68 | 68 | FormEvents::PRE_SUBMIT, |
| 69 | - function (FormEvent $event) use ($options) { |
|
| 69 | + function(FormEvent $event) use ($options) { |
|
| 70 | 70 | //we get the raw data for the widget form |
| 71 | 71 | $rawData = $event->getData(); |
| 72 | 72 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * This method should only be used in ajax calls. |
| 30 | 30 | * |
| 31 | - * @param Form $form The form to parse |
|
| 31 | + * @param \Symfony\Component\Form\Form $form The form to parse |
|
| 32 | 32 | * @param bool $withChildren Do we parse the embedded forms |
| 33 | 33 | * |
| 34 | 34 | * @return string A string representation of all errors |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function addDataSource($dataSource, $parameters) |
| 22 | 22 | { |
| 23 | 23 | $method = $parameters['method']; |
| 24 | - $data = function () use ($dataSource, $method) { |
|
| 24 | + $data = function() use ($dataSource, $method) { |
|
| 25 | 25 | return $dataSource->{$method}(); |
| 26 | 26 | }; |
| 27 | 27 | $this->dataSource[$parameters['alias']] = [ |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $widget = $widgetMap->getWidget(); |
| 44 | 44 | $widget->setWidgetMap($widgetMap); |
| 45 | 45 | $widgetMap->setWidget(null); |
| 46 | - if ($key % 100 == 0) { |
|
| 46 | + if ($key%100 == 0) { |
|
| 47 | 47 | $entityManager->flush(); |
| 48 | 48 | } |
| 49 | 49 | $progress->advance(); |
@@ -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 | * |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * usage example: new Message('example.keymap')->addSource('path/to/source/file', '514', '10'),. |
| 15 | 15 | * |
| 16 | - * @return array the keys to register in jms translation |
|
| 16 | + * @return Message[] the keys to register in jms translation |
|
| 17 | 17 | */ |
| 18 | 18 | public static function getTranslationMessages() |
| 19 | 19 | { |
@@ -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; |