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

Leopard::getFacadeAccessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
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\Facade;
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
4
use Elasticsearch\Client;
5
use Illuminate\Support\Facades\Facade;
6
use Triadev\Leopard\Business\Repository\ElasticsearchRepository;
7
use Triadev\Leopard\Contract\ElasticsearchManagerContract;
8
use Triadev\Leopard\Business\Dsl\Search;
9
use Triadev\Leopard\Business\Dsl\Suggestion;
10
11
/**
12
 * Class Leopard
13
 * @package Triadev\Leopard\Facade
0 ignored issues
show
Coding Style Documentation introduced by
@package tag is not allowed in class comment
Loading history...
Coding Style introduced by
There must be exactly one blank line before the tags in a doc comment
Loading history...
14
 *
15
 * @method static Client getEsClient()
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
16
 * @method static string getEsDefaultIndex()
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
17
 * @method static Search search()
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
18
 * @method static Suggestion suggest()
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
19
 * @method static ElasticsearchRepository repository()
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
20
 * @method static map(\Closure $blueprint, string $index, string $type)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
21
 * @method static array searchStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
22
 * @method static array putMappingStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
23
 * @method static array indexStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
24
 * @method static array updateStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
25
 * @method static bool existStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
26
 * @method static array deleteStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
27
 * @method static array getStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
28
 * @method static array suggestStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
29
 * @method static array bulkStatement(array $params)
0 ignored issues
show
Coding Style Documentation introduced by
@method tag is not allowed in class comment
Loading history...
30
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
31
class Leopard extends Facade
32
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class Leopard
Loading history...
33
    /**
34
     * Get a plastic manager instance for the default connection.
35
     *
36
     * @return ElasticsearchManagerContract
37
     */
38 16
    protected static function getFacadeAccessor()
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines before function; 0 found
Loading history...
39
    {
40 16
        return app(ElasticsearchManagerContract::class);
41
    }
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 getFacadeAccessor()
Loading history...
42
}
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...
43