Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
34 | 1 | protected function loadLeagues() { |
|
35 | 1 | $leagueData = $this->sportsDbClient->doRequest('search_all_leagues.php', array('s' => $this->properties->id)); |
|
36 | 1 | if (isset($leagueData->countrys)) { |
|
37 | 1 | $this->update($this->entityManager->mapProperties((object) array('leagues' => $leagueData->countrys), $this->getEntityType())); |
|
38 | 1 | return; |
|
39 | } |
||
40 | 1 | throw new \Exception('Could not fully load sport with id ' . $this->properties->id . '.'); |
|
41 | } |
||
42 | |||
81 |