| Conditions | 8 | 
| Paths | 12 | 
| Total Lines | 30 | 
| Code Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @return Application|PHPUnit_Framework_MockObject_MockObject  | 
            ||
| 38 | */  | 
            ||
| 39 | public function getApplication()  | 
            ||
| 40 |     { | 
            ||
| 41 | return $this->getTestApplication()->getApplication();  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return AdapterInterface  | 
            ||
| 46 | */  | 
            ||
| 47 | public function getDatabaseConnection()  | 
            ||
| 48 |     { | 
            ||
| 49 | $resource = $this->getApplication()->getObjectManager()->get(ResourceConnection::class);  | 
            ||
| 50 | |||
| 51 |         return $resource->getConnection('write'); | 
            ||
| 52 | }  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * @return TestApplication  | 
            ||
| 56 | */  | 
            ||
| 57 | private function getTestApplication()  | 
            ||
| 58 |     { | 
            ||
| 59 |         if (null === $this->testApplication) { | 
            ||
| 60 | $this->testApplication = new TestApplication();  | 
            ||
| 61 | }  | 
            ||
| 62 | |||
| 63 | return $this->testApplication;  | 
            ||
| 64 | }  | 
            ||
| 65 | }  | 
            ||
| 66 | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.