Skip to content

Commit e2e1f83

Browse files
authored
Update ApiFactory.php
Requested changes for issues #57 and #58.
1 parent b869c6d commit e2e1f83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ApiFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ public function createApi($apiName, $apiVersion = 1)
102102
$api->setName($apiName);
103103

104104
$serviceConfigs = [];
105-
if (isset($this->config['zf-rest']) && !empty($this->config['zf-rest'])) {
105+
if (!empty($this->config['zf-rest'])) {
106106
$serviceConfigs = array_merge($serviceConfigs, $this->config['zf-rest']);
107107
}
108-
if (isset($this->config['zf-rpc']) && !empty($this->config['zf-rpc'])) {
108+
if (!empty($this->config['zf-rpc'])) {
109109
$serviceConfigs = array_merge($serviceConfigs, $this->config['zf-rpc']);
110110
}
111111

0 commit comments

Comments
 (0)