Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4.016 |
Changes | 0 |
1 | <?php |
||
31 | 29 | public function recognizeType($stuff) |
|
32 | { |
||
33 | 29 | switch (true) { |
|
34 | 29 | case $stuff instanceof \Closure: |
|
35 | 1 | return static::TYPE_CLOSURE; |
|
36 | 29 | case $stuff instanceof AbstractBuilder: |
|
37 | 2 | return static::TYPE_SUB_QUERY; |
|
38 | 29 | case false !== strpos($stuff, '\\'): |
|
39 | 1 | return static::TYPE_CLASS_NAME; |
|
40 | } |
||
41 | |||
42 | 29 | return static::TYPE_TABLE_NAME; |
|
43 | } |
||
44 | |||
57 | } |