@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function __construct($id, $startPoint, $endPoint, $kilometersComment, $numberOfKilometers, DateTime $date) |
| 59 | 59 | { |
| 60 | - $this->id = (int)$id; |
|
| 60 | + $this->id = (int) $id; |
|
| 61 | 61 | $this->startPoint = $startPoint; |
| 62 | 62 | $this->endPoint = $endPoint; |
| 63 | 63 | $this->kilometersComment = $kilometersComment; |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function add(FormElementInterface $element) |
| 89 | 89 | { |
| 90 | - if(array_key_exists($element->getName(), $this->elements)){ |
|
| 90 | + if (array_key_exists($element->getName(), $this->elements)) { |
|
| 91 | 91 | throw new \InvalidArgumentException('Element already exists'); |
| 92 | 92 | } |
| 93 | 93 | $this->elements[$element->getName()] = $element; |