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