Completed
Push — master ( f92cc6...8392cf )
by Christian
03:30
created

HelperServiceProvider::helpers()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Omatech\Mage\Core\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class HelperServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register any other events for your application.
11
     *
12
     * @return void
13
     */
14 82
    public function boot()
15
    {
16 82
        $this->helpers();
17 82
    }
18
19
    /**
20
     * Register the application middlewares.
21
     *
22
     * @return void
23
     */
24 82
    private function helpers()
25
    {
26 82
        $files = array_diff(scandir(__DIR__.'/../Helpers/'), array('..', '.'));
27
28 82
        foreach ($files as $file) {
29 82
            require_once __DIR__.'/../Helpers/'.$file;
30
        }
31 82
    }
32
}
33