@@ -11,15 +11,15 @@ |
||
11 | 11 | */ |
12 | 12 | class Version1002Date20170926101419 extends BigIntMigration { |
13 | 13 | |
14 | - /** |
|
15 | - * @return array Returns an array with the following structure |
|
16 | - * ['table1' => ['column1', 'column2'], ...] |
|
17 | - * @since 13.0.0 |
|
18 | - */ |
|
19 | - protected function getColumnsByTable() { |
|
20 | - return [ |
|
21 | - 'twofactor_backupcodes' => ['id'], |
|
22 | - ]; |
|
23 | - } |
|
14 | + /** |
|
15 | + * @return array Returns an array with the following structure |
|
16 | + * ['table1' => ['column1', 'column2'], ...] |
|
17 | + * @since 13.0.0 |
|
18 | + */ |
|
19 | + protected function getColumnsByTable() { |
|
20 | + return [ |
|
21 | + 'twofactor_backupcodes' => ['id'], |
|
22 | + ]; |
|
23 | + } |
|
24 | 24 | |
25 | 25 | } |
@@ -11,25 +11,25 @@ |
||
11 | 11 | */ |
12 | 12 | class Version1004Date20170926103422 extends BigIntMigration { |
13 | 13 | |
14 | - /** |
|
15 | - * @return array Returns an array with the following structure |
|
16 | - * ['table1' => ['column1', 'column2'], ...] |
|
17 | - * @since 13.0.0 |
|
18 | - */ |
|
19 | - protected function getColumnsByTable() { |
|
20 | - return [ |
|
21 | - 'addressbooks' => ['id'], |
|
22 | - 'addressbookchanges' => ['id', 'addressbookid'], |
|
23 | - 'calendars' => ['id'], |
|
24 | - 'calendarchanges' => ['id', 'calendarid'], |
|
25 | - 'calendarobjects' => ['id', 'calendarid'], |
|
26 | - 'calendarobjects_props' => ['id', 'calendarid', 'objectid'], |
|
27 | - 'calendarsubscriptions' => ['id'], |
|
28 | - 'cards' => ['id', 'addressbookid'], |
|
29 | - 'cards_properties' => ['id', 'addressbookid', 'cardid'], |
|
30 | - 'dav_shares' => ['id', 'resourceid'], |
|
31 | - 'schedulingobjects' => ['id'], |
|
32 | - ]; |
|
33 | - } |
|
14 | + /** |
|
15 | + * @return array Returns an array with the following structure |
|
16 | + * ['table1' => ['column1', 'column2'], ...] |
|
17 | + * @since 13.0.0 |
|
18 | + */ |
|
19 | + protected function getColumnsByTable() { |
|
20 | + return [ |
|
21 | + 'addressbooks' => ['id'], |
|
22 | + 'addressbookchanges' => ['id', 'addressbookid'], |
|
23 | + 'calendars' => ['id'], |
|
24 | + 'calendarchanges' => ['id', 'calendarid'], |
|
25 | + 'calendarobjects' => ['id', 'calendarid'], |
|
26 | + 'calendarobjects_props' => ['id', 'calendarid', 'objectid'], |
|
27 | + 'calendarsubscriptions' => ['id'], |
|
28 | + 'cards' => ['id', 'addressbookid'], |
|
29 | + 'cards_properties' => ['id', 'addressbookid', 'cardid'], |
|
30 | + 'dav_shares' => ['id', 'resourceid'], |
|
31 | + 'schedulingobjects' => ['id'], |
|
32 | + ]; |
|
33 | + } |
|
34 | 34 | |
35 | 35 | } |
@@ -25,31 +25,31 @@ |
||
25 | 25 | use OCP\Remote\ICredentials; |
26 | 26 | |
27 | 27 | class Credentials implements ICredentials { |
28 | - /** @var string */ |
|
29 | - private $user; |
|
30 | - /** @var string */ |
|
31 | - private $password; |
|
28 | + /** @var string */ |
|
29 | + private $user; |
|
30 | + /** @var string */ |
|
31 | + private $password; |
|
32 | 32 | |
33 | - /** |
|
34 | - * @param string $user |
|
35 | - * @param string $password |
|
36 | - */ |
|
37 | - public function __construct($user, $password) { |
|
38 | - $this->user = $user; |
|
39 | - $this->password = $password; |
|
40 | - } |
|
33 | + /** |
|
34 | + * @param string $user |
|
35 | + * @param string $password |
|
36 | + */ |
|
37 | + public function __construct($user, $password) { |
|
38 | + $this->user = $user; |
|
39 | + $this->password = $password; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * @return string |
|
44 | - */ |
|
45 | - public function getUsername() { |
|
46 | - return $this->user; |
|
47 | - } |
|
42 | + /** |
|
43 | + * @return string |
|
44 | + */ |
|
45 | + public function getUsername() { |
|
46 | + return $this->user; |
|
47 | + } |
|
48 | 48 | |
49 | - /** |
|
50 | - * @return string |
|
51 | - */ |
|
52 | - public function getPassword() { |
|
53 | - return $this->password; |
|
54 | - } |
|
49 | + /** |
|
50 | + * @return string |
|
51 | + */ |
|
52 | + public function getPassword() { |
|
53 | + return $this->password; |
|
54 | + } |
|
55 | 55 | } |
@@ -27,11 +27,11 @@ |
||
27 | 27 | * @since 13.0.0 |
28 | 28 | */ |
29 | 29 | interface IUserApi { |
30 | - /** |
|
31 | - * @param string $userId |
|
32 | - * @return IUser |
|
33 | - * |
|
34 | - * @since 13.0.0 |
|
35 | - */ |
|
36 | - public function getUser($userId); |
|
30 | + /** |
|
31 | + * @param string $userId |
|
32 | + * @return IUser |
|
33 | + * |
|
34 | + * @since 13.0.0 |
|
35 | + */ |
|
36 | + public function getUser($userId); |
|
37 | 37 | } |
@@ -25,10 +25,10 @@ |
||
25 | 25 | * @since 13.0.0 |
26 | 26 | */ |
27 | 27 | interface ICapabilitiesApi { |
28 | - /** |
|
29 | - * @return array The capabilities in the form of [$appId => [$capability => $value]] |
|
30 | - * |
|
31 | - * @since 13.0.0 |
|
32 | - */ |
|
33 | - public function getCapabilities(); |
|
28 | + /** |
|
29 | + * @return array The capabilities in the form of [$appId => [$capability => $value]] |
|
30 | + * |
|
31 | + * @since 13.0.0 |
|
32 | + */ |
|
33 | + public function getCapabilities(); |
|
34 | 34 | } |
@@ -28,12 +28,12 @@ |
||
28 | 28 | * @since 13.0.0 |
29 | 29 | */ |
30 | 30 | interface IApiFactory { |
31 | - /** |
|
32 | - * @param IInstance $instance |
|
33 | - * @param ICredentials $credentials |
|
34 | - * @return IApiCollection |
|
35 | - * |
|
36 | - * @since 13.0.0 |
|
37 | - */ |
|
38 | - public function getApiCollection(IInstance $instance, ICredentials $credentials); |
|
31 | + /** |
|
32 | + * @param IInstance $instance |
|
33 | + * @param ICredentials $credentials |
|
34 | + * @return IApiCollection |
|
35 | + * |
|
36 | + * @since 13.0.0 |
|
37 | + */ |
|
38 | + public function getApiCollection(IInstance $instance, ICredentials $credentials); |
|
39 | 39 | } |
@@ -27,17 +27,17 @@ |
||
27 | 27 | * @since 13.0.0 |
28 | 28 | */ |
29 | 29 | interface IApiCollection { |
30 | - /** |
|
31 | - * @return IUserApi |
|
32 | - * |
|
33 | - * @since 13.0.0 |
|
34 | - */ |
|
35 | - public function getUserApi(); |
|
30 | + /** |
|
31 | + * @return IUserApi |
|
32 | + * |
|
33 | + * @since 13.0.0 |
|
34 | + */ |
|
35 | + public function getUserApi(); |
|
36 | 36 | |
37 | - /** |
|
38 | - * @return ICapabilitiesApi |
|
39 | - * |
|
40 | - * @since 13.0.0 |
|
41 | - */ |
|
42 | - public function getCapabilitiesApi(); |
|
37 | + /** |
|
38 | + * @return ICapabilitiesApi |
|
39 | + * |
|
40 | + * @since 13.0.0 |
|
41 | + */ |
|
42 | + public function getCapabilitiesApi(); |
|
43 | 43 | } |
@@ -27,17 +27,17 @@ |
||
27 | 27 | * @since 13.0.0 |
28 | 28 | */ |
29 | 29 | interface ICredentials { |
30 | - /** |
|
31 | - * @return string |
|
32 | - * |
|
33 | - * @since 13.0.0 |
|
34 | - */ |
|
35 | - public function getUsername(); |
|
30 | + /** |
|
31 | + * @return string |
|
32 | + * |
|
33 | + * @since 13.0.0 |
|
34 | + */ |
|
35 | + public function getUsername(); |
|
36 | 36 | |
37 | - /** |
|
38 | - * @return string |
|
39 | - * |
|
40 | - * @since 13.0.0 |
|
41 | - */ |
|
42 | - public function getPassword(); |
|
37 | + /** |
|
38 | + * @return string |
|
39 | + * |
|
40 | + * @since 13.0.0 |
|
41 | + */ |
|
42 | + public function getPassword(); |
|
43 | 43 | } |
@@ -27,94 +27,94 @@ |
||
27 | 27 | * @since 13.0.0 |
28 | 28 | */ |
29 | 29 | interface IUser { |
30 | - /** |
|
31 | - * @return string |
|
32 | - * |
|
33 | - * @since 13.0.0 |
|
34 | - */ |
|
35 | - public function getUserId(); |
|
30 | + /** |
|
31 | + * @return string |
|
32 | + * |
|
33 | + * @since 13.0.0 |
|
34 | + */ |
|
35 | + public function getUserId(); |
|
36 | 36 | |
37 | - /** |
|
38 | - * @return string |
|
39 | - * |
|
40 | - * @since 13.0.0 |
|
41 | - */ |
|
42 | - public function getEmail(); |
|
37 | + /** |
|
38 | + * @return string |
|
39 | + * |
|
40 | + * @since 13.0.0 |
|
41 | + */ |
|
42 | + public function getEmail(); |
|
43 | 43 | |
44 | - /** |
|
45 | - * @return string |
|
46 | - * |
|
47 | - * @since 13.0.0 |
|
48 | - */ |
|
49 | - public function getDisplayName(); |
|
44 | + /** |
|
45 | + * @return string |
|
46 | + * |
|
47 | + * @since 13.0.0 |
|
48 | + */ |
|
49 | + public function getDisplayName(); |
|
50 | 50 | |
51 | - /** |
|
52 | - * @return string |
|
53 | - * |
|
54 | - * @since 13.0.0 |
|
55 | - */ |
|
56 | - public function getPhone(); |
|
51 | + /** |
|
52 | + * @return string |
|
53 | + * |
|
54 | + * @since 13.0.0 |
|
55 | + */ |
|
56 | + public function getPhone(); |
|
57 | 57 | |
58 | - /** |
|
59 | - * @return string |
|
60 | - * |
|
61 | - * @since 13.0.0 |
|
62 | - */ |
|
63 | - public function getAddress(); |
|
58 | + /** |
|
59 | + * @return string |
|
60 | + * |
|
61 | + * @since 13.0.0 |
|
62 | + */ |
|
63 | + public function getAddress(); |
|
64 | 64 | |
65 | - /** |
|
66 | - * @return string |
|
67 | - * |
|
68 | - * @since 13.0.0 |
|
69 | - */ |
|
70 | - public function getWebsite(); |
|
65 | + /** |
|
66 | + * @return string |
|
67 | + * |
|
68 | + * @since 13.0.0 |
|
69 | + */ |
|
70 | + public function getWebsite(); |
|
71 | 71 | |
72 | - /** |
|
73 | - * @return string |
|
74 | - * |
|
75 | - * @since 13.0.0 |
|
76 | - */ |
|
77 | - public function getTwitter(); |
|
72 | + /** |
|
73 | + * @return string |
|
74 | + * |
|
75 | + * @since 13.0.0 |
|
76 | + */ |
|
77 | + public function getTwitter(); |
|
78 | 78 | |
79 | - /** |
|
80 | - * @return string[] |
|
81 | - * |
|
82 | - * @since 13.0.0 |
|
83 | - */ |
|
84 | - public function getGroups(); |
|
79 | + /** |
|
80 | + * @return string[] |
|
81 | + * |
|
82 | + * @since 13.0.0 |
|
83 | + */ |
|
84 | + public function getGroups(); |
|
85 | 85 | |
86 | - /** |
|
87 | - * @return string |
|
88 | - * |
|
89 | - * @since 13.0.0 |
|
90 | - */ |
|
91 | - public function getLanguage(); |
|
86 | + /** |
|
87 | + * @return string |
|
88 | + * |
|
89 | + * @since 13.0.0 |
|
90 | + */ |
|
91 | + public function getLanguage(); |
|
92 | 92 | |
93 | - /** |
|
94 | - * @return int |
|
95 | - * |
|
96 | - * @since 13.0.0 |
|
97 | - */ |
|
98 | - public function getUsedSpace(); |
|
93 | + /** |
|
94 | + * @return int |
|
95 | + * |
|
96 | + * @since 13.0.0 |
|
97 | + */ |
|
98 | + public function getUsedSpace(); |
|
99 | 99 | |
100 | - /** |
|
101 | - * @return int |
|
102 | - * |
|
103 | - * @since 13.0.0 |
|
104 | - */ |
|
105 | - public function getFreeSpace(); |
|
100 | + /** |
|
101 | + * @return int |
|
102 | + * |
|
103 | + * @since 13.0.0 |
|
104 | + */ |
|
105 | + public function getFreeSpace(); |
|
106 | 106 | |
107 | - /** |
|
108 | - * @return int |
|
109 | - * |
|
110 | - * @since 13.0.0 |
|
111 | - */ |
|
112 | - public function getTotalSpace(); |
|
107 | + /** |
|
108 | + * @return int |
|
109 | + * |
|
110 | + * @since 13.0.0 |
|
111 | + */ |
|
112 | + public function getTotalSpace(); |
|
113 | 113 | |
114 | - /** |
|
115 | - * @return int |
|
116 | - * |
|
117 | - * @since 13.0.0 |
|
118 | - */ |
|
119 | - public function getQuota(); |
|
114 | + /** |
|
115 | + * @return int |
|
116 | + * |
|
117 | + * @since 13.0.0 |
|
118 | + */ |
|
119 | + public function getQuota(); |
|
120 | 120 | } |