This code seems to be duplicated across 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...
40
6
if ($list['name'] == $listName) {
41
6
return new Cardlist($this->client, $list['id']);
42
}
43
}
44
45
1
return;
46
}
47
48
/**
49
* @param string $listName
50
* @param array $boards
51
*
52
* @return Cardlist|void
53
*
54
* @throws \Exception
55
*/
56
7
public function getList(String $listName, array $boards)
57
{
58
7
$lists = [];
59
7
foreach ($boards as $board) {
60
7
if (!($board instanceof Board)) {
61
1
throw new \Exception('Function ListManager::getList expect an array of Board as second argument');
This code seems to be duplicated across 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.
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.