Passed
Push — master ( 4d4163...a7ef67 )
by Artem
03:02
created
src/Factories/AbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/CodeManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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('Превышен лимит');
Please login to merge, or discard this patch.