Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
13 | 1 | protected function defaults() |
|
14 | { |
||
15 | 1 | $user = wp_get_current_user(); |
|
16 | return [ |
||
17 | 1 | 'assign_to' => '', |
|
18 | 1 | 'category' => '', |
|
19 | 1 | 'content' => '', |
|
20 | 1 | 'email' => $user->exists() ? $user->user_email : '', |
|
21 | 1 | 'form_id' => '', |
|
22 | 1 | 'ip_address' => glsr( Helper::class )->getIpAddress(), |
|
23 | 1 | 'name' => $user->exists() ? $user->display_name : '', |
|
24 | 1 | 'rating' => '0', |
|
25 | 1 | 'terms' => '', |
|
26 | 1 | 'title' => '', |
|
27 | ]; |
||
30 |