@@ -57,7 +57,9 @@ discard block |
||
57 | 57 | |
58 | 58 | list($handler, $weight) = $this->getHandler($provider, $parameters); |
59 | 59 | |
60 | - if ( $handler instanceof ProviderInterface ) $manager->addProvider($handler, $weight); |
|
60 | + if ( $handler instanceof ProviderInterface ) { |
|
61 | + $manager->addProvider($handler, $weight); |
|
62 | + } |
|
61 | 63 | |
62 | 64 | } |
63 | 65 | |
@@ -82,7 +84,9 @@ discard block |
||
82 | 84 | |
83 | 85 | protected function getHandler($provider, $parameters) { |
84 | 86 | |
85 | - if ( empty($parameters['type']) ) return array(null, null); |
|
87 | + if ( empty($parameters['type']) ) { |
|
88 | + return array(null, null); |
|
89 | + } |
|
86 | 90 | |
87 | 91 | $weight = empty($parameters['weight']) ? 0 : $parameters['weight']; |
88 | 92 | |
@@ -174,7 +178,9 @@ discard block |
||
174 | 178 | |
175 | 179 | $algorithm = strtoupper($algorithm); |
176 | 180 | |
177 | - if ( array_key_exists($algorithm, self::$algorithms) ) return self::$algorithms[$algorithm]; |
|
181 | + if ( array_key_exists($algorithm, self::$algorithms) ) { |
|
182 | + return self::$algorithms[$algorithm]; |
|
183 | + } |
|
178 | 184 | |
179 | 185 | return self::$algorithms['PICK_FIRST']; |
180 | 186 |