BaseTest::getFaker()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Bludata\Lumen\Tests;
4
5
use Faker\Factory;
6
use Laravel\Lumen\Testing\TestCase;
7
8
abstract class BaseTest extends TestCase
9
{
10
    /**
11
     * Creates the application.
12
     *
13
     * @return \Laravel\Lumen\Application
0 ignored issues
show
Documentation introduced by
Should the return type not be \Laravel\Lumen\Application|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
14
     */
15
    public function createApplication()
16
    {
17
    }
18
19
    public function getFaker($locale = 'pt_BR')
20
    {
21
        return Factory::create($locale);
22
    }
23
}
24