@@ -30,11 +30,11 @@ |
||
| 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 | |
@@ -27,7 +27,7 @@ |
||
| 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 | |
@@ -22,7 +22,7 @@ |
||
| 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 | |
@@ -21,11 +21,11 @@ |
||
| 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 | } |
@@ -24,7 +24,7 @@ |
||
| 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 | |
@@ -20,7 +20,7 @@ |
||
| 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 | |
@@ -23,7 +23,7 @@ |
||
| 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 | |
@@ -21,7 +21,7 @@ |
||
| 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 | |
@@ -1,14 +1,14 @@ |
||
| 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 | } |