| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | 13 | public function getBoard(String $boardName) |
|
| 36 | { |
||
| 37 | 13 | $boards = $this->client->api('member')->boards()->all('me'); |
|
| 38 | 13 | foreach ($boards as $board) { |
|
| 39 | 13 | if ($board['name'] == $boardName) { |
|
| 40 | 13 | $boardId = $board['id']; |
|
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | 13 | $manager = new Manager($this->client); |
|
| 45 | 13 | if (!isset($boardId)) { |
|
| 46 | 3 | return; |
|
| 47 | } |
||
| 48 | |||
| 49 | 10 | return $manager->getBoard($boardId); |
|
| 50 | } |
||
| 51 | } |
||
| 52 |