| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 81 | 15 | public function buildProviders() |
|
| 82 | { |
||
| 83 | 15 | $providersFactory = new ProvidersFactory(); |
|
| 84 | |||
| 85 | 15 | if (! empty($this->config['providers']) && is_array($this->config['providers'])) { |
|
| 86 | 15 | foreach ($this->config['providers'] as $name => $options) { |
|
| 87 | 15 | $this->providers[$name] = $providersFactory->make($name, $options)->setProject($this); |
|
| 88 | 15 | } |
|
| 89 | 15 | } |
|
| 90 | 15 | } |
|
| 91 | } |
||
| 92 |