@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function sum($array) |
45 | 45 | { |
46 | - if (!isset($array)) return null; |
|
47 | - return array_sum((array)$array); |
|
46 | + if (!isset($array)) return null; |
|
47 | + return array_sum((array)$array); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function product($array) |
57 | 57 | { |
58 | - if (!isset($array)) return null; |
|
59 | - return array_product((array)$array); |
|
58 | + if (!isset($array)) return null; |
|
59 | + return array_product((array)$array); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function values($array) |
69 | 69 | { |
70 | - if (!isset($array)) return null; |
|
71 | - return array_values((array)$array); |
|
70 | + if (!isset($array)) return null; |
|
71 | + return array_values((array)$array); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | if (!isset($date)) return null; |
92 | 92 | |
93 | 93 | if ($date instanceof \DateTime); |
94 | - elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
95 | - else $date = new \DateTime((string)$date); |
|
94 | + elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
95 | + else $date = new \DateTime((string)$date); |
|
96 | 96 | |
97 | 97 | $calendar = $calendar == 'traditional' ? \IntlDateFormatter::TRADITIONAL : \IntlDateFormatter::GREGORIAN; |
98 | 98 | list($format, $pattern) = $this->getFormat($format, $calendar); |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | if (!isset($date)) return null; |
115 | 115 | |
116 | 116 | if ($date instanceof \DateTime); |
117 | - elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
118 | - else $date = new \DateTime((string)$date); |
|
117 | + elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
118 | + else $date = new \DateTime((string)$date); |
|
119 | 119 | |
120 | 120 | $calendar = $calendar == 'traditional' ? \IntlDateFormatter::TRADITIONAL : \IntlDateFormatter::GREGORIAN; |
121 | 121 | list($format, $pattern) = $this->getFormat($format, $calendar); |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | if (!isset($date)) return null; |
138 | 138 | |
139 | 139 | if ($date instanceof \DateTime); |
140 | - elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
141 | - else $date = new \DateTime((string)$date); |
|
140 | + elseif (is_int($date)) $date = \DateTime::createFromFormat('U', $date); |
|
141 | + else $date = new \DateTime((string)$date); |
|
142 | 142 | |
143 | 143 | $calendar = $calendar == 'traditional' ? \IntlDateFormatter::TRADITIONAL : \IntlDateFormatter::GREGORIAN; |
144 | 144 |