1 | <?php |
||
18 | class ProjectService extends AbstractService implements \Marek\Toggable\API\Toggl\ProjectServiceInterface |
||
19 | { |
||
20 | /** |
||
21 | * @inheritDoc |
||
22 | */ |
||
23 | 2 | public function getProjectData($projectId) |
|
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | 1 | public function createProject(\Marek\Toggable\API\Toggl\Values\Project\Project $project) |
|
53 | |||
54 | /** |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | 1 | public function updateProject(\Marek\Toggable\API\Toggl\Values\Project\Project $project) |
|
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | 2 | public function deleteProject($projectId) |
|
87 | |||
88 | /** |
||
89 | * @inheritDoc |
||
90 | */ |
||
91 | public function getProjectUsers($projectId) { |
||
94 | |||
95 | /** |
||
96 | * @inheritDoc |
||
97 | */ |
||
98 | public function getProjectTasks($projectId) { |
||
101 | |||
102 | /** |
||
103 | * @inheritDoc |
||
104 | */ |
||
105 | public function deleteMultipleProjects(array $projectIds) { |
||
108 | |||
109 | /** |
||
110 | * @inheritDoc |
||
111 | */ |
||
112 | 3 | protected function delegateHydrateAndReturnResponse(\Marek\Toggable\API\Http\Request\RequestInterface $request) |
|
122 | } |
||
123 |
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.