@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | |
26 | 26 | public function __construct(LibraryFinderInterface $finder=null, CacheInterface $cache=null) |
27 | 27 | { |
28 | - if (is_object($finder)) |
|
29 | - { |
|
30 | - $this->finder = $finder; |
|
31 | - } |
|
28 | + if (is_object($finder)) |
|
29 | + { |
|
30 | + $this->finder = $finder; |
|
31 | + } |
|
32 | 32 | |
33 | 33 | if (is_object($cache)) |
34 | 34 | { |
@@ -166,34 +166,34 @@ discard block |
||
166 | 166 | return null; |
167 | 167 | } |
168 | 168 | |
169 | - if (is_string($params)) |
|
170 | - { |
|
171 | - if (empty($params)) |
|
172 | - { |
|
173 | - return null; |
|
174 | - } |
|
169 | + if (is_string($params)) |
|
170 | + { |
|
171 | + if (empty($params)) |
|
172 | + { |
|
173 | + return null; |
|
174 | + } |
|
175 | 175 | |
176 | - $new_params = [ ]; |
|
176 | + $new_params = [ ]; |
|
177 | 177 | |
178 | - $separator = ' '; |
|
179 | - if (strpos($params, ',') !== false) |
|
180 | - { |
|
181 | - $separator = ','; |
|
182 | - } |
|
178 | + $separator = ' '; |
|
179 | + if (strpos($params, ',') !== false) |
|
180 | + { |
|
181 | + $separator = ','; |
|
182 | + } |
|
183 | 183 | |
184 | - $params = explode($separator, $params); |
|
185 | - unset($separator); |
|
184 | + $params = explode($separator, $params); |
|
185 | + unset($separator); |
|
186 | 186 | |
187 | - foreach ($params as $p) |
|
188 | - { |
|
189 | - list($key, $val) = explode('=', $p); |
|
187 | + foreach ($params as $p) |
|
188 | + { |
|
189 | + list($key, $val) = explode('=', $p); |
|
190 | 190 | |
191 | - $new_params[ trim($key) ] = trim($val, ', '); |
|
192 | - } |
|
191 | + $new_params[ trim($key) ] = trim($val, ', '); |
|
192 | + } |
|
193 | 193 | |
194 | - $params = $new_params; |
|
195 | - unset($new_params); |
|
196 | - } |
|
194 | + $params = $new_params; |
|
195 | + unset($new_params); |
|
196 | + } |
|
197 | 197 | |
198 | 198 | if (is_array($params) && !count($params)) |
199 | 199 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function find($class) |
16 | 16 | { |
17 | - $ci =& get_instance(); |
|
17 | + $ci =& get_instance(); |
|
18 | 18 | |
19 | 19 | $ci->load->library($class); |
20 | 20 |