Passed
Push — master ( b72680...5fbcde )
by Artem
01:02 queued 10s
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/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $messageConfig = $config['messages'] ?? ['sms' => SmsMessage::class];
78 78
         $this->messageFactory = new MessageFactory($messageConfig, $container);
79 79
 
80
-        if (! empty($config['passwords'])) {
80
+        if (!empty($config['passwords'])) {
81 81
             foreach ($config['passwords'] as $code => $passwordConfig) {
82 82
                 $this->passwords[$code] = $this->getPreparedPasswordConfig($passwordConfig);
83 83
             }
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function make(string $code)
49 49
     {
50
-        if (! empty($this->resolved[$code])) {
50
+        if (!empty($this->resolved[$code])) {
51 51
             return $this->resolved[$code];
52 52
         }
53 53
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         Assert::isInstanceOf($resolved, $this->allowedType);
69 69
 
70
-        if (! $this->singletons) {
70
+        if (!$this->singletons) {
71 71
             return $resolved;
72 72
         }
73 73
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     protected function getResolvedFromString(string $code)
98 98
     {
99
-        if (! $this->entityExists($code)) {
99
+        if (!$this->entityExists($code)) {
100 100
             throw new FactoryException('Фабрика не может сделать такую сущность');
101 101
         }
102 102
 
Please login to merge, or discard this patch.
src/Transport/DebugTransport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
             $this->ensureDirectoryExists(dirname($filename));
39 39
 
40
-            if (! $this->putContents($filename, $text)) {
40
+            if (!$this->putContents($filename, $text)) {
41 41
                 throw new \RuntimeException('Unable to write data');
42 42
             }
43 43
         } catch (\Exception $exception) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function ensureDirectoryExists(string $path): void
69 69
     {
70
-        if (! is_dir($path)) {
70
+        if (!is_dir($path)) {
71 71
             mkdir($path, 0755, true);
72 72
         }
73 73
     }
Please login to merge, or discard this patch.