| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function json() { |
||
| 43 | $array = wp_array_slice_assoc( |
||
| 44 | (array) $this, array( |
||
|
|
|||
| 45 | 'id', |
||
| 46 | 'description', |
||
| 47 | 'priority', |
||
| 48 | 'type', |
||
| 49 | 'panel', |
||
| 50 | ) |
||
| 51 | ); |
||
| 52 | |||
| 53 | $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); |
||
| 54 | $array['content'] = $this->get_content(); |
||
| 55 | $array['active'] = $this->active(); |
||
| 56 | $array['instanceNumber'] = $this->instance_number; |
||
| 57 | |||
| 58 | return $array; |
||
| 59 | } |
||
| 61 |
For a function calls that spawns multiple lines, the coding style suggests to split arguments to separate lines like this: