@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | foreach ($config as $code => $class) { |
35 | 35 | if (!class_exists($class)) { |
36 | - throw new FactoryException('Фабрика не сможет создать такой объект: '.$class); |
|
36 | + throw new FactoryException('Фабрика не сможет создать такой объект: ' . $class); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | throw new ConfigurationException('Фабрика не инициализирована'); |
54 | 54 | } |
55 | 55 | |
56 | - if (! $this->entityExists($code)) { |
|
56 | + if (!$this->entityExists($code)) { |
|
57 | 57 | throw new FactoryException('Фабрика не может сделать такую сущность'); |
58 | 58 | } |
59 | 59 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $seconds = $this->config->getPasswordValidationPeriod(); |
57 | 57 | |
58 | - $createdAfter = (new \Datetime())->sub(new \DateInterval('PT'.$seconds.'S')); |
|
58 | + $createdAfter = (new \Datetime())->sub(new \DateInterval('PT' . $seconds . 'S')); |
|
59 | 59 | $code = $this->config->getCodeRepo()->getOneUnvalidatedByCode($verificationCode, $createdAfter); |
60 | 60 | |
61 | 61 | if (!$code) { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | { |
108 | 108 | $threshold = $this->config->getCreationCodeThreshold(); |
109 | 109 | |
110 | - $createdAfter = (new \Datetime())->sub(new \DateInterval('PT'.$threshold.'S')); |
|
110 | + $createdAfter = (new \Datetime())->sub(new \DateInterval('PT' . $threshold . 'S')); |
|
111 | 111 | |
112 | 112 | if ($this->config->getCodeRepo()->getLastCodeForAddress($address, $createdAfter)) { |
113 | 113 | throw new LimitException('Превышен лимит'); |