Test Failed
Push — master ( a9de71...77d308 )
by Artem
01:39
created
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.
src/Transport/DebugTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
             $filename = $this->getPath() . '/' . $address->__toString() . '_' . $this->getTimestamp() . '.txt';
37 37
 
38
-            if (! $this->putContents($filename, $text)) {
38
+            if (!$this->putContents($filename, $text)) {
39 39
                 throw new \RuntimeException('Unable to write data');
40 40
             }
41 41
         } catch (\Exception $exception) {
Please login to merge, or discard this patch.
src/Factories/AbstractFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         foreach ($config as $code => $class) {
40 40
             if (!class_exists($class)) {
41
-                throw new FactoryException('Фабрика не сможет создать такой объект: '.$class);
41
+                throw new FactoryException('Фабрика не сможет создать такой объект: ' . $class);
42 42
             }
43 43
         }
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function make(string $code)
56 56
     {
57
-        if (! empty($this->resolved[$code])) {
57
+        if (!empty($this->resolved[$code])) {
58 58
             return $this->resolved[$code];
59 59
         }
60 60
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function getResolvedFromString(string $code)
85 85
     {
86
-        if (! $this->entityExists($code)) {
86
+        if (!$this->entityExists($code)) {
87 87
             throw new FactoryException('Фабрика не может сделать такую сущность');
88 88
         }
89 89
 
Please login to merge, or discard this patch.