| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Coverage | 75% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | class TinyPngService | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @param Asset $image | ||
| 18 | */ | ||
| 19 | 2 | public function minimize(Asset $image) | |
| 20 |     { | ||
| 21 | 2 | setKey($this->getApiKey()); | |
| 22 | 2 | $source = fromFile($image->getFileSystemPath()); | |
| 23 | $source->toFile($image->getFileSystemPath()); | ||
| 24 | } | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @return string | ||
| 28 | */ | ||
| 29 | 2 | private function getApiKey() : string | |
| 33 | } | ||
| 34 | } | ||
| 35 |