@@ -6,52 +6,52 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitUserStatus |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\UserStatus\\' => 15, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\UserStatus\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/../lib', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'OCA\\UserStatus\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
25 | - 'OCA\\UserStatus\\BackgroundJob\\ClearOldStatusesBackgroundJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/ClearOldStatusesBackgroundJob.php', |
|
26 | - 'OCA\\UserStatus\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
27 | - 'OCA\\UserStatus\\Connector\\UserStatus' => __DIR__ . '/..' . '/../lib/Connector/UserStatus.php', |
|
28 | - 'OCA\\UserStatus\\Connector\\UserStatusProvider' => __DIR__ . '/..' . '/../lib/Connector/UserStatusProvider.php', |
|
29 | - 'OCA\\UserStatus\\Controller\\HeartbeatController' => __DIR__ . '/..' . '/../lib/Controller/HeartbeatController.php', |
|
30 | - 'OCA\\UserStatus\\Controller\\PredefinedStatusController' => __DIR__ . '/..' . '/../lib/Controller/PredefinedStatusController.php', |
|
31 | - 'OCA\\UserStatus\\Controller\\StatusesController' => __DIR__ . '/..' . '/../lib/Controller/StatusesController.php', |
|
32 | - 'OCA\\UserStatus\\Controller\\UserStatusController' => __DIR__ . '/..' . '/../lib/Controller/UserStatusController.php', |
|
33 | - 'OCA\\UserStatus\\Dashboard\\UserStatusWidget' => __DIR__ . '/..' . '/../lib/Dashboard/UserStatusWidget.php', |
|
34 | - 'OCA\\UserStatus\\Db\\UserStatus' => __DIR__ . '/..' . '/../lib/Db/UserStatus.php', |
|
35 | - 'OCA\\UserStatus\\Db\\UserStatusMapper' => __DIR__ . '/..' . '/../lib/Db/UserStatusMapper.php', |
|
36 | - 'OCA\\UserStatus\\Exception\\InvalidClearAtException' => __DIR__ . '/..' . '/../lib/Exception/InvalidClearAtException.php', |
|
37 | - 'OCA\\UserStatus\\Exception\\InvalidMessageIdException' => __DIR__ . '/..' . '/../lib/Exception/InvalidMessageIdException.php', |
|
38 | - 'OCA\\UserStatus\\Exception\\InvalidStatusIconException' => __DIR__ . '/..' . '/../lib/Exception/InvalidStatusIconException.php', |
|
39 | - 'OCA\\UserStatus\\Exception\\InvalidStatusTypeException' => __DIR__ . '/..' . '/../lib/Exception/InvalidStatusTypeException.php', |
|
40 | - 'OCA\\UserStatus\\Exception\\StatusMessageTooLongException' => __DIR__ . '/..' . '/../lib/Exception/StatusMessageTooLongException.php', |
|
41 | - 'OCA\\UserStatus\\Listener\\BeforeTemplateRenderedListener' => __DIR__ . '/..' . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
42 | - 'OCA\\UserStatus\\Listener\\UserDeletedListener' => __DIR__ . '/..' . '/../lib/Listener/UserDeletedListener.php', |
|
43 | - 'OCA\\UserStatus\\Listener\\UserLiveStatusListener' => __DIR__ . '/..' . '/../lib/Listener/UserLiveStatusListener.php', |
|
44 | - 'OCA\\UserStatus\\Migration\\Version0001Date20200602134824' => __DIR__ . '/..' . '/../lib/Migration/Version0001Date20200602134824.php', |
|
45 | - 'OCA\\UserStatus\\Migration\\Version0002Date20200902144824' => __DIR__ . '/..' . '/../lib/Migration/Version0002Date20200902144824.php', |
|
46 | - 'OCA\\UserStatus\\Service\\EmojiService' => __DIR__ . '/..' . '/../lib/Service/EmojiService.php', |
|
47 | - 'OCA\\UserStatus\\Service\\JSDataService' => __DIR__ . '/..' . '/../lib/Service/JSDataService.php', |
|
48 | - 'OCA\\UserStatus\\Service\\PredefinedStatusService' => __DIR__ . '/..' . '/../lib/Service/PredefinedStatusService.php', |
|
49 | - 'OCA\\UserStatus\\Service\\StatusService' => __DIR__ . '/..' . '/../lib/Service/StatusService.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'OCA\\UserStatus\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
25 | + 'OCA\\UserStatus\\BackgroundJob\\ClearOldStatusesBackgroundJob' => __DIR__.'/..'.'/../lib/BackgroundJob/ClearOldStatusesBackgroundJob.php', |
|
26 | + 'OCA\\UserStatus\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
27 | + 'OCA\\UserStatus\\Connector\\UserStatus' => __DIR__.'/..'.'/../lib/Connector/UserStatus.php', |
|
28 | + 'OCA\\UserStatus\\Connector\\UserStatusProvider' => __DIR__.'/..'.'/../lib/Connector/UserStatusProvider.php', |
|
29 | + 'OCA\\UserStatus\\Controller\\HeartbeatController' => __DIR__.'/..'.'/../lib/Controller/HeartbeatController.php', |
|
30 | + 'OCA\\UserStatus\\Controller\\PredefinedStatusController' => __DIR__.'/..'.'/../lib/Controller/PredefinedStatusController.php', |
|
31 | + 'OCA\\UserStatus\\Controller\\StatusesController' => __DIR__.'/..'.'/../lib/Controller/StatusesController.php', |
|
32 | + 'OCA\\UserStatus\\Controller\\UserStatusController' => __DIR__.'/..'.'/../lib/Controller/UserStatusController.php', |
|
33 | + 'OCA\\UserStatus\\Dashboard\\UserStatusWidget' => __DIR__.'/..'.'/../lib/Dashboard/UserStatusWidget.php', |
|
34 | + 'OCA\\UserStatus\\Db\\UserStatus' => __DIR__.'/..'.'/../lib/Db/UserStatus.php', |
|
35 | + 'OCA\\UserStatus\\Db\\UserStatusMapper' => __DIR__.'/..'.'/../lib/Db/UserStatusMapper.php', |
|
36 | + 'OCA\\UserStatus\\Exception\\InvalidClearAtException' => __DIR__.'/..'.'/../lib/Exception/InvalidClearAtException.php', |
|
37 | + 'OCA\\UserStatus\\Exception\\InvalidMessageIdException' => __DIR__.'/..'.'/../lib/Exception/InvalidMessageIdException.php', |
|
38 | + 'OCA\\UserStatus\\Exception\\InvalidStatusIconException' => __DIR__.'/..'.'/../lib/Exception/InvalidStatusIconException.php', |
|
39 | + 'OCA\\UserStatus\\Exception\\InvalidStatusTypeException' => __DIR__.'/..'.'/../lib/Exception/InvalidStatusTypeException.php', |
|
40 | + 'OCA\\UserStatus\\Exception\\StatusMessageTooLongException' => __DIR__.'/..'.'/../lib/Exception/StatusMessageTooLongException.php', |
|
41 | + 'OCA\\UserStatus\\Listener\\BeforeTemplateRenderedListener' => __DIR__.'/..'.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
42 | + 'OCA\\UserStatus\\Listener\\UserDeletedListener' => __DIR__.'/..'.'/../lib/Listener/UserDeletedListener.php', |
|
43 | + 'OCA\\UserStatus\\Listener\\UserLiveStatusListener' => __DIR__.'/..'.'/../lib/Listener/UserLiveStatusListener.php', |
|
44 | + 'OCA\\UserStatus\\Migration\\Version0001Date20200602134824' => __DIR__.'/..'.'/../lib/Migration/Version0001Date20200602134824.php', |
|
45 | + 'OCA\\UserStatus\\Migration\\Version0002Date20200902144824' => __DIR__.'/..'.'/../lib/Migration/Version0002Date20200902144824.php', |
|
46 | + 'OCA\\UserStatus\\Service\\EmojiService' => __DIR__.'/..'.'/../lib/Service/EmojiService.php', |
|
47 | + 'OCA\\UserStatus\\Service\\JSDataService' => __DIR__.'/..'.'/../lib/Service/JSDataService.php', |
|
48 | + 'OCA\\UserStatus\\Service\\PredefinedStatusService' => __DIR__.'/..'.'/../lib/Service/PredefinedStatusService.php', |
|
49 | + 'OCA\\UserStatus\\Service\\StatusService' => __DIR__.'/..'.'/../lib/Service/StatusService.php', |
|
50 | 50 | ); |
51 | 51 | |
52 | 52 | public static function getInitializer(ClassLoader $loader) |
53 | 53 | { |
54 | - return \Closure::bind(function () use ($loader) { |
|
54 | + return \Closure::bind(function() use ($loader) { |
|
55 | 55 | $loader->prefixLengthsPsr4 = ComposerStaticInitUserStatus::$prefixLengthsPsr4; |
56 | 56 | $loader->prefixDirsPsr4 = ComposerStaticInitUserStatus::$prefixDirsPsr4; |
57 | 57 | $loader->classMap = ComposerStaticInitUserStatus::$classMap; |
@@ -6,30 +6,30 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\UserStatus\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
10 | - 'OCA\\UserStatus\\BackgroundJob\\ClearOldStatusesBackgroundJob' => $baseDir . '/../lib/BackgroundJob/ClearOldStatusesBackgroundJob.php', |
|
11 | - 'OCA\\UserStatus\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
12 | - 'OCA\\UserStatus\\Connector\\UserStatus' => $baseDir . '/../lib/Connector/UserStatus.php', |
|
13 | - 'OCA\\UserStatus\\Connector\\UserStatusProvider' => $baseDir . '/../lib/Connector/UserStatusProvider.php', |
|
14 | - 'OCA\\UserStatus\\Controller\\HeartbeatController' => $baseDir . '/../lib/Controller/HeartbeatController.php', |
|
15 | - 'OCA\\UserStatus\\Controller\\PredefinedStatusController' => $baseDir . '/../lib/Controller/PredefinedStatusController.php', |
|
16 | - 'OCA\\UserStatus\\Controller\\StatusesController' => $baseDir . '/../lib/Controller/StatusesController.php', |
|
17 | - 'OCA\\UserStatus\\Controller\\UserStatusController' => $baseDir . '/../lib/Controller/UserStatusController.php', |
|
18 | - 'OCA\\UserStatus\\Dashboard\\UserStatusWidget' => $baseDir . '/../lib/Dashboard/UserStatusWidget.php', |
|
19 | - 'OCA\\UserStatus\\Db\\UserStatus' => $baseDir . '/../lib/Db/UserStatus.php', |
|
20 | - 'OCA\\UserStatus\\Db\\UserStatusMapper' => $baseDir . '/../lib/Db/UserStatusMapper.php', |
|
21 | - 'OCA\\UserStatus\\Exception\\InvalidClearAtException' => $baseDir . '/../lib/Exception/InvalidClearAtException.php', |
|
22 | - 'OCA\\UserStatus\\Exception\\InvalidMessageIdException' => $baseDir . '/../lib/Exception/InvalidMessageIdException.php', |
|
23 | - 'OCA\\UserStatus\\Exception\\InvalidStatusIconException' => $baseDir . '/../lib/Exception/InvalidStatusIconException.php', |
|
24 | - 'OCA\\UserStatus\\Exception\\InvalidStatusTypeException' => $baseDir . '/../lib/Exception/InvalidStatusTypeException.php', |
|
25 | - 'OCA\\UserStatus\\Exception\\StatusMessageTooLongException' => $baseDir . '/../lib/Exception/StatusMessageTooLongException.php', |
|
26 | - 'OCA\\UserStatus\\Listener\\BeforeTemplateRenderedListener' => $baseDir . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
27 | - 'OCA\\UserStatus\\Listener\\UserDeletedListener' => $baseDir . '/../lib/Listener/UserDeletedListener.php', |
|
28 | - 'OCA\\UserStatus\\Listener\\UserLiveStatusListener' => $baseDir . '/../lib/Listener/UserLiveStatusListener.php', |
|
29 | - 'OCA\\UserStatus\\Migration\\Version0001Date20200602134824' => $baseDir . '/../lib/Migration/Version0001Date20200602134824.php', |
|
30 | - 'OCA\\UserStatus\\Migration\\Version0002Date20200902144824' => $baseDir . '/../lib/Migration/Version0002Date20200902144824.php', |
|
31 | - 'OCA\\UserStatus\\Service\\EmojiService' => $baseDir . '/../lib/Service/EmojiService.php', |
|
32 | - 'OCA\\UserStatus\\Service\\JSDataService' => $baseDir . '/../lib/Service/JSDataService.php', |
|
33 | - 'OCA\\UserStatus\\Service\\PredefinedStatusService' => $baseDir . '/../lib/Service/PredefinedStatusService.php', |
|
34 | - 'OCA\\UserStatus\\Service\\StatusService' => $baseDir . '/../lib/Service/StatusService.php', |
|
9 | + 'OCA\\UserStatus\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
10 | + 'OCA\\UserStatus\\BackgroundJob\\ClearOldStatusesBackgroundJob' => $baseDir.'/../lib/BackgroundJob/ClearOldStatusesBackgroundJob.php', |
|
11 | + 'OCA\\UserStatus\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
12 | + 'OCA\\UserStatus\\Connector\\UserStatus' => $baseDir.'/../lib/Connector/UserStatus.php', |
|
13 | + 'OCA\\UserStatus\\Connector\\UserStatusProvider' => $baseDir.'/../lib/Connector/UserStatusProvider.php', |
|
14 | + 'OCA\\UserStatus\\Controller\\HeartbeatController' => $baseDir.'/../lib/Controller/HeartbeatController.php', |
|
15 | + 'OCA\\UserStatus\\Controller\\PredefinedStatusController' => $baseDir.'/../lib/Controller/PredefinedStatusController.php', |
|
16 | + 'OCA\\UserStatus\\Controller\\StatusesController' => $baseDir.'/../lib/Controller/StatusesController.php', |
|
17 | + 'OCA\\UserStatus\\Controller\\UserStatusController' => $baseDir.'/../lib/Controller/UserStatusController.php', |
|
18 | + 'OCA\\UserStatus\\Dashboard\\UserStatusWidget' => $baseDir.'/../lib/Dashboard/UserStatusWidget.php', |
|
19 | + 'OCA\\UserStatus\\Db\\UserStatus' => $baseDir.'/../lib/Db/UserStatus.php', |
|
20 | + 'OCA\\UserStatus\\Db\\UserStatusMapper' => $baseDir.'/../lib/Db/UserStatusMapper.php', |
|
21 | + 'OCA\\UserStatus\\Exception\\InvalidClearAtException' => $baseDir.'/../lib/Exception/InvalidClearAtException.php', |
|
22 | + 'OCA\\UserStatus\\Exception\\InvalidMessageIdException' => $baseDir.'/../lib/Exception/InvalidMessageIdException.php', |
|
23 | + 'OCA\\UserStatus\\Exception\\InvalidStatusIconException' => $baseDir.'/../lib/Exception/InvalidStatusIconException.php', |
|
24 | + 'OCA\\UserStatus\\Exception\\InvalidStatusTypeException' => $baseDir.'/../lib/Exception/InvalidStatusTypeException.php', |
|
25 | + 'OCA\\UserStatus\\Exception\\StatusMessageTooLongException' => $baseDir.'/../lib/Exception/StatusMessageTooLongException.php', |
|
26 | + 'OCA\\UserStatus\\Listener\\BeforeTemplateRenderedListener' => $baseDir.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
27 | + 'OCA\\UserStatus\\Listener\\UserDeletedListener' => $baseDir.'/../lib/Listener/UserDeletedListener.php', |
|
28 | + 'OCA\\UserStatus\\Listener\\UserLiveStatusListener' => $baseDir.'/../lib/Listener/UserLiveStatusListener.php', |
|
29 | + 'OCA\\UserStatus\\Migration\\Version0001Date20200602134824' => $baseDir.'/../lib/Migration/Version0001Date20200602134824.php', |
|
30 | + 'OCA\\UserStatus\\Migration\\Version0002Date20200902144824' => $baseDir.'/../lib/Migration/Version0002Date20200902144824.php', |
|
31 | + 'OCA\\UserStatus\\Service\\EmojiService' => $baseDir.'/../lib/Service/EmojiService.php', |
|
32 | + 'OCA\\UserStatus\\Service\\JSDataService' => $baseDir.'/../lib/Service/JSDataService.php', |
|
33 | + 'OCA\\UserStatus\\Service\\PredefinedStatusService' => $baseDir.'/../lib/Service/PredefinedStatusService.php', |
|
34 | + 'OCA\\UserStatus\\Service\\StatusService' => $baseDir.'/../lib/Service/StatusService.php', |
|
35 | 35 | ); |
@@ -35,77 +35,77 @@ |
||
35 | 35 | */ |
36 | 36 | interface IUserStatus { |
37 | 37 | |
38 | - /** |
|
39 | - * @var string |
|
40 | - * @since 20.0.0 |
|
41 | - */ |
|
42 | - public const ONLINE = 'online'; |
|
38 | + /** |
|
39 | + * @var string |
|
40 | + * @since 20.0.0 |
|
41 | + */ |
|
42 | + public const ONLINE = 'online'; |
|
43 | 43 | |
44 | - /** |
|
45 | - * @var string |
|
46 | - * @since 20.0.0 |
|
47 | - */ |
|
48 | - public const AWAY = 'away'; |
|
44 | + /** |
|
45 | + * @var string |
|
46 | + * @since 20.0.0 |
|
47 | + */ |
|
48 | + public const AWAY = 'away'; |
|
49 | 49 | |
50 | - /** |
|
51 | - * @var string |
|
52 | - * @since 20.0.0 |
|
53 | - */ |
|
54 | - public const DND = 'dnd'; |
|
50 | + /** |
|
51 | + * @var string |
|
52 | + * @since 20.0.0 |
|
53 | + */ |
|
54 | + public const DND = 'dnd'; |
|
55 | 55 | |
56 | - /** |
|
57 | - * @var string |
|
58 | - * @since 20.0.0 |
|
59 | - */ |
|
60 | - public const OFFLINE = 'offline'; |
|
56 | + /** |
|
57 | + * @var string |
|
58 | + * @since 20.0.0 |
|
59 | + */ |
|
60 | + public const OFFLINE = 'offline'; |
|
61 | 61 | |
62 | - /** |
|
63 | - * @var string |
|
64 | - * @since 20.0.0 |
|
65 | - */ |
|
66 | - public const INVISIBLE = 'invisible'; |
|
62 | + /** |
|
63 | + * @var string |
|
64 | + * @since 20.0.0 |
|
65 | + */ |
|
66 | + public const INVISIBLE = 'invisible'; |
|
67 | 67 | |
68 | - /** |
|
69 | - * Get the user this status is connected to |
|
70 | - * |
|
71 | - * @return string |
|
72 | - * @since 20.0.0 |
|
73 | - */ |
|
74 | - public function getUserId():string; |
|
68 | + /** |
|
69 | + * Get the user this status is connected to |
|
70 | + * |
|
71 | + * @return string |
|
72 | + * @since 20.0.0 |
|
73 | + */ |
|
74 | + public function getUserId():string; |
|
75 | 75 | |
76 | - /** |
|
77 | - * Get the status |
|
78 | - * |
|
79 | - * It will return one of the constants defined above. |
|
80 | - * It will never return invisible. In case a user marked |
|
81 | - * themselves as invisible, it will return offline. |
|
82 | - * |
|
83 | - * @return string See IUserStatus constants |
|
84 | - * @since 20.0.0 |
|
85 | - */ |
|
86 | - public function getStatus():string; |
|
76 | + /** |
|
77 | + * Get the status |
|
78 | + * |
|
79 | + * It will return one of the constants defined above. |
|
80 | + * It will never return invisible. In case a user marked |
|
81 | + * themselves as invisible, it will return offline. |
|
82 | + * |
|
83 | + * @return string See IUserStatus constants |
|
84 | + * @since 20.0.0 |
|
85 | + */ |
|
86 | + public function getStatus():string; |
|
87 | 87 | |
88 | - /** |
|
89 | - * Get a custom message provided by the user |
|
90 | - * |
|
91 | - * @return string|null |
|
92 | - * @since 20.0.0 |
|
93 | - */ |
|
94 | - public function getMessage():?string; |
|
88 | + /** |
|
89 | + * Get a custom message provided by the user |
|
90 | + * |
|
91 | + * @return string|null |
|
92 | + * @since 20.0.0 |
|
93 | + */ |
|
94 | + public function getMessage():?string; |
|
95 | 95 | |
96 | - /** |
|
97 | - * Get a custom icon provided by the user |
|
98 | - * |
|
99 | - * @return string|null |
|
100 | - * @since 20.0.0 |
|
101 | - */ |
|
102 | - public function getIcon():?string; |
|
96 | + /** |
|
97 | + * Get a custom icon provided by the user |
|
98 | + * |
|
99 | + * @return string|null |
|
100 | + * @since 20.0.0 |
|
101 | + */ |
|
102 | + public function getIcon():?string; |
|
103 | 103 | |
104 | - /** |
|
105 | - * Gets the time that the custom status will be cleared at |
|
106 | - * |
|
107 | - * @return DateTimeImmutable|null |
|
108 | - * @since 20.0.0 |
|
109 | - */ |
|
110 | - public function getClearAt():?DateTimeImmutable; |
|
104 | + /** |
|
105 | + * Gets the time that the custom status will be cleared at |
|
106 | + * |
|
107 | + * @return DateTimeImmutable|null |
|
108 | + * @since 20.0.0 |
|
109 | + */ |
|
110 | + public function getClearAt():?DateTimeImmutable; |
|
111 | 111 | } |