@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | $punches = $this->getPunches($month, $year); |
| 175 | 175 | |
| 176 | - return array_filter($punches['punches'], function (\DateTime $punchDateTime) use ($day) { |
|
| 176 | + return array_filter($punches['punches'], function(\DateTime $punchDateTime) use ($day) { |
|
| 177 | 177 | return (int) $punchDateTime->format('d') === (int) $day; |
| 178 | 178 | }); |
| 179 | 179 | } |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * @return mixed |
| 231 | 231 | */ |
| 232 | 232 | private function getData() { |
| 233 | - return once(function () { |
|
| 233 | + return once(function() { |
|
| 234 | 234 | $params = [ |
| 235 | 235 | 'company' => $this->companyId, |
| 236 | 236 | 'matricula' => $this->username, |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | private function buildUrl($endpoint, array $params = []) { |
| 251 | - return once(function () use ($endpoint, $params) { |
|
| 251 | + return once(function() use ($endpoint, $params) { |
|
| 252 | 252 | return vsprintf($endpoint, array_merge([static::API_BASE_URL], $params)); |
| 253 | 253 | }); |
| 254 | 254 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | */ |
| 90 | 90 | public function post($url, $data = [], array $config = []) |
| 91 | 91 | { |
| 92 | - return once(function () use ($url, $data, $config) { |
|
| 92 | + return once(function() use ($url, $data, $config) { |
|
| 93 | 93 | return $this->request(IHttpClient::HTTP_POST, $url, $data, $config); |
| 94 | 94 | }); |
| 95 | 95 | } |