| Total Complexity | 4 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Coverage | 75% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | class TinyPngAssetListener implements EventSubscriberInterface | ||
| 17 | { | ||
| 18 | |||
| 19 | private $mimeTypes = [ | ||
| 20 | 'image/jpeg', | ||
| 21 | 'image/png' | ||
| 22 | ]; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @return array | ||
| 26 | */ | ||
| 27 | 1 | public static function getSubscribedEvents() | |
| 32 | ]; | ||
| 33 | } | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @param AssetEvent $event | ||
| 37 | * @return bool | ||
| 38 | */ | ||
| 39 | 2 | public function onImageSave(AssetEvent $event) : bool | |
| 57 |