@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | //we use the PRE_SUBMIT event to set the mode option |
| 74 | 74 | $builder->addEventListener( |
| 75 | 75 | FormEvents::PRE_SUBMIT, |
| 76 | - function (FormEvent $event) use ($options) { |
|
| 76 | + function(FormEvent $event) use ($options) { |
|
| 77 | 77 | //we get the raw data for the widget form |
| 78 | 78 | $rawData = $event->getData(); |
| 79 | 79 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | ]); |
| 118 | 118 | $builder->addEventListener( |
| 119 | 119 | FormEvents::PRE_SET_DATA, |
| 120 | - function (FormEvent $event) use ($options) { |
|
| 120 | + function(FormEvent $event) use ($options) { |
|
| 121 | 121 | $dataSources = $options['dataSources']->getDataSources(); |
| 122 | 122 | $widget = $event->getData(); |
| 123 | 123 | foreach ($dataSources as $alias => $dataSource) { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | ); |
| 132 | 132 | $builder->addEventListener( |
| 133 | 133 | FormEvents::POST_SUBMIT, |
| 134 | - function (FormEvent $event) { |
|
| 134 | + function(FormEvent $event) { |
|
| 135 | 135 | $widget = $event->getData(); |
| 136 | 136 | /** @var Criteria $criteria */ |
| 137 | 137 | foreach ($widget->getCriterias() as $criteria) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * filter API to get a list of entities. |
| 100 | 100 | * |
| 101 | 101 | * @param APIBusinessEntity $businessEntity |
| 102 | - * @param array $filters |
|
| 102 | + * @param array $filter |
|
| 103 | 103 | * |
| 104 | 104 | * @return mixed |
| 105 | 105 | */ |
@@ -123,6 +123,7 @@ discard block |
||
| 123 | 123 | * Sends a curl request to a given path. |
| 124 | 124 | * |
| 125 | 125 | * @param APIEndpoint $endPoint |
| 126 | + * @param string $getMethod |
|
| 126 | 127 | * |
| 127 | 128 | * @return array |
| 128 | 129 | */ |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $getMethod = $businessEntity->getGetMethod(); |
| 51 | 51 | preg_match_all('/{{([a-zA-Z]+)}}/', $getMethod, $matches); |
| 52 | 52 | // build an array with businessIdentifiers properties names |
| 53 | - $identifiers = array_map(function ($property) { |
|
| 53 | + $identifiers = array_map(function($property) { |
|
| 54 | 54 | return $property->getName(); |
| 55 | 55 | }, |
| 56 | 56 | $businessEntity->getBusinessIdentifiers()->toArray() |
@@ -14,7 +14,6 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Replace the code string with the value of the entity attribute. |
| 16 | 16 | * |
| 17 | - * @param string $string |
|
| 18 | 17 | * @param BusinessProperty $businessProperty |
| 19 | 18 | * @param object $entity |
| 20 | 19 | * |
@@ -41,7 +40,6 @@ discard block |
||
| 41 | 40 | /** |
| 42 | 41 | * Replace the code string with the value of the entity attribute. |
| 43 | 42 | * |
| 44 | - * @param string $string |
|
| 45 | 43 | * @param string $entityProperty |
| 46 | 44 | * @param string $attributeValue |
| 47 | 45 | * |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | - * @param mixed $ressource |
|
| 187 | + * @param mixed $ressourceId |
|
| 188 | 188 | */ |
| 189 | 189 | public function setRessourceId($ressourceId) |
| 190 | 190 | { |