| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 6 | public function findWithinSection(Key $settingKey, Section $section) |
|
| 30 | { |
||
| 31 | 6 | $key = $settingKey->key(); |
|
| 32 | 6 | $sectionName = $section->name(); |
|
| 33 | |||
| 34 | 6 | if (!isset($this->values[$key][$sectionName])) { |
|
| 35 | 3 | return null; |
|
| 36 | } |
||
| 37 | |||
| 38 | 4 | return Setting::issue( |
|
| 39 | $settingKey, |
||
| 40 | 4 | $this->values[$key][$sectionName], |
|
| 41 | 4 | new Section($sectionName) |
|
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 65 |