Skip to content

Commit

Permalink
Merge branch '1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Serwatka committed May 30, 2018
2 parents 5a78345 + e76fd81 commit 8955e25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/UniversalDiscovery/ConfigResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

use eZ\Publish\Core\MVC\ConfigResolverInterface;
use EzSystems\EzPlatformAdminUi\UniversalDiscovery\Event\ConfigResolveEvent;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

class ConfigResolver
{
/** @var \Symfony\Component\EventDispatcher\EventDispatcher */
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface */
protected $eventDispatcher;

/** @var \eZ\Publish\Core\MVC\ConfigResolverInterface */
Expand All @@ -25,12 +25,12 @@ class ConfigResolver

/**
* @param \eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver
* @param \Symfony\Component\EventDispatcher\EventDispatcher $eventDispatcher
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher
* @param array $udwConfiguration
*/
public function __construct(
ConfigResolverInterface $configResolver,
EventDispatcher $eventDispatcher,
EventDispatcherInterface $eventDispatcher,
array $udwConfiguration
) {
$this->configResolver = $configResolver;
Expand Down Expand Up @@ -72,7 +72,7 @@ public function getConfig(string $configName, array $context = []): array
protected function mergeConfiguration(array $default, $apply): array
{
foreach ($apply as $key => $item) {
if (isset($default[$key]) && $this->is_assoc_array($default[$key])) {
if (isset($default[$key]) && $this->isAssocArray($default[$key])) {
$default[$key] = $this->mergeConfiguration($default[$key], $item);
} else {
$default[$key] = $item;
Expand All @@ -89,7 +89,7 @@ protected function mergeConfiguration(array $default, $apply): array
*
* @return bool
*/
private function is_assoc_array($item): bool
private function isAssocArray($item): bool
{
if (!is_array($item)) {
// Is not an array at all
Expand Down

0 comments on commit 8955e25

Please sign in to comment.