Conditions | 4 |
Paths | 5 |
Total Lines | 25 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | private function split_numbers_after_comma_to_array() |
||
32 | { |
||
33 | if($this->all_numbers_len>=2) |
||
34 | { |
||
35 | $arr = str_split($this->parsed_number_array[1]); |
||
36 | |||
37 | if(count($arr)>=3) |
||
38 | { |
||
39 | $this->after_comma_array = [$arr[0],$arr[1]]; |
||
40 | }else |
||
41 | { |
||
42 | $this->after_comma_array = $arr; |
||
43 | } |
||
44 | |||
45 | $this->after_comma_len = count($this->after_comma_array); |
||
46 | foreach ($this->after_comma_array as $digit) |
||
47 | { |
||
48 | $this->after_comma_sum.=$digit; |
||
49 | } |
||
50 | //dd($this->after_comma_sum == 00); |
||
51 | return $this; |
||
52 | } |
||
53 | $this->after_comma_array = []; |
||
54 | $this->after_comma_len = 0; |
||
55 | return $this; |
||
56 | } |
||
59 |