RecordManagerLegacyTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
1
<?php
2
3
namespace Nip\Records\Legacy\AbstractModels;
4
5
/**
6
 * Trait RecordManagerLegacyTrait
7
 * @package Nip\Records\Legacy\AbstractModels
8
 */
9
trait RecordManagerLegacyTrait
10
{
11
12
    /**
13
     * @return \Nip\Http\Request
14
     * @deprecated use request()
15
     */
16
    public function getRequest()
17
    {
18
        return request();
0 ignored issues
show
Bug Best Practice introduced by
The expression return request() also could return the type array|string which is incompatible with the documented return type Nip\Http\Request.
Loading history...
19
    }
20
}