Passed
Push — master ( 61b2f8...584670 )
by Chubarov
05:03
created
src/helpers.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 block discarded – undo
3 3
 if (!function_exists('cumnormdist')) {
4 4
     function cumnormdist($x)
5 5
     {
6
-        $b1 =  0.319381530;
6
+        $b1 = 0.319381530;
7 7
         $b2 = -0.356563782;
8
-        $b3 =  1.781477937;
8
+        $b3 = 1.781477937;
9 9
         $b4 = -1.821255978;
10
-        $b5 =  1.330274429;
11
-        $p  =  0.2316419;
12
-        $c  =  0.39894228;
10
+        $b5 = 1.330274429;
11
+        $p  = 0.2316419;
12
+        $c  = 0.39894228;
13 13
 
14 14
         if ($x >= 0.0) {
15
-            $t = 1.0 / ( 1.0 + $p * $x );
15
+            $t = 1.0 / (1.0 + $p * $x);
16 16
             return (1.0 - $c * exp(-$x * $x / 2.0) * $t *
17
-                ($t *( $t * ($t * ($t * $b5 + $b4) + $b3) + $b2) + $b1));
17
+                ($t * ($t * ($t * ($t * $b5 + $b4) + $b3) + $b2) + $b1));
18 18
         } else {
19
-            $t = 1.0 / ( 1.0 - $p * $x );
19
+            $t = 1.0 / (1.0 - $p * $x);
20 20
             return ($c * exp(-$x * $x / 2.0) * $t *
21
-                ($t *($t * ($t * ( $t * $b5 + $b4) + $b3) + $b2) + $b1));
21
+                ($t * ($t * ($t * ($t * $b5 + $b4) + $b3) + $b2) + $b1));
22 22
         }
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/TransformQrCodeToTicket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@
 block discarded – undo
78 78
 
79 79
     private function getInteger($value): int
80 80
     {
81
-        return (int) $value;
81
+        return (int)$value;
82 82
     }
83 83
 
84 84
     private function getString($value): string
85 85
     {
86
-        return (string) $value;
86
+        return (string)$value;
87 87
     }
88 88
 }
Please login to merge, or discard this patch.
src/Receipt.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
         return $this->products;
22 22
     }
23 23
 
24
-    public function getAddress():?string
24
+    public function getAddress(): ?string
25 25
     {
26 26
         return $this->data->content->retailPlaceAddress ?? $this->data->address ?? null;
27 27
     }
28 28
 
29
-    public function getShopName():?string
29
+    public function getShopName(): ?string
30 30
     {
31 31
         return $this->data->content->user ?? null;
32 32
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return (int)$this->data->content->userInn;
37 37
     }
38 38
 
39
-    public function getCashierName() :?string
39
+    public function getCashierName() : ?string
40 40
     {
41 41
         return $this->data->content->operator ?? null;
42 42
     }
Please login to merge, or discard this patch.
examples/standart_flow.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 $message = new \Fns\GetMessage\GetTicketRequest();
25 25
 $message->setTimeoutStrategy(new ExponentialBackoff($message));
26
- // или добавить максимальное значение
26
+    // или добавить максимальное значение
27 27
 $message->setTimeoutStrategy(new ExponentialBackoff($message, 600000000));
28 28
 
29 29
 $request = new SendMessageRequest($client, $message);
Please login to merge, or discard this patch.