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