remove undocumented code and uncessary in_array() checks + cleanup

This commit is contained in:
euromark 2013-08-08 03:56:58 +02:00
parent 2dd423644b
commit fc2d28974b
10 changed files with 25 additions and 20 deletions

View file

@ -94,7 +94,7 @@ class ComponentCollection extends ObjectCollection implements CakeEventListener
* @throws MissingComponentException when the component could not be found
*/
public function load($component, $settings = array()) {
if (is_array($settings) && isset($settings['className'])) {
if (isset($settings['className'])) {
$alias = $component;
$component = $settings['className'];
}