@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public function make(string $code) |
| 38 | 38 | { |
| 39 | - if (! empty($this->resolved[$code])) { |
|
| 39 | + if (!empty($this->resolved[$code])) { |
|
| 40 | 40 | return $this->resolved[$code]; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function getResolvedFromString(string $code) |
| 67 | 67 | { |
| 68 | - if (! $this->entityExists($code)) { |
|
| 68 | + if (!$this->entityExists($code)) { |
|
| 69 | 69 | throw new FactoryException('Фабрика не может сделать такую сущность'); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | $seconds = $this->config->getPasswordValidationPeriod(); |
| 63 | 63 | |
| 64 | - $createdAfter = (new \Datetime())->sub(new \DateInterval('PT'.$seconds.'S')); |
|
| 64 | + $createdAfter = (new \Datetime())->sub(new \DateInterval('PT' . $seconds . 'S')); |
|
| 65 | 65 | $code = $this->config->getCodeRepo()->getOneUnvalidatedByCode($verificationCode, $createdAfter); |
| 66 | 66 | |
| 67 | 67 | if (!$code) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | protected function generateOTP(string $fakeCode = null): string |
| 95 | 95 | { |
| 96 | - if (! empty($fakeCode)) { |
|
| 96 | + if (!empty($fakeCode)) { |
|
| 97 | 97 | return $fakeCode; |
| 98 | 98 | } |
| 99 | 99 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | { |
| 120 | 120 | $threshold = $this->config->getCreationCodeThreshold(); |
| 121 | 121 | |
| 122 | - $createdAfter = (new \Datetime())->sub(new \DateInterval('PT'.$threshold.'S')); |
|
| 122 | + $createdAfter = (new \Datetime())->sub(new \DateInterval('PT' . $threshold . 'S')); |
|
| 123 | 123 | |
| 124 | 124 | if ($this->config->getCodeRepo()->getLastCodeForAddress($address, $createdAfter)) { |
| 125 | 125 | throw new LimitException('Превышен лимит'); |