@@ -3,22 +3,22 @@ |
||
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 | } |
@@ -78,11 +78,11 @@ |
||
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 | } |
@@ -21,12 +21,12 @@ discard block |
||
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 |
||
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 | } |
@@ -23,7 +23,7 @@ |
||
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); |