| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | protected function wpscreen(): array |
||
| 41 | { |
||
| 42 | $values = []; |
||
| 43 | if (is_admin() && $screen = get_current_screen()) { |
||
| 44 | $reflection = new \ReflectionClass($screen); |
||
| 45 | $properties = $reflection->getProperties(\ReflectionProperty::IS_PUBLIC); |
||
| 46 | foreach ($properties as $property) { |
||
| 47 | $values[$property->getName()] = $property->getValue($screen); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | return $values; |
||
| 51 | } |
||
| 53 |