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

DatabaseTest2Controller   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A postgresql() 0 4 1
1
<?php
2
namespace WebStream\Test\Controller;
3
4
use WebStream\Core\CoreController;
5
6
class DatabaseTest2Controller extends CoreController
7
{
8
    public function postgresql()
9
    {
10
        $data = $this->DatabaseTest2->getData();
0 ignored issues
show
Bug Best Practice introduced by
The property DatabaseTest2 does not exist on WebStream\Test\Controller\DatabaseTest2Controller. 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->DatabaseTest2->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
        var_dump($data->toArray());
0 ignored issues
show
Security Debugging Code introduced by
var_dump($data->toArray()) looks like debug code. Are you sure you do not want to remove it?
Loading history...
12
    }
13
}
14