Completed
Push — master ( 1db7ad...901094 )
by Rocco
06:20
created
src/Infrastructure/DBAL/DbalShiftMapper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
                 "phone" => $resultSet["e_phone"],
177 177
                 "created_at" => $resultSet["e_created_at"],
178 178
                 "updated_at" => $resultSet["e_updated_at"]
179
-              ])
179
+                ])
180 180
             : new NullUser();
181 181
 
182 182
         return new Shift($id, $manager, $employee, $break, $start, $end, $created, $updated);
Please login to merge, or discard this patch.
src/Web/Radar/Responder/ShiftResponder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $url = "/shifts/{$shift->getId()}";
18 18
 
19 19
         $this->response = $this->response->withStatus(201)
20
-                                         ->withHeader("Location", $url);
20
+                                            ->withHeader("Location", $url);
21 21
         $this->jsonBody($this->resource->item($shift));
22 22
     }
23 23
 
Please login to merge, or discard this patch.
src/Web/Radar/Responder/ApiProblemResponder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     protected function notAuthenticated()
40 40
     {
41 41
         $this->response = $this->response->withStatus(401)
42
-                                         ->withHeader("WWW-Authenticate", "None");
42
+                                            ->withHeader("WWW-Authenticate", "None");
43 43
 
44 44
         $problem = $this->createProblem();
45 45
         $problem->setDetail("This resource requires a valid access token.");
Please login to merge, or discard this patch.
src/Application/Service/UpdateShift.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         if ($shift === null) {
61 61
             return $this->payload->setStatus(Payload::NOT_FOUND)
62
-                                 ->setMessages(self::SHIFT_NOT_FOUND_MESSAGE);
62
+                                    ->setMessages(self::SHIFT_NOT_FOUND_MESSAGE);
63 63
         }
64 64
 
65 65
         if ($employeeId !== null) {
@@ -67,19 +67,19 @@  discard block
 block discarded – undo
67 67
 
68 68
             if ($employee instanceof NullUser) {
69 69
                 return $this->payload->setStatus(Payload::NOT_FOUND)
70
-                                     ->setMessages(self::USER_NOT_FOUND_MESSAGE);
70
+                                        ->setMessages(self::USER_NOT_FOUND_MESSAGE);
71 71
             }
72 72
 
73 73
             $shift = $shift->assignTo($employee);
74 74
         }
75 75
 
76 76
         $shift = $shift->changeStartTime($start)
77
-                       ->changeEndTime($end)
78
-                       ->changeBreak($break);
77
+                        ->changeEndTime($end)
78
+                        ->changeBreak($break);
79 79
 
80 80
         $this->shiftMapper->update($shift);
81 81
 
82 82
         return $this->payload->setStatus(Payload::UPDATED)
83
-                             ->setOutput($shift);
83
+                                ->setOutput($shift);
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/Application/Service/GetShiftsInTimePeriod.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
         $shifts = $this->shiftMapper->findShiftsInTimePeriod($start, $end);
54 54
 
55 55
         return $this->payload->setStatus(Payload::SUCCESS)
56
-                             ->setOutput($shifts);
56
+                                ->setOutput($shifts);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Application/Service/GetShiftsAssignedToEmployee.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         if (! is_integer($employeeId)) {
29 29
             return $this->payload->setStatus(Payload::NOT_VALID)
30
-                                 ->setMessages(["employee_id" => self::INVALID_ID_MESSAGE]);
30
+                                    ->setMessages(["employee_id" => self::INVALID_ID_MESSAGE]);
31 31
         }
32 32
 
33 33
         if ($currentUser->getId() !== $employeeId) {
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
         $shifts = $this->shiftMapper->findShiftsByEmployeeId($currentUser->getId());
38 38
 
39 39
         return $this->payload->setStatus(Payload::SUCCESS)
40
-                             ->setOutput($shifts);
40
+                                ->setOutput($shifts);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Application/Service/GetShift.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,6 @@
 block discarded – undo
41 41
         }
42 42
 
43 43
         return $this->payload->setStatus(Payload::SUCCESS)
44
-                             ->setOutput($shift);
44
+                                ->setOutput($shift);
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Application/Service/GetEmployee.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
         }
32 32
 
33 33
         return $this->payload->setStatus(Payload::SUCCESS)
34
-                             ->setOutput($employee);
34
+                                ->setOutput($employee);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Application/Service/CreateShift.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         if (count($invalid)) {
48 48
             return $this->payload->setStatus(Payload::NOT_VALID)
49
-                                 ->setMessages($invalid);
49
+                                    ->setMessages($invalid);
50 50
         }
51 51
 
52 52
         $employee = new NullUser();
Please login to merge, or discard this patch.