@@ -37,38 +37,38 @@ |
||
37 | 37 | |
38 | 38 | interface ICloudFederationProvider { |
39 | 39 | |
40 | - /** |
|
41 | - * get the name of the share type, handled by this provider |
|
42 | - * |
|
43 | - * @return string |
|
44 | - * |
|
45 | - * @since 14.0.0 |
|
46 | - */ |
|
47 | - public function getShareType(); |
|
40 | + /** |
|
41 | + * get the name of the share type, handled by this provider |
|
42 | + * |
|
43 | + * @return string |
|
44 | + * |
|
45 | + * @since 14.0.0 |
|
46 | + */ |
|
47 | + public function getShareType(); |
|
48 | 48 | |
49 | - /** |
|
50 | - * share received from another server |
|
51 | - * |
|
52 | - * @param ICloudFederationShare $share |
|
53 | - * @return string provider specific unique ID of the share |
|
54 | - * |
|
55 | - * @throws ProviderCouldNotAddShareException |
|
56 | - * |
|
57 | - * @since 14.0.0 |
|
58 | - */ |
|
59 | - public function shareReceived(ICloudFederationShare $share); |
|
49 | + /** |
|
50 | + * share received from another server |
|
51 | + * |
|
52 | + * @param ICloudFederationShare $share |
|
53 | + * @return string provider specific unique ID of the share |
|
54 | + * |
|
55 | + * @throws ProviderCouldNotAddShareException |
|
56 | + * |
|
57 | + * @since 14.0.0 |
|
58 | + */ |
|
59 | + public function shareReceived(ICloudFederationShare $share); |
|
60 | 60 | |
61 | - /** |
|
62 | - * notification received from another server |
|
63 | - * |
|
64 | - * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
65 | - * @param array $message provider specific notification |
|
66 | - * |
|
67 | - * @throws ShareNotFoundException |
|
68 | - * @throws ActionNotSupportedException |
|
69 | - * |
|
70 | - * @since 14.0.0 |
|
71 | - */ |
|
72 | - public function notificationReceived($notificationType, array $message); |
|
61 | + /** |
|
62 | + * notification received from another server |
|
63 | + * |
|
64 | + * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
65 | + * @param array $message provider specific notification |
|
66 | + * |
|
67 | + * @throws ShareNotFoundException |
|
68 | + * @throws ActionNotSupportedException |
|
69 | + * |
|
70 | + * @since 14.0.0 |
|
71 | + */ |
|
72 | + public function notificationReceived($notificationType, array $message); |
|
73 | 73 | |
74 | 74 | } |
@@ -25,15 +25,15 @@ |
||
25 | 25 | |
26 | 26 | class ActionNotSupportedException extends HintException { |
27 | 27 | |
28 | - /** |
|
29 | - * ActionNotSupportedException constructor. |
|
30 | - * |
|
31 | - */ |
|
32 | - public function __construct($action) { |
|
33 | - $l = \OC::$server->getL10N('federation'); |
|
34 | - $message = 'Action "' . $action . '" not supported or implemented.'; |
|
35 | - $hint = $l->t('Action "%s" not supported or implemented.', [$action]); |
|
36 | - parent::__construct($message, $hint); |
|
37 | - } |
|
28 | + /** |
|
29 | + * ActionNotSupportedException constructor. |
|
30 | + * |
|
31 | + */ |
|
32 | + public function __construct($action) { |
|
33 | + $l = \OC::$server->getL10N('federation'); |
|
34 | + $message = 'Action "' . $action . '" not supported or implemented.'; |
|
35 | + $hint = $l->t('Action "%s" not supported or implemented.', [$action]); |
|
36 | + parent::__construct($message, $hint); |
|
37 | + } |
|
38 | 38 | |
39 | 39 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function __construct($action) { |
33 | 33 | $l = \OC::$server->getL10N('federation'); |
34 | - $message = 'Action "' . $action . '" not supported or implemented.'; |
|
34 | + $message = 'Action "'.$action.'" not supported or implemented.'; |
|
35 | 35 | $hint = $l->t('Action "%s" not supported or implemented.', [$action]); |
36 | 36 | parent::__construct($message, $hint); |
37 | 37 | } |