@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $bucket->getTokenData() |
240 | 240 | ); |
241 | 241 | |
242 | - if($this->isMockTest) { |
|
242 | + if ($this->isMockTest) { |
|
243 | 243 | return; |
244 | 244 | } |
245 | 245 | |
@@ -316,12 +316,12 @@ discard block |
||
316 | 316 | */ |
317 | 317 | public function getAccount() |
318 | 318 | { |
319 | - if($this->isMockTest) { |
|
319 | + if ($this->isMockTest) { |
|
320 | 320 | $this->getMockAccount(); |
321 | 321 | return $this->mockAccount; |
322 | 322 | } |
323 | 323 | |
324 | - if (is_null($this->account)||empty($this->account)) { |
|
324 | + if (is_null($this->account) || empty($this->account)) { |
|
325 | 325 | (new exception\errorException) |
326 | 326 | ->setOptions($this->getOptions()) |
327 | 327 | ->error('UNAUTHORIZED'); |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | |
343 | 343 | $mockAccount = []; |
344 | 344 | |
345 | - if(!isset($mockAccount['bucket'])) { |
|
345 | + if (!isset($mockAccount['bucket'])) { |
|
346 | 346 | $mockAccount['bucket'] = $packer->pack( |
347 | 347 | $bucket->getTokenData() |
348 | 348 | ); |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | |
351 | 351 | $mockAccount['access'] = time(); |
352 | 352 | |
353 | - $this->mockAccount = (object)$mockAccount; |
|
353 | + $this->mockAccount = (object) $mockAccount; |
|
354 | 354 | } |
355 | 355 | |
356 | 356 | /** |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | |
430 | 430 | if (is_numeric($timeframe)) { |
431 | 431 | if ($timeframe < 0) { |
432 | - $timeframe = ($timeframe*-1); |
|
432 | + $timeframe = ($timeframe * -1); |
|
433 | 433 | } |
434 | 434 | self::$timeframe['CUSTOM'] = $timeframe; |
435 | 435 | $this->window = intval(self::$timeframe['CUSTOM']); |