Completed
Branchmaster (1db7ad)
by Rocco
06:17
created
src/Domain/Model/Shift/Shift.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         DateTimeInterface $startTime, DateTimeInterface $endTime,
31 31
         DateTimeInterface $created = null, DateTimeInterface $updated = null)
32 32
     {
33
-        if (isset($id) && ! is_int($id)) {
33
+        if (isset($id) && !is_int($id)) {
34 34
             throw new \InvalidArgumentException("The id must be an integer");
35 35
         }
36 36
 
37
-        if (! is_float($break)) {
37
+        if (!is_float($break)) {
38 38
             throw new \InvalidArgumentException("The break must be a float");
39 39
         }
40 40
 
Please login to merge, or discard this patch.
src/Application/Service/UpdateShift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     public function __invoke(User $currentUser, $shiftId, $employeeId, $start, $end, $break) {
30
-        if (! $currentUser->isAuthenticated()) {
30
+        if (!$currentUser->isAuthenticated()) {
31 31
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Application/Service/GetShiftsInTimePeriod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function __invoke(User $user, $start, $end)
24 24
     {
25
-        if (! $user->isAuthenticated()) {
25
+        if (!$user->isAuthenticated()) {
26 26
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/Application/Service/GetShiftsAssignedToEmployee.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
 
22 22
     public function __invoke(User $currentUser, $employeeId)
23 23
     {
24
-        if (! $currentUser->isAuthenticated()) {
24
+        if (!$currentUser->isAuthenticated()) {
25 25
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
26 26
         }
27 27
 
28
-        if (! is_integer($employeeId)) {
28
+        if (!is_integer($employeeId)) {
29 29
             return $this->payload->setStatus(Payload::NOT_VALID)
30 30
                                  ->setMessages(["employee_id" => self::INVALID_ID_MESSAGE]);
31 31
         }
Please login to merge, or discard this patch.
src/Application/Service/GetShift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function __invoke($currentUser, $shiftId, $withCoworkers)
26 26
     {
27
-        if (! $currentUser->isAuthenticated()) {
27
+        if (!$currentUser->isAuthenticated()) {
28 28
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Application/Service/GetEmployee.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __invoke(User $currentUser, $employeeId)
22 22
     {
23
-        if (! $currentUser->isAuthenticated()) {
23
+        if (!$currentUser->isAuthenticated()) {
24 24
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Application/Service/CreateShift.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
 
24 24
     public function __invoke($currentUser, $start, $end, $break)
25 25
     {
26
-        if (! $currentUser->isAuthenticated()) {
26
+        if (!$currentUser->isAuthenticated()) {
27 27
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Application/Service/GetHoursWorkedInWeek.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function __invoke(User $currentUser, $employeeId, $weekOf)
23 23
     {
24
-        if (! $currentUser->isAuthenticated()) {
24
+        if (!$currentUser->isAuthenticated()) {
25 25
             return $this->payload->setStatus(Payload::NOT_AUTHENTICATED);
26 26
         }
27 27
 
Please login to merge, or discard this patch.
web/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . "/../vendor/autoload.php";
3
+require __DIR__."/../vendor/autoload.php";
4 4
 
5 5
 use Dotenv\Dotenv;
6 6
 use Radar\Adr\Boot;
7 7
 use Zend\Diactoros\Response;
8 8
 use Zend\Diactoros\ServerRequestFactory;
9 9
 
10
-$dotenvPath = __DIR__ . "/..";
11
-if (file_exists($dotenvPath . "/.env")) {
10
+$dotenvPath = __DIR__."/..";
11
+if (file_exists($dotenvPath."/.env")) {
12 12
     $dotenv = new Dotenv($dotenvPath);
13 13
     $dotenv->load();
14 14
 }
Please login to merge, or discard this patch.