Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public static function format(FSEvent $event): string |
||
16 | { |
||
17 | $item = is_dir($event->getPath()) ? 'Directory' : 'File'; |
||
18 | $events = implode(', ', $event->getTypes()); |
||
19 | $time = $event->getWhen()->format('Y.m.d H:i:s'); |
||
20 | |||
21 | return sprintf('%s: %s %s at %s', $item, $event->getPath(), $events, $time); |
||
22 | } |
||
23 | } |