mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
remove undocumented code and uncessary in_array() checks + cleanup
This commit is contained in:
parent
2dd423644b
commit
fc2d28974b
10 changed files with 25 additions and 20 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue