Cancelled
Branch master (8cb5b2)
by Christopher
04:16
created

Search::fulltext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
0 ignored issues
show
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
2
namespace Triadev\Leopard\Business\Dsl;
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
4
use Illuminate\Database\Eloquent\Model;
5
use ONGR\ElasticsearchDSL\Sort\FieldSort;
6
use Triadev\Leopard\Busines\Dsl\Query\Specialized;
7
use Triadev\Leopard\Business\Dsl\Query\Compound;
8
use Triadev\Leopard\Business\Dsl\Query\Fulltext;
9
use Triadev\Leopard\Business\Dsl\Query\Geo;
10
use Triadev\Leopard\Business\Dsl\Query\InnerHit;
11
use Triadev\Leopard\Business\Dsl\Query\Joining;
12
use Triadev\Leopard\Business\Filler\EloquentFiller;
13
use Triadev\Leopard\Business\Helper\IsModelSearchable;
14
use Triadev\Leopard\Contract\ElasticsearchManagerContract;
15
use Triadev\Leopard\Contract\FillerContract;
16
use Triadev\Leopard\Searchable;
17
use Triadev\Leopard\Model\SearchResult;
18
use Triadev\Leopard\Business\Dsl\Query\TermLevel;
19
20
class Search extends AbstractQuery
0 ignored issues
show
Coding Style Documentation introduced by
Missing class doc comment
Loading history...
21
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class Search
Loading history...
22
    use IsModelSearchable;
23
    
24
    /** @var string */
0 ignored issues
show
Coding Style introduced by
The open comment tag must be the only content on the line
Loading history...
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
The close comment tag must be the only content on the line
Loading history...
25
    private $index;
0 ignored issues
show
Coding Style introduced by
Private member variable "index" must contain a leading underscore
Loading history...
Coding Style introduced by
Private member variable "index" must be prefixed with an underscore
Loading history...
26
    
27
    /** @var string */
0 ignored issues
show
Coding Style introduced by
The open comment tag must be the only content on the line
Loading history...
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
The close comment tag must be the only content on the line
Loading history...
28
    private $type;
0 ignored issues
show
Coding Style introduced by
Private member variable "type" must contain a leading underscore
Loading history...
Coding Style introduced by
Private member variable "type" must be prefixed with an underscore
Loading history...
29
    
30
    /** @var Model */
0 ignored issues
show
Coding Style introduced by
The open comment tag must be the only content on the line
Loading history...
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
The close comment tag must be the only content on the line
Loading history...
31
    private $model;
0 ignored issues
show
Coding Style introduced by
Private member variable "model" must contain a leading underscore
Loading history...
Coding Style introduced by
Private member variable "model" must be prefixed with an underscore
Loading history...
32
    
33
    /** @var ElasticsearchManagerContract */
0 ignored issues
show
Coding Style introduced by
The open comment tag must be the only content on the line
Loading history...
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
The close comment tag must be the only content on the line
Loading history...
34
    private $manager;
0 ignored issues
show
Coding Style introduced by
Private member variable "manager" must contain a leading underscore
Loading history...
Coding Style introduced by
Private member variable "manager" must be prefixed with an underscore
Loading history...
35
    
36
    /**
37
     * Search constructor.
38
     * @param ElasticsearchManagerContract $manager
0 ignored issues
show
Coding Style introduced by
There must be exactly one blank line before the tags in a doc comment
Loading history...
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 7 spaces after parameter type; 1 found
Loading history...
39
     * @param \ONGR\ElasticsearchDSL\Search|null $search
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
40
     */
41 29
    public function __construct(
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines before function; 1 found
Loading history...
42
        ElasticsearchManagerContract $manager,
43
        ?\ONGR\ElasticsearchDSL\Search $search = null
0 ignored issues
show
Coding Style introduced by
Incorrect spacing between argument "$search" and equals sign; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between default value and equals sign for argument "$search"; expected 0 but found 1
Loading history...
44
    ) {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on a new line
Loading history...
45 29
        parent::__construct($search);
46
        
47 29
        $this->manager = $manager;
48
        
49 29
        $this->index = config('leopard.index');
50 29
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end __construct()
Loading history...
51
    
52
    /**
53
     * Overwrite default index
54
     *
55
     * @param string $index
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
56
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
57
     */
58 3
    public function overwriteIndex(string $index) : Search
59
    {
60 3
        $this->index = $index;
61 3
        return $this;
62
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end overwriteIndex()
Loading history...
63
    
64
    /**
65
     * Get index
66
     *
67
     * @return string
68
     */
69 1
    public function getIndex() : string
70
    {
71 1
        return $this->index;
72
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getIndex()
Loading history...
73
    
74
    /**
75
     * Overwrite default type
76
     *
77
     * @param string $type
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
78
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
79
     */
80 3
    public function overwriteType(string $type) : Search
81
    {
82 3
        $this->type = $type;
83 3
        return $this;
84
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end overwriteType()
Loading history...
85
    
86
    /**
87
     * Get type
88
     *
89
     * @return string|null
90
     */
91 1
    public function getType() : ?string
92
    {
93 1
        return $this->type;
94
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getType()
Loading history...
95
    
96
    /**
97
     * Add model
98
     *
99
     * @param Model|Searchable $model
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
100
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
101
     *
102
     * @throws \InvalidArgumentException
0 ignored issues
show
introduced by
Comment missing for @throws tag in function comment
Loading history...
103
     */
104 3
    public function model(Model $model) : Search
105
    {
106 3
        $this->isModelSearchable($model);
107
        
108 2
        $this->model = $model;
109
        
110 2
        if (is_string($index = $model->getDocumentIndex())) {
0 ignored issues
show
Coding Style introduced by
Assignments must be the first block of code on a line
Loading history...
111 2
            $this->overwriteIndex($index);
112
        }
113
    
114 2
        $this->overwriteType($model->getDocumentType());
1 ignored issue
show
Bug introduced by
It seems like $model->getDocumentType() can also be of type Illuminate\Database\Eloquent\Builder; however, parameter $type of Triadev\Leopard\Business...Search::overwriteType() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

114
        $this->overwriteType(/** @scrutinizer ignore-type */ $model->getDocumentType());
Loading history...
115
        
116 2
        return $this;
117
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end model()
Loading history...
118
    
119
    /**
120
     * Get
121
     *
122
     * @param FillerContract|null $filler
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
123
     * @return SearchResult
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
124
     */
125 2
    public function get(?FillerContract $filler = null) : SearchResult
0 ignored issues
show
Coding Style introduced by
Incorrect spacing between argument "$filler" and equals sign; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between default value and equals sign for argument "$filler"; expected 0 but found 1
Loading history...
126
    {
127 2
        $searchResult = new SearchResult($this->getRaw());
128
        
129 2
        if ($this->model) {
130 1
            $filler = $filler ?: new EloquentFiller();
0 ignored issues
show
Coding Style introduced by
The value of a comparison must not be assigned to a variable
Loading history...
Coding Style introduced by
Inline IF statements are not allowed
Loading history...
Coding Style introduced by
Inline shorthand IF statement requires brackets around comparison
Loading history...
131 1
            $filler->fill($this->model, $searchResult);
132
        }
133
        
134 2
        return $searchResult;
135
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end get()
Loading history...
136
    
137
    /**
138
     * Get raw search result
139
     *
140
     * @return array
141
     */
142 2
    public function getRaw() : array
143
    {
144
        $params = [
0 ignored issues
show
Coding Style introduced by
Short array syntax is not allowed
Loading history...
145 2
            'index' => $this->index,
0 ignored issues
show
Coding Style introduced by
This array key does not seem to be aligned correctly; expected 19 spaces, but found 12.
Loading history...
146 2
            'body' => $this->toDsl()
0 ignored issues
show
Coding Style introduced by
This array key does not seem to be aligned correctly; expected 19 spaces, but found 12.
Loading history...
147
        ];
0 ignored issues
show
Coding Style introduced by
The closing parenthesis does not seem to be aligned correctly; expected 18 space(s), but found 8.
Loading history...
148
    
149 2
        if ($this->type) {
150 2
            $params['type'] = $this->type;
151
        }
152
        
153 2
        return $this->manager->searchStatement($params);
154
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getRaw()
Loading history...
155
    
156
    /**
157
     * Aggregation
158
     *
159
     * @param \Closure $aggregation
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
160
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
161
     */
162 1
    public function aggregation(\Closure $aggregation) : Search
163
    {
164 1
        $aggregation(new Aggregation($this->search));
165 1
        return $this;
166
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end aggregation()
Loading history...
167
    
168
    /**
169
     * Term level
170
     *
171
     * @param \Closure $termLevel
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
172
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
173
     */
174 21
    public function termLevel(\Closure $termLevel) : Search
175
    {
176 21
        $termLevel(new TermLevel($this->search));
177 21
        return $this;
178
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end termLevel()
Loading history...
179
    
180
    /**
181
     * Fulltext
182
     *
183
     * @param \Closure $fulltext
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
184
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
185
     */
186 1
    public function fulltext(\Closure $fulltext) : Search
187
    {
188 1
        $fulltext(new Fulltext($this->search));
189 1
        return $this;
190
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end fulltext()
Loading history...
191
    
192
    /**
193
     * Geo
194
     *
195
     * @param \Closure $geo
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
196
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
197
     */
198 1
    public function geo(\Closure $geo) : Search
199
    {
200 1
        $geo(new Geo($this->search));
201 1
        return $this;
202
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end geo()
Loading history...
203
    
204
    /**
205
     * Compound
206
     *
207
     * @param \Closure $compound
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
208
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
209
     */
210 7
    public function compound(\Closure $compound) : Search
211
    {
212 7
        $compound(new Compound($this->search));
213 7
        return $this;
214
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end compound()
Loading history...
215
    
216
    /**
217
     * Joining
218
     *
219
     * @param \Closure $joining
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
220
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
221
     */
222 1
    public function joining(\Closure $joining) : Search
223
    {
224 1
        $joining(new Joining($this->search));
225 1
        return $this;
226
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end joining()
Loading history...
227
    
228
    /**
229
     * Specialized
230
     *
231
     * @param \Closure $specialized
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
232
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
233
     */
234 1
    public function specialized(\Closure $specialized) : Search
235
    {
236 1
        $specialized(new Specialized($this->search));
237 1
        return $this;
238
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end specialized()
Loading history...
239
    
240
    /**
241
     * Inner hit
242
     *
243
     * @param \Closure $innerHit
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
244
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
245
     */
246 1
    public function innerHit(\Closure $innerHit) : Search
247
    {
248 1
        $innerHit(new InnerHit($this->search));
249 1
        return $this;
250
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end innerHit()
Loading history...
251
    
252
    /**
253
     * Paginate
254
     *
255
     * @param int $page
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected "integer" but found "int" for parameter type
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
256
     * @param int $limit
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected "integer" but found "int" for parameter type
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
257
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
258
     */
259 1
    public function paginate(int $page, int $limit = 25) : Search
0 ignored issues
show
Coding Style introduced by
Incorrect spacing between argument "$limit" and equals sign; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between default value and equals sign for argument "$limit"; expected 0 but found 1
Loading history...
260
    {
261 1
        $this->search
262 1
            ->setFrom($limit * ($page - 1))
0 ignored issues
show
Coding Style introduced by
Space found before object operator
Loading history...
263 1
            ->setSize($limit);
0 ignored issues
show
Coding Style introduced by
Space found before object operator
Loading history...
264
        
265 1
        return $this;
266
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end paginate()
Loading history...
267
    
268
    /**
269
     * Min score
270
     *
271
     * @param int $minScore
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected "integer" but found "int" for parameter type
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
272
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
273
     */
274 1
    public function minScore(int $minScore) : Search
275
    {
276 1
        $this->search->setMinScore($minScore);
277 1
        return $this;
278
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end minScore()
Loading history...
279
    
280
    /**
281
     * Sort
282
     *
283
     * @param string $field
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
284
     * @param string $order
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
285
     * @param array $params
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 2 spaces after parameter type; 1 found
Loading history...
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
286
     * @return Search
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
287
     */
288 1
    public function sort(string $field, string $order = FieldSort::DESC, array $params = []) : Search
0 ignored issues
show
Coding Style introduced by
Incorrect spacing between argument "$order" and equals sign; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between default value and equals sign for argument "$order"; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between argument "$params" and equals sign; expected 0 but found 1
Loading history...
Coding Style introduced by
Incorrect spacing between default value and equals sign for argument "$params"; expected 0 but found 1
Loading history...
Coding Style introduced by
Short array syntax is not allowed
Loading history...
Coding Style introduced by
This line exceeds maximum limit of 100 characters; contains 101 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
289
    {
290 1
        $this->search->addSort(new FieldSort(
1 ignored issue
show
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
291 1
            $field,
292 1
            $order,
293 1
            $params
294
        ));
0 ignored issues
show
Coding Style introduced by
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
295
        
296 1
        return $this;
297
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 0 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end sort()
Loading history...
298
}
0 ignored issues
show
Coding Style introduced by
Expected //end class
Loading history...
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
299