StubCreator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A faker() 0 4 2
1
<?php
2
3
namespace PhpGitHooks\Module\Tests\Infrastructure\Stub;
4
5
use Faker\Factory;
6
use Faker\Generator;
7
8
class StubCreator
9
{
10
    /**
11
     * @var Generator
12
     */
13
    private static $faker;
14
    /**
15
     * @return Generator
16
     */
17
    public static function faker()
18
    {
19
        return self::$faker = self::$faker ?: Factory::create();
20
    }
21
}
22