Test Setup Failed
Push — master ( 182354...f4d5d8 )
by Marek
02:30
created
Domain/CarManagement/Insurances/InsuranceDuplicationChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * @param \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Insurance $newInsurance
19
-     * @return true|false
19
+     * @return boolean
20 20
      */
21 21
     public function checkForDuplicates(array $existingInsurance, Insurance $newInsurance)
22 22
     {
Please login to merge, or discard this patch.
RegistryApplication/Domain/CarManagement/Insurances/InsuranceFactory.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,12 +14,13 @@
 block discarded – undo
14 14
 class InsuranceFactory
15 15
 {
16 16
     /**
17
-     * @param $insuranceType
18
-     * @param $dateFrom
19
-     * @param $dateTo
20
-     * @param $insuranceId
17
+     * @param string $insuranceType
18
+     * @param \DateTime $dateFrom
19
+     * @param \DateTime $dateTo
20
+     * @param string $insuranceId
21
+     * @param string $insurerId
21 22
      *
22
-     * @return \Madkom\RegistryApplication\Domain\CarManagement\Insurances\AccidentInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\AssistanceInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\CarInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\LiabilityInsurance
23
+     * @return Insurance
23 24
      * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\EmptyInsuranceDateException
24 25
      * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\UnknownInsuranceTypeException
25 26
      * @throws \InvalidArgumentException
Please login to merge, or discard this patch.
RegistryApplication/Domain/CarManagement/Behat/InsuranceManagerContext.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,9 +115,9 @@
 block discarded – undo
115 115
     {
116 116
         foreach ($table as $item) {
117 117
             $dto = new DocumentDTO($item['fileId'],
118
-                                   $item['title'],
119
-                                   $item['description'],
120
-                                   $item['source']
118
+                                    $item['title'],
119
+                                    $item['description'],
120
+                                    $item['source']
121 121
             );
122 122
 
123 123
 
Please login to merge, or discard this patch.
RegistryApplication/Domain/CarManagement/Behat/CarManagementContext.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Application/CarManagement/Command/Car/AddCarDocumentCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Application/CarManagement/Command/Insurance/AddInsuranceCommand.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
         $command->car          = $command->repository->find($carId);
49 49
 
50 50
         $command->documentFile = $carInsuranceDocument->create(DocumentFactory::INSURANCE_DOCUMENT,
51
-                                                               $command->documentDTO->docId,
52
-                                                               $command->documentDTO->title,
53
-                                                               $documentDTO->description,
54
-                                                               $documentDTO->source
51
+                                                                $command->documentDTO->docId,
52
+                                                                $command->documentDTO->title,
53
+                                                                $documentDTO->description,
54
+                                                                $documentDTO->source
55 55
         );
56 56
 
57 57
         return $command;
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
         $insurance        = $this->insuranceDTO;
74 74
         $insuranceFactory = new InsuranceFactory();
75 75
         $newInsurance     = $insuranceFactory->create($insurance->insuranceId,
76
-                                                      $insurance->type,
77
-                                                      new \DateTime($insurance->dateFrom),
78
-                                                      new \DateTime($insurance->dateTo),
79
-                                                      $insurance->insurerId
76
+                                                        $insurance->type,
77
+                                                        new \DateTime($insurance->dateFrom),
78
+                                                        new \DateTime($insurance->dateTo),
79
+                                                        $insurance->insurerId
80 80
         );
81 81
 
82 82
         $this->car->addInsurance($newInsurance);
Please login to merge, or discard this patch.
Application/CarManagement/Command/Insurance/AddInsuranceDocumentCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
CarManagement/VehicleInspection/VehicleInspectionDuplicationChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         /** @var VehicleInspection $vehicleInspection */
24 24
         foreach ($existingVehicleInspection as $vehicleInspection) {
25 25
             if ($newVehicleInspection->getLastInspection() === $vehicleInspection->getLastInspection() ||
26
-               $newVehicleInspection->getId()             === $vehicleInspection->getId()
26
+               $newVehicleInspection->getId() === $vehicleInspection->getId()
27 27
             ) {
28 28
                 return true;
29 29
             }
Please login to merge, or discard this patch.