@@ -6,47 +6,47 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitFilesReminders |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\FilesReminders\\' => 19, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\FilesReminders\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\FilesReminders\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 26 | - 'OCA\\FilesReminders\\BackgroundJob\\CleanUpReminders' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanUpReminders.php', |
|
| 27 | - 'OCA\\FilesReminders\\BackgroundJob\\ScheduledNotifications' => __DIR__ . '/..' . '/../lib/BackgroundJob/ScheduledNotifications.php', |
|
| 28 | - 'OCA\\FilesReminders\\Command\\ListCommand' => __DIR__ . '/..' . '/../lib/Command/ListCommand.php', |
|
| 29 | - 'OCA\\FilesReminders\\Controller\\ApiController' => __DIR__ . '/..' . '/../lib/Controller/ApiController.php', |
|
| 30 | - 'OCA\\FilesReminders\\Dav\\PropFindPlugin' => __DIR__ . '/..' . '/../lib/Dav/PropFindPlugin.php', |
|
| 31 | - 'OCA\\FilesReminders\\Db\\Reminder' => __DIR__ . '/..' . '/../lib/Db/Reminder.php', |
|
| 32 | - 'OCA\\FilesReminders\\Db\\ReminderMapper' => __DIR__ . '/..' . '/../lib/Db/ReminderMapper.php', |
|
| 33 | - 'OCA\\FilesReminders\\Exception\\NodeNotFoundException' => __DIR__ . '/..' . '/../lib/Exception/NodeNotFoundException.php', |
|
| 34 | - 'OCA\\FilesReminders\\Exception\\ReminderNotFoundException' => __DIR__ . '/..' . '/../lib/Exception/ReminderNotFoundException.php', |
|
| 35 | - 'OCA\\FilesReminders\\Exception\\UserNotFoundException' => __DIR__ . '/..' . '/../lib/Exception/UserNotFoundException.php', |
|
| 36 | - 'OCA\\FilesReminders\\Listener\\LoadAdditionalScriptsListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalScriptsListener.php', |
|
| 37 | - 'OCA\\FilesReminders\\Listener\\NodeDeletedListener' => __DIR__ . '/..' . '/../lib/Listener/NodeDeletedListener.php', |
|
| 38 | - 'OCA\\FilesReminders\\Listener\\SabrePluginAddListener' => __DIR__ . '/..' . '/../lib/Listener/SabrePluginAddListener.php', |
|
| 39 | - 'OCA\\FilesReminders\\Listener\\UserDeletedListener' => __DIR__ . '/..' . '/../lib/Listener/UserDeletedListener.php', |
|
| 40 | - 'OCA\\FilesReminders\\Migration\\Version10000Date20230725162149' => __DIR__ . '/..' . '/../lib/Migration/Version10000Date20230725162149.php', |
|
| 41 | - 'OCA\\FilesReminders\\Model\\RichReminder' => __DIR__ . '/..' . '/../lib/Model/RichReminder.php', |
|
| 42 | - 'OCA\\FilesReminders\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', |
|
| 43 | - 'OCA\\FilesReminders\\Service\\ReminderService' => __DIR__ . '/..' . '/../lib/Service/ReminderService.php', |
|
| 44 | - 'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => __DIR__ . '/..' . '/../lib/SetupChecks/NeedNotificationsApp.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\FilesReminders\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 26 | + 'OCA\\FilesReminders\\BackgroundJob\\CleanUpReminders' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanUpReminders.php', |
|
| 27 | + 'OCA\\FilesReminders\\BackgroundJob\\ScheduledNotifications' => __DIR__.'/..'.'/../lib/BackgroundJob/ScheduledNotifications.php', |
|
| 28 | + 'OCA\\FilesReminders\\Command\\ListCommand' => __DIR__.'/..'.'/../lib/Command/ListCommand.php', |
|
| 29 | + 'OCA\\FilesReminders\\Controller\\ApiController' => __DIR__.'/..'.'/../lib/Controller/ApiController.php', |
|
| 30 | + 'OCA\\FilesReminders\\Dav\\PropFindPlugin' => __DIR__.'/..'.'/../lib/Dav/PropFindPlugin.php', |
|
| 31 | + 'OCA\\FilesReminders\\Db\\Reminder' => __DIR__.'/..'.'/../lib/Db/Reminder.php', |
|
| 32 | + 'OCA\\FilesReminders\\Db\\ReminderMapper' => __DIR__.'/..'.'/../lib/Db/ReminderMapper.php', |
|
| 33 | + 'OCA\\FilesReminders\\Exception\\NodeNotFoundException' => __DIR__.'/..'.'/../lib/Exception/NodeNotFoundException.php', |
|
| 34 | + 'OCA\\FilesReminders\\Exception\\ReminderNotFoundException' => __DIR__.'/..'.'/../lib/Exception/ReminderNotFoundException.php', |
|
| 35 | + 'OCA\\FilesReminders\\Exception\\UserNotFoundException' => __DIR__.'/..'.'/../lib/Exception/UserNotFoundException.php', |
|
| 36 | + 'OCA\\FilesReminders\\Listener\\LoadAdditionalScriptsListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalScriptsListener.php', |
|
| 37 | + 'OCA\\FilesReminders\\Listener\\NodeDeletedListener' => __DIR__.'/..'.'/../lib/Listener/NodeDeletedListener.php', |
|
| 38 | + 'OCA\\FilesReminders\\Listener\\SabrePluginAddListener' => __DIR__.'/..'.'/../lib/Listener/SabrePluginAddListener.php', |
|
| 39 | + 'OCA\\FilesReminders\\Listener\\UserDeletedListener' => __DIR__.'/..'.'/../lib/Listener/UserDeletedListener.php', |
|
| 40 | + 'OCA\\FilesReminders\\Migration\\Version10000Date20230725162149' => __DIR__.'/..'.'/../lib/Migration/Version10000Date20230725162149.php', |
|
| 41 | + 'OCA\\FilesReminders\\Model\\RichReminder' => __DIR__.'/..'.'/../lib/Model/RichReminder.php', |
|
| 42 | + 'OCA\\FilesReminders\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php', |
|
| 43 | + 'OCA\\FilesReminders\\Service\\ReminderService' => __DIR__.'/..'.'/../lib/Service/ReminderService.php', |
|
| 44 | + 'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => __DIR__.'/..'.'/../lib/SetupChecks/NeedNotificationsApp.php', |
|
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | 47 | public static function getInitializer(ClassLoader $loader) |
| 48 | 48 | { |
| 49 | - return \Closure::bind(function () use ($loader) { |
|
| 49 | + return \Closure::bind(function() use ($loader) { |
|
| 50 | 50 | $loader->prefixLengthsPsr4 = ComposerStaticInitFilesReminders::$prefixLengthsPsr4; |
| 51 | 51 | $loader->prefixDirsPsr4 = ComposerStaticInitFilesReminders::$prefixDirsPsr4; |
| 52 | 52 | $loader->classMap = ComposerStaticInitFilesReminders::$classMap; |
@@ -6,25 +6,25 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\FilesReminders\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 11 | - 'OCA\\FilesReminders\\BackgroundJob\\CleanUpReminders' => $baseDir . '/../lib/BackgroundJob/CleanUpReminders.php', |
|
| 12 | - 'OCA\\FilesReminders\\BackgroundJob\\ScheduledNotifications' => $baseDir . '/../lib/BackgroundJob/ScheduledNotifications.php', |
|
| 13 | - 'OCA\\FilesReminders\\Command\\ListCommand' => $baseDir . '/../lib/Command/ListCommand.php', |
|
| 14 | - 'OCA\\FilesReminders\\Controller\\ApiController' => $baseDir . '/../lib/Controller/ApiController.php', |
|
| 15 | - 'OCA\\FilesReminders\\Dav\\PropFindPlugin' => $baseDir . '/../lib/Dav/PropFindPlugin.php', |
|
| 16 | - 'OCA\\FilesReminders\\Db\\Reminder' => $baseDir . '/../lib/Db/Reminder.php', |
|
| 17 | - 'OCA\\FilesReminders\\Db\\ReminderMapper' => $baseDir . '/../lib/Db/ReminderMapper.php', |
|
| 18 | - 'OCA\\FilesReminders\\Exception\\NodeNotFoundException' => $baseDir . '/../lib/Exception/NodeNotFoundException.php', |
|
| 19 | - 'OCA\\FilesReminders\\Exception\\ReminderNotFoundException' => $baseDir . '/../lib/Exception/ReminderNotFoundException.php', |
|
| 20 | - 'OCA\\FilesReminders\\Exception\\UserNotFoundException' => $baseDir . '/../lib/Exception/UserNotFoundException.php', |
|
| 21 | - 'OCA\\FilesReminders\\Listener\\LoadAdditionalScriptsListener' => $baseDir . '/../lib/Listener/LoadAdditionalScriptsListener.php', |
|
| 22 | - 'OCA\\FilesReminders\\Listener\\NodeDeletedListener' => $baseDir . '/../lib/Listener/NodeDeletedListener.php', |
|
| 23 | - 'OCA\\FilesReminders\\Listener\\SabrePluginAddListener' => $baseDir . '/../lib/Listener/SabrePluginAddListener.php', |
|
| 24 | - 'OCA\\FilesReminders\\Listener\\UserDeletedListener' => $baseDir . '/../lib/Listener/UserDeletedListener.php', |
|
| 25 | - 'OCA\\FilesReminders\\Migration\\Version10000Date20230725162149' => $baseDir . '/../lib/Migration/Version10000Date20230725162149.php', |
|
| 26 | - 'OCA\\FilesReminders\\Model\\RichReminder' => $baseDir . '/../lib/Model/RichReminder.php', |
|
| 27 | - 'OCA\\FilesReminders\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php', |
|
| 28 | - 'OCA\\FilesReminders\\Service\\ReminderService' => $baseDir . '/../lib/Service/ReminderService.php', |
|
| 29 | - 'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => $baseDir . '/../lib/SetupChecks/NeedNotificationsApp.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\FilesReminders\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 11 | + 'OCA\\FilesReminders\\BackgroundJob\\CleanUpReminders' => $baseDir.'/../lib/BackgroundJob/CleanUpReminders.php', |
|
| 12 | + 'OCA\\FilesReminders\\BackgroundJob\\ScheduledNotifications' => $baseDir.'/../lib/BackgroundJob/ScheduledNotifications.php', |
|
| 13 | + 'OCA\\FilesReminders\\Command\\ListCommand' => $baseDir.'/../lib/Command/ListCommand.php', |
|
| 14 | + 'OCA\\FilesReminders\\Controller\\ApiController' => $baseDir.'/../lib/Controller/ApiController.php', |
|
| 15 | + 'OCA\\FilesReminders\\Dav\\PropFindPlugin' => $baseDir.'/../lib/Dav/PropFindPlugin.php', |
|
| 16 | + 'OCA\\FilesReminders\\Db\\Reminder' => $baseDir.'/../lib/Db/Reminder.php', |
|
| 17 | + 'OCA\\FilesReminders\\Db\\ReminderMapper' => $baseDir.'/../lib/Db/ReminderMapper.php', |
|
| 18 | + 'OCA\\FilesReminders\\Exception\\NodeNotFoundException' => $baseDir.'/../lib/Exception/NodeNotFoundException.php', |
|
| 19 | + 'OCA\\FilesReminders\\Exception\\ReminderNotFoundException' => $baseDir.'/../lib/Exception/ReminderNotFoundException.php', |
|
| 20 | + 'OCA\\FilesReminders\\Exception\\UserNotFoundException' => $baseDir.'/../lib/Exception/UserNotFoundException.php', |
|
| 21 | + 'OCA\\FilesReminders\\Listener\\LoadAdditionalScriptsListener' => $baseDir.'/../lib/Listener/LoadAdditionalScriptsListener.php', |
|
| 22 | + 'OCA\\FilesReminders\\Listener\\NodeDeletedListener' => $baseDir.'/../lib/Listener/NodeDeletedListener.php', |
|
| 23 | + 'OCA\\FilesReminders\\Listener\\SabrePluginAddListener' => $baseDir.'/../lib/Listener/SabrePluginAddListener.php', |
|
| 24 | + 'OCA\\FilesReminders\\Listener\\UserDeletedListener' => $baseDir.'/../lib/Listener/UserDeletedListener.php', |
|
| 25 | + 'OCA\\FilesReminders\\Migration\\Version10000Date20230725162149' => $baseDir.'/../lib/Migration/Version10000Date20230725162149.php', |
|
| 26 | + 'OCA\\FilesReminders\\Model\\RichReminder' => $baseDir.'/../lib/Model/RichReminder.php', |
|
| 27 | + 'OCA\\FilesReminders\\Notification\\Notifier' => $baseDir.'/../lib/Notification/Notifier.php', |
|
| 28 | + 'OCA\\FilesReminders\\Service\\ReminderService' => $baseDir.'/../lib/Service/ReminderService.php', |
|
| 29 | + 'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => $baseDir.'/../lib/SetupChecks/NeedNotificationsApp.php', |
|
| 30 | 30 | ); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $path = rtrim($node->getPath(), '/'); |
| 60 | - if (strpos($path, '/' . $notification->getUser() . '/files/') === 0) { |
|
| 60 | + if (strpos($path, '/'.$notification->getUser().'/files/') === 0) { |
|
| 61 | 61 | // Remove /user/files/... |
| 62 | 62 | $fullPath = $path; |
| 63 | 63 | [,,, $path] = explode('/', $fullPath, 4); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | [ |
| 77 | 77 | 'name' => [ |
| 78 | 78 | 'type' => 'highlight', |
| 79 | - 'id' => (string)$node->getId(), |
|
| 79 | + 'id' => (string) $node->getId(), |
|
| 80 | 80 | 'name' => $node->getName(), |
| 81 | 81 | ], |
| 82 | 82 | ], |