@@ -146,6 +146,9 @@ |
||
146 | 146 | $this->table(['Minification strategy', 'Size (KB)', 'Saved (KB)', 'Size (%)'], $rows); |
147 | 147 | } |
148 | 148 | |
149 | + /** |
|
150 | + * @param integer $new |
|
151 | + */ |
|
149 | 152 | private function calculateImprovementPercentage($new, $old) |
150 | 153 | { |
151 | 154 | return ($new - $old) / $old * 100; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Get all the steps which are measured. |
19 | 19 | * |
20 | - * @return array |
|
20 | + * @return ReferencePoint[] |
|
21 | 21 | */ |
22 | 22 | public function getReferencePoints(); |
23 | 23 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @return float |
|
40 | + * @return integer |
|
41 | 41 | */ |
42 | 42 | public function getKiloBytes() |
43 | 43 | { |
@@ -78,6 +78,9 @@ |
||
78 | 78 | $this->measurement->createReferencePoint($this->calculateInputLength($input), $keyName); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $input |
|
83 | + */ |
|
81 | 84 | private function calculateInputLength($input) |
82 | 85 | { |
83 | 86 | return mb_strlen($input, '8bit') + $this->placeholderContainer->getOriginalSize() - $this->placeholderContainer->getPlaceholderSize(); |