@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | 'parameters' => array(), |
| 20 | 20 | )); |
| 21 | 21 | |
| 22 | - $method = new CreateReservation(function () { |
|
| 22 | + $method = new CreateReservation(function() { |
|
| 23 | 23 | // no action |
| 24 | 24 | }); |
| 25 | 25 | $response = $method->call($request); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | )); |
| 40 | 40 | |
| 41 | 41 | $exception = new Exception('Cannot create reservation'); |
| 42 | - $method = new CreateReservation(function () use ($exception) { |
|
| 42 | + $method = new CreateReservation(function() use ($exception) { |
|
| 43 | 43 | throw $exception; |
| 44 | 44 | }); |
| 45 | 45 | try { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | { |
| 117 | 117 | try { |
| 118 | 118 | $request = $this->getRequestMock($requestData); |
| 119 | - $method = new CreateReservation(function () use ($responseData) { |
|
| 119 | + $method = new CreateReservation(function() use ($responseData) { |
|
| 120 | 120 | return $responseData; |
| 121 | 121 | }); |
| 122 | 122 | $method->call($request); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | 'parameters' => array(), |
| 19 | 19 | )); |
| 20 | 20 | |
| 21 | - $method = new CancelReservation(function () { |
|
| 21 | + $method = new CancelReservation(function() { |
|
| 22 | 22 | // no action |
| 23 | 23 | }); |
| 24 | 24 | $response = $method->call($request); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -spl_autoload_register(function ($class) { |
|
| 3 | +spl_autoload_register(function($class) { |
|
| 4 | 4 | $prefix = 'HelePartnerSyncApi\\'; |
| 5 | 5 | $baseDir = __DIR__ . '/src/'; |
| 6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $startDateTime = new DateTime('+1 hour'); |
| 19 | 19 | $endDateTime = new DateTime('+2 hours'); |
| 20 | - $closure = function () use ($startDateTime, $endDateTime) { |
|
| 20 | + $closure = function() use ($startDateTime, $endDateTime) { |
|
| 21 | 21 | return array( |
| 22 | 22 | array( |
| 23 | 23 | 'startDateTime' => $startDateTime, |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | try { |
| 110 | 110 | $request = $this->getRequestMock($requestData); |
| 111 | - $method = new GetSlots(function () use ($responseData) { |
|
| 111 | + $method = new GetSlots(function() use ($responseData) { |
|
| 112 | 112 | return $responseData; |
| 113 | 113 | }); |
| 114 | 114 | $method->call($request); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | public function __construct() |
| 9 | 9 | { |
| 10 | - parent::__construct(function () { |
|
| 10 | + parent::__construct(function() { |
|
| 11 | 11 | // no action |
| 12 | 12 | }); |
| 13 | 13 | } |