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

HelperServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
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