Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

remove redundant isset(s) #262

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function configure(array $config)
$this->services = $config['services'] + $this->services;
}

if (isset($config['invokables']) && ! empty($config['invokables'])) {
if (! empty($config['invokables'])) {
$this->createAliasesAndFactoriesForInvokables($config['invokables']);
}

Expand Down Expand Up @@ -382,7 +382,7 @@ public function configure(array $config)

// If lazy service configuration was provided, reset the lazy services
// delegator factory.
if (isset($config['lazy_services']) && ! empty($config['lazy_services'])) {
if (! empty($config['lazy_services'])) {
$this->lazyServices = array_merge_recursive($this->lazyServices, $config['lazy_services']);
$this->lazyServicesDelegator = null;
}
Expand Down