1717use OCP \SystemTag \TagNotFoundException ;
1818use Psr \Log \LoggerInterface ;
1919
20- class NotifyAdminJob extends TimedJob
21- {
20+ class NotifyAdminJob extends TimedJob {
2221 private IAppConfig $ appConfig ;
2322 private TagService $ tagService ;
2423 private DbFileMapper $ dbFileMapper ;
2524 private MailService $ mailService ;
2625 private LoggerInterface $ logger ;
2726 private FileService $ fileService ;
2827
29- public function __construct (ITimeFactory $ time ,
30- IAppConfig $ appConfig ,
31- TagService $ tagService ,
32- DbFileMapper $ dbFileMapper ,
33- LoggerInterface $ logger ,
34- MailService $ mailService ,
35- FileService $ fileService )
36- {
28+ public function __construct (ITimeFactory $ time ,
29+ IAppConfig $ appConfig ,
30+ TagService $ tagService ,
31+ DbFileMapper $ dbFileMapper ,
32+ LoggerInterface $ logger ,
33+ MailService $ mailService ,
34+ FileService $ fileService ) {
3735 parent ::__construct ($ time );
3836
3937 $ this ->appConfig = $ appConfig ;
@@ -56,8 +54,7 @@ public function __construct(ITimeFactory $time,
5654 * @throws NotPermittedException
5755 * @throws \Exception
5856 */
59- protected function run ($ argument ): void
60- {
57+ protected function run ($ argument ): void {
6158 $ notifyAdminEnabled = $ this ->appConfig ->getValueBool (Application::APP_ID , 'notifyAdminEnabled ' );
6259 if (!$ notifyAdminEnabled ) {
6360 return ;
@@ -89,8 +86,7 @@ protected function run($argument): void
8986 * @throws NotFoundException
9087 * @throws NotPermittedException
9188 */
92- private function getFilesFromFileIds (array $ fileIds ): array
93- {
89+ private function getFilesFromFileIds (array $ fileIds ): array {
9490 $ files = [];
9591 foreach ($ fileIds as $ fileId ) {
9692 $ file = $ this ->fileService ->getNodeFromFileId ($ fileId );
0 commit comments