@@ -86,7 +86,10 @@ public function __construct($environment, $options = null)
86
86
} elseif ($ options instanceof Zend_Config) {
87
87
$ options = $ options ->toArray ();
88
88
} elseif (!is_array ($ options )) {
89
- throw new Zend_Application_Exception ('Invalid options provided; must be location of config file, a config object, or an array ' );
89
+ throw new Zend_Application_Exception (
90
+ 'Invalid options provided; must be location of config file, '
91
+ . ' a config object, or an array '
92
+ );
90
93
}
91
94
92
95
$ this ->setOptions ($ options );
@@ -127,11 +130,15 @@ public function setOptions(array $options)
127
130
if (is_array ($ options ['config ' ])) {
128
131
$ _options = array ();
129
132
foreach ($ options ['config ' ] as $ tmp ) {
130
- $ _options = $ this ->mergeOptions ($ _options , $ this ->_loadConfig ($ tmp ));
133
+ $ _options = $ this ->mergeOptions (
134
+ $ _options , $ this ->_loadConfig ($ tmp )
135
+ );
131
136
}
132
137
$ options = $ this ->mergeOptions ($ _options , $ options );
133
138
} else {
134
- $ options = $ this ->mergeOptions ($ this ->_loadConfig ($ options ['config ' ]), $ options );
139
+ $ options = $ this ->mergeOptions (
140
+ $ this ->_loadConfig ($ options ['config ' ]), $ options
141
+ );
135
142
}
136
143
}
137
144
@@ -171,7 +178,9 @@ public function setOptions(array $options)
171
178
$ this ->setBootstrap ($ bootstrap );
172
179
} elseif (is_array ($ bootstrap )) {
173
180
if (empty ($ bootstrap ['path ' ])) {
174
- throw new Zend_Application_Exception ('No bootstrap path provided ' );
181
+ throw new Zend_Application_Exception (
182
+ 'No bootstrap path provided '
183
+ );
175
184
}
176
185
177
186
$ path = $ bootstrap ['path ' ];
@@ -183,7 +192,9 @@ public function setOptions(array $options)
183
192
184
193
$ this ->setBootstrap ($ path , $ class );
185
194
} else {
186
- throw new Zend_Application_Exception ('Invalid bootstrap information provided ' );
195
+ throw new Zend_Application_Exception (
196
+ 'Invalid bootstrap information provided '
197
+ );
187
198
}
188
199
}
189
200
@@ -319,13 +330,18 @@ public function setBootstrap($path, $class = null)
319
330
if (!class_exists ($ class , false )) {
320
331
require_once $ path ;
321
332
if (!class_exists ($ class , false )) {
322
- throw new Zend_Application_Exception ('Bootstrap class not found ' );
333
+ throw new Zend_Application_Exception (
334
+ 'Bootstrap class not found '
335
+ );
323
336
}
324
337
}
325
338
$ this ->_bootstrap = new $ class ($ this );
326
339
327
340
if (!$ this ->_bootstrap instanceof Zend_Application_Bootstrap_Bootstrapper) {
328
- throw new Zend_Application_Exception ('Bootstrap class does not implement Zend_Application_Bootstrap_Bootstrapper ' );
341
+ throw new Zend_Application_Exception (
342
+ 'Bootstrap class does not implement '
343
+ . ' Zend_Application_Bootstrap_Bootstrapper '
344
+ );
329
345
}
330
346
331
347
return $ this ;
@@ -403,13 +419,18 @@ protected function _loadConfig($file)
403
419
case 'inc ' :
404
420
$ config = include $ file ;
405
421
if (!is_array ($ config )) {
406
- throw new Zend_Application_Exception ('Invalid configuration file provided; PHP file does not return array value ' );
422
+ throw new Zend_Application_Exception (
423
+ 'Invalid configuration file provided; PHP file does not '
424
+ . ' return array value '
425
+ );
407
426
}
408
427
return $ config ;
409
428
break ;
410
429
411
430
default :
412
- throw new Zend_Application_Exception ('Invalid configuration file provided; unknown config type ' );
431
+ throw new Zend_Application_Exception (
432
+ 'Invalid configuration file provided; unknown config type '
433
+ );
413
434
}
414
435
415
436
return $ config ->toArray ();
0 commit comments