Passed
Push — feature/0.7.0 ( 3ab1bc...ee8bff )
by Ryuichi
46:08
created

DatabaseTest1Controller::mysql()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace WebStream\Test\Controller;
3
4
use WebStream\Core\CoreController;
5
6
class DatabaseTest1Controller extends CoreController
7
{
8
    public function mysql()
9
    {
10
        $data = $this->DatabaseTest1->getData();
0 ignored issues
show
Bug Best Practice introduced by
The property DatabaseTest1 does not exist on WebStream\Test\Controller\DatabaseTest1Controller. Since you implemented __get, consider adding a @property annotation.
Loading history...
Bug introduced by
The method getData() does not exist on null. ( Ignorable by Annotation )

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

10
        /** @scrutinizer ignore-call */ 
11
        $data = $this->DatabaseTest1->getData();

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
11
        echo $data->toArray()[0]['name'];
12
    }
13
}
14