@@ -38,14 +38,14 @@ discard block |
||
| 38 | 38 | $car = $table->getHash(); |
| 39 | 39 | foreach ($car as $item) { |
| 40 | 40 | $dto = new CarDTO($item['id'], |
| 41 | - $item['responsiblePerson'], |
|
| 42 | - $item['model'], |
|
| 43 | - $item['brand'], |
|
| 44 | - $item['registrationNumber'], |
|
| 45 | - $item['productionDate'], |
|
| 46 | - $item['warrantyPeriod'], |
|
| 47 | - $item['city'], |
|
| 48 | - $item['department'] |
|
| 41 | + $item['responsiblePerson'], |
|
| 42 | + $item['model'], |
|
| 43 | + $item['brand'], |
|
| 44 | + $item['registrationNumber'], |
|
| 45 | + $item['productionDate'], |
|
| 46 | + $item['warrantyPeriod'], |
|
| 47 | + $item['city'], |
|
| 48 | + $item['department'] |
|
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | $newCar = new AddCarCommand(self::$carRepository, $dto); |
@@ -178,9 +178,9 @@ discard block |
||
| 178 | 178 | $documents = $table->getHash(); |
| 179 | 179 | foreach ($documents as $document) { |
| 180 | 180 | $dto = new DocumentDTO($document['id'], |
| 181 | - $document['source'], |
|
| 182 | - $document['title'], |
|
| 183 | - $document['description'] |
|
| 181 | + $document['source'], |
|
| 182 | + $document['title'], |
|
| 183 | + $document['description'] |
|
| 184 | 184 | ); |
| 185 | 185 | |
| 186 | 186 | $carDocument = new AddCarDocumentCommand(self::$carRepository, $document['carId'], $dto); |
@@ -32,9 +32,9 @@ |
||
| 32 | 32 | { |
| 33 | 33 | $car = $this->repository->find($this->carId); |
| 34 | 34 | $insurance = new InsuranceDocument($this->insuranceId, |
| 35 | - $this->document->title, |
|
| 36 | - $this->document->description, |
|
| 37 | - $this->document->source |
|
| 35 | + $this->document->title, |
|
| 36 | + $this->document->description, |
|
| 37 | + $this->document->source |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | $car->addInsuranceDocument($this->insuranceId, $insurance); |
@@ -24,10 +24,10 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $document = new DocumentFactory(); |
| 26 | 26 | $carDocument = $document->create(DocumentFactory::CAR_DOCUMENT, |
| 27 | - $this->preparedDocument->docId, |
|
| 28 | - $this->preparedDocument->title, |
|
| 29 | - $this->preparedDocument->description, |
|
| 30 | - $this->preparedDocument->source |
|
| 27 | + $this->preparedDocument->docId, |
|
| 28 | + $this->preparedDocument->title, |
|
| 29 | + $this->preparedDocument->description, |
|
| 30 | + $this->preparedDocument->source |
|
| 31 | 31 | ); |
| 32 | 32 | |
| 33 | 33 | $car = $this->repository->find($this->carId); |
@@ -46,10 +46,10 @@ discard block |
||
| 46 | 46 | $command->car = $command->repository->find($carId); |
| 47 | 47 | |
| 48 | 48 | $command->documentFile = $carInsuranceDocument->create(DocumentFactory::INSURANCE_DOCUMENT, |
| 49 | - $command->documentDTO->docId, |
|
| 50 | - $command->documentDTO->title, |
|
| 51 | - $documentDTO->description, |
|
| 52 | - $documentDTO->source |
|
| 49 | + $command->documentDTO->docId, |
|
| 50 | + $command->documentDTO->title, |
|
| 51 | + $documentDTO->description, |
|
| 52 | + $documentDTO->source |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | return $command; |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | $insurance = $this->insuranceDTO; |
| 72 | 72 | $insuranceFactory = new InsuranceFactory(); |
| 73 | 73 | $newInsurance = $insuranceFactory->create($insurance->insuranceId, |
| 74 | - $insurance->type, |
|
| 75 | - new \DateTime($insurance->dateFrom), |
|
| 76 | - new \DateTime($insurance->dateTo), |
|
| 77 | - $insurance->insurerId |
|
| 74 | + $insurance->type, |
|
| 75 | + new \DateTime($insurance->dateFrom), |
|
| 76 | + new \DateTime($insurance->dateTo), |
|
| 77 | + $insurance->insurerId |
|
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | 80 | $this->car->addInsurance($newInsurance); |
@@ -112,9 +112,9 @@ |
||
| 112 | 112 | { |
| 113 | 113 | foreach ($table as $item) { |
| 114 | 114 | $dto = new DocumentDTO($item['fileId'], |
| 115 | - $item['title'], |
|
| 116 | - $item['description'], |
|
| 117 | - $item['source'] |
|
| 115 | + $item['title'], |
|
| 116 | + $item['description'], |
|
| 117 | + $item['source'] |
|
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | 120 | $newInsuranceDocument = new AddInsuranceDocumentCommand(self::$carRepository, |