Test Failed
Push — develop ( 6a684d...5c54e5 )
by Paul
08:51
created

Gerbera   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A md_standard_sort_fields() 0 6 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\ProfilePress\MemberDirectory;
4
5
use ProfilePress\Core\Themes\DragDrop\MemberDirectory\Gerbera as MemberDirectoryTheme;
0 ignored issues
show
Bug introduced by
The type ProfilePress\Core\Themes...MemberDirectory\Gerbera was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class Gerbera extends MemberDirectoryTheme
8
{
9
    public function md_standard_sort_fields(): array
10
    {
11
        $sortFields = parent::md_standard_sort_fields();
12
        $sortFields['highest_rated'] = esc_html_x('Highest Rated First', 'admin-text', 'site-reviews');
13
        $sortFields['lowest_rated'] = esc_html_x('Lowest Rated First', 'admin-text', 'site-reviews');
14
        return $sortFields;
15
    }
16
}
17