Polyfill   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace hiqdev\composer\config\tests\unit;
4
5
if (version_compare(PHP_VERSION, '5.6', '>=')) {
6
    trait Polyfill
7
    {
8
    }
9
} else {
10
    trait Polyfill
11
    {
12
        protected function createMock($originalClassName)
13
        {
14
            return $this->getMockBuilder($originalClassName)
0 ignored issues
show
Bug introduced by
It seems like getMockBuilder() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

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

14
            return $this->/** @scrutinizer ignore-call */ getMockBuilder($originalClassName)
Loading history...
15
                ->disableOriginalConstructor()
16
                ->disableOriginalClone()
17
                ->disableArgumentCloning()
18
                ->getMock();
19
        }
20
    }
21
}
22