Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
56 | 5 | private function getPropertyValueCollectionsWithDates( Subject $subject ) { |
|
57 | 5 | return array_filter( |
|
58 | 5 | $subject->getPropertyValueCollections()->toArray(), |
|
59 | 5 | function( PropertyValueCollection $pvc ) { |
|
60 | 4 | return $pvc->getPrintRequest()->getTypeID() === '_dat' |
|
61 | 4 | && $pvc->getDataItems() !== []; |
|
62 | 5 | } |
|
63 | ); |
||
64 | } |
||
65 | |||
67 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.