Completed
Push — master ( a32ba7...f7592a )
by Maxence
05:20
created

ShareService::removeShareFromMember()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Circles - Bring cloud-users closer together.
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Maxence Lange <[email protected]>
9
 * @copyright 2017
10
 * @license GNU AGPL version 3 or any later version
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License as
14
 * published by the Free Software Foundation, either version 3 of the
15
 * License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU Affero General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU Affero General Public License
23
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
 *
25
 */
26
27
namespace OCA\Circles\Service;
28
29
30
use OCA\Circles\ISearch;
31
use OCA\Circles\Model\Member;
32
use OCP\IL10N;
33
use OCP\IUserManager;
34
35
class ShareService {
36
37
	/** @var IL10N */
38
	private $l10n;
39
40
	/** @var ConfigService */
41
	private $configService;
42
43
	/** @var MiscService */
44
	private $miscService;
45
46
	/**
47
	 * MembersService constructor.
48
	 *
49
	 * @param IL10N $l10n
50
	 * @param ConfigService $configService
51
	 * @param MiscService $miscService
52
	 */
53 View Code Duplication
	public function __construct(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
54
		IL10N $l10n, ConfigService $configService,
55
		MiscService $miscService
56
	) {
57
		$this->l10n = $l10n;
58
		$this->configService = $configService;
59
		$this->miscService = $miscService;
60
61
		$this->loadSearch();
0 ignored issues
show
Bug introduced by
The method loadSearch() does not seem to exist on object<OCA\Circles\Service\ShareService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
62
	}
63
64
65
	/**
66
	 * @param Member $member
67
	 */
68
	public function removeShareFromMember(Member $member) {
0 ignored issues
show
Unused Code introduced by
The parameter $member is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
69
70
71
72
	}
73
74
75
}