artem-prozorov /
prettybxfixtures
| 1 | <?php |
||
| 2 | |||
| 3 | if (! function_exists('fixture')) { |
||
| 4 | function fixture() |
||
| 5 | { |
||
| 6 | return container()->make(\PrettyBx\Fixtures\FixtureManager::class); |
||
| 7 | } |
||
| 8 | } |
||
| 9 | |||
| 10 | if (! function_exists('faker')) { |
||
| 11 | function faker() |
||
|
0 ignored issues
–
show
|
|||
| 12 | { |
||
| 13 | return \PrettyBx\Fixtures\FixtureManager::getFaker(); |
||
| 14 | } |
||
| 15 | } |
||
| 16 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.