@@ -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(); |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace ArjanSchouten\HtmlMinifier\Placeholders; |
| 4 | 4 | |
| 5 | 5 | use ArjanSchouten\HtmlMinifier\PlaceholderContainer; |
| 6 | -use ArjanSchouten\HtmlMinifier\Repositories\HtmlInlineElementsRepository; |
|
| 7 | 6 | |
| 8 | 7 | class WhitespacePlaceholder implements PlaceholderInterface |
| 9 | 8 | { |