@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @param SharingFrame $frame |
183 | 183 | * @param DeprecatedCircle $circle |
184 | - * @param $broadcast |
|
184 | + * @param string|null $broadcast |
|
185 | 185 | */ |
186 | 186 | private function generateHeaders(SharingFrame $frame, DeprecatedCircle $circle, $broadcast) { |
187 | 187 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * Please use getFrameFromCircle(); |
221 | 221 | * |
222 | 222 | * @param string $circleUniqueId |
223 | - * @param $viewerId |
|
223 | + * @param string $viewerId |
|
224 | 224 | * |
225 | 225 | * @return SharingFrame[] |
226 | 226 | * @throws CircleDoesNotExistException |
@@ -38,7 +38,6 @@ |
||
38 | 38 | use OCA\Circles\Exceptions\CircleDoesNotExistException; |
39 | 39 | use OCA\Circles\Exceptions\ConfigNoCircleAvailableException; |
40 | 40 | use OCA\Circles\Exceptions\MemberDoesNotExistException; |
41 | -use OCA\Circles\Exceptions\PayloadDeliveryException; |
|
42 | 41 | use OCA\Circles\Exceptions\SharingFrameAlreadyDeliveredException; |
43 | 42 | use OCA\Circles\Exceptions\SharingFrameAlreadyExistException; |
44 | 43 | use OCA\Circles\Exceptions\SharingFrameDoesNotExistException; |
@@ -178,7 +178,7 @@ |
||
178 | 178 | |
179 | 179 | /** |
180 | 180 | * @param array $arr |
181 | - * @param $key |
|
181 | + * @param string $key |
|
182 | 182 | * @param int $type |
183 | 183 | * |
184 | 184 | * @return null|DeprecatedMember |
@@ -41,6 +41,9 @@ |
||
41 | 41 | class DeprecatedMember extends BaseMember { |
42 | 42 | |
43 | 43 | |
44 | + /** |
|
45 | + * @param integer $circleType |
|
46 | + */ |
|
44 | 47 | public function inviteToCircle($circleType) { |
45 | 48 | |
46 | 49 | if ($circleType === 0) { |
@@ -31,9 +31,7 @@ |
||
31 | 31 | use OCA\Circles\Exceptions\MemberCantJoinCircleException; |
32 | 32 | use OCA\Circles\Exceptions\MemberDoesNotExistException; |
33 | 33 | use OCA\Circles\Exceptions\MemberIsBlockedException; |
34 | -use OCA\Circles\Exceptions\MemberIsNotAdminException; |
|
35 | 34 | use OCA\Circles\Exceptions\MemberIsNotModeratorException; |
36 | -use OCA\Circles\Exceptions\MemberIsNotOwnerException; |
|
37 | 35 | use OCA\Circles\Exceptions\MemberIsOwnerException; |
38 | 36 | use OCA\Circles\Exceptions\MemberTypeCantEditLevelException; |
39 | 37 | use OCA\Circles\Exceptions\ModeratorIsNotHighEnoughException; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * @param string $circleUniqueId |
110 | 110 | * @param string $groupId |
111 | 111 | * |
112 | - * @return array |
|
112 | + * @return DeprecatedMember[] |
|
113 | 113 | * @throws \Exception |
114 | 114 | */ |
115 | 115 | public function linkGroup($circleUniqueId, $groupId) { |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * Check if a fresh member can be generated (by linkGroup) |
167 | 167 | * |
168 | - * @param $circleId |
|
169 | - * @param $groupId |
|
168 | + * @param string $circleId |
|
169 | + * @param string $groupId |
|
170 | 170 | * |
171 | 171 | * @return null|DeprecatedMember |
172 | 172 | * @throws MemberAlreadyExistsException |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * @param string $groupId |
203 | 203 | * @param int $level |
204 | 204 | * |
205 | - * @return array |
|
205 | + * @return DeprecatedMember[] |
|
206 | 206 | * @throws \Exception |
207 | 207 | */ |
208 | 208 | public function levelGroup($circleUniqueId, $groupId, $level) { |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * @param DeprecatedCircle $circle |
245 | 245 | * @param DeprecatedMember $group |
246 | - * @param $level |
|
246 | + * @param integer $level |
|
247 | 247 | * |
248 | 248 | * @throws \Exception |
249 | 249 | */ |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * @param string $circleUniqueId |
271 | 271 | * @param string $groupId |
272 | 272 | * |
273 | - * @return array |
|
273 | + * @return DeprecatedMember[] |
|
274 | 274 | * @throws \Exception |
275 | 275 | */ |
276 | 276 | public function unlinkGroup($circleUniqueId, $groupId) { |
@@ -349,8 +349,8 @@ discard block |
||
349 | 349 | /** |
350 | 350 | * Verify if a local account is valid. |
351 | 351 | * |
352 | - * @param $ident |
|
353 | - * @param $type |
|
352 | + * @param string $ident |
|
353 | + * @param integer $type |
|
354 | 354 | * |
355 | 355 | * @param string $instance |
356 | 356 | * |
@@ -401,8 +401,8 @@ discard block |
||
401 | 401 | /** |
402 | 402 | * Verify if a contact exist in current user address books. |
403 | 403 | * |
404 | - * @param $ident |
|
405 | - * @param $type |
|
404 | + * @param string $ident |
|
405 | + * @param integer $type |
|
406 | 406 | * |
407 | 407 | * @throws NoUserException |
408 | 408 | * @throws EmailAccountInvalidFormatException |
@@ -494,8 +494,8 @@ discard block |
||
494 | 494 | * Will return any data of a user related to a circle (as a Member). User can be a 'non-member' |
495 | 495 | * Viewer needs to be at least Member of the Circle |
496 | 496 | * |
497 | - * @param $circleId |
|
498 | - * @param $userId |
|
497 | + * @param string $circleId |
|
498 | + * @param string $userId |
|
499 | 499 | * @param $type |
500 | 500 | * @param bool $forceAll |
501 | 501 | * |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | * @param int $level |
552 | 552 | * @param bool $force |
553 | 553 | * |
554 | - * @return array |
|
554 | + * @return DeprecatedMember[] |
|
555 | 555 | * @throws CircleDoesNotExistException |
556 | 556 | * @throws CircleTypeNotValidException |
557 | 557 | * @throws ConfigNoCircleAvailableException |
@@ -27,7 +27,6 @@ |
||
27 | 27 | namespace OCA\Circles\Service; |
28 | 28 | |
29 | 29 | |
30 | -use daita\MySmallPhpTools\Exceptions\RequestNetworkException; |
|
31 | 30 | use daita\MySmallPhpTools\Exceptions\RequestResultNotJsonException; |
32 | 31 | use daita\MySmallPhpTools\Model\Nextcloud\nc22\NC22Request; |
33 | 32 | use daita\MySmallPhpTools\Model\Request; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @param mixed $class |
|
114 | + * @param string $class |
|
115 | 115 | * |
116 | 116 | * @return self |
117 | 117 | */ |
@@ -110,7 +110,7 @@ |
||
110 | 110 | |
111 | 111 | |
112 | 112 | /** |
113 | - * @param array $ids |
|
113 | + * @param string[] $ids |
|
114 | 114 | * |
115 | 115 | * @throws InvalidIdException |
116 | 116 | */ |
@@ -41,7 +41,6 @@ |
||
41 | 41 | use OCA\Circles\Service\MembersService; |
42 | 42 | use OCA\Circles\Service\SharingFrameService; |
43 | 43 | use OCP\AppFramework\QueryException; |
44 | -use OCP\Util; |
|
45 | 44 | |
46 | 45 | class Circles { |
47 | 46 |
@@ -46,7 +46,6 @@ |
||
46 | 46 | use Symfony\Component\Console\Input\InputOption; |
47 | 47 | use Symfony\Component\Console\Output\OutputInterface; |
48 | 48 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
49 | -use Symfony\Component\Process\Process; |
|
50 | 49 | |
51 | 50 | |
52 | 51 | /** |