Passed
Push — master ( fae04d...859641 )
by Artem
01:45
created
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/CodeManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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('Превышен лимит');
Please login to merge, or discard this patch.