Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
30 | 8 | private function getConfiguredStoreClass() |
|
31 | { |
||
32 | 8 | $driver = ucfirst($this->app['config']['trackit']['store']['driver']); |
|
33 | |||
34 | 8 | if (! class_exists($class = 'Tequilarapido\\TrackIt\\Store\\'.$driver.'Store')) { |
|
35 | throw new \Exception("Cannot find track it store implementation for driver [$driver]"); |
||
36 | } |
||
37 | |||
38 | 8 | return $class; |
|
39 | } |
||
40 | } |
||
41 |