Passed
Push — master ( 55f515...20b0bc )
by Ryosuke
12:42
created

MySqlGrammar::compileLegacyGroupLimit()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 56
Code Lines 36

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 35
CRAP Score 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 36
c 1
b 0
f 0
dl 0
loc 56
ccs 35
cts 35
cp 1
rs 9.344
cc 4
nc 4
nop 1
crap 4

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace Mpyw\ComposhipsEagerLimit\Database\Query\Grammar;
4
5
use Staudenmeir\EloquentEagerLimit\Grammars\MySqlGrammar as EagerLimitMySqlGrammar;
6
7
class MySqlGrammar extends EagerLimitMySqlGrammar
8
{
9
    use Concerns\CompilesMySqlGroupLimitByMultipleColumnPartition;
0 ignored issues
show
Bug introduced by
The trait Mpyw\ComposhipsEagerLimi...MultipleColumnPartition requires the property $groupLimit which is not provided by Mpyw\ComposhipsEagerLimi...ry\Grammar\MySqlGrammar.
Loading history...
10
}
11