| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function renderFields( $id ) |
||
| 17 | { |
||
| 18 | $fields = $this->getSettingFields( $this->normalizeSettingPath( $id )); |
||
| 19 | $rows = ''; |
||
| 20 | foreach( $fields as $name => $field ) { |
||
| 21 | $field = wp_parse_args( $field, ['name' => $name] ); |
||
| 22 | $rows.= (new Field( $field ))->build(); |
||
| 23 | } |
||
| 24 | glsr( Template::class )->render( 'pages/settings/'.$id, [ |
||
| 25 | 'context' => [ |
||
| 26 | 'rows' => $rows, |
||
| 27 | ], |
||
| 50 |