Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update library/Zend/ServiceManager/Config.php

Refactor; Improve readablility.
  • Loading branch information...
commit c71d8d190d679714856331bf8da6647703530e41 1 parent 2a398b4
Gerard Roche authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 library/Zend/ServiceManager/Config.php
7 library/Zend/ServiceManager/Config.php
@@ -61,9 +61,10 @@ public function getShared()
61 61
62 62 public function configureServiceManager(ServiceManager $serviceManager)
63 63 {
64   - $allowOverride = $this->getAllowOverride();
65   - isset($allowOverride) ? $serviceManager->setAllowOverride($allowOverride) : null;
66   -
  64 + if (($allowOverride = $this->getAllowOverride()) !== null) {
  65 + $serviceManager->setAllowOverride($allowOverride);
  66 + }
  67 +
67 68 foreach ($this->getFactories() as $name => $factory) {
68 69 $serviceManager->setFactory($name, $factory);
69 70 }

0 comments on commit c71d8d1

Please sign in to comment.
Something went wrong with that request. Please try again.