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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
Browse files Browse the repository at this point in the history
…e_filesystemSpeedup
  • Loading branch information
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 25 deletions.
8 changes: 4 additions & 4 deletions src/AutoloaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function factory($options = null)
if (!is_array($options) && !($options instanceof \Traversable)) {
require_once __DIR__ . '/Exception/InvalidArgumentException.php';
throw new Exception\InvalidArgumentException(
'Options provided must be an array or Traversable'
'Options provided must be an array or Traversable'
);
}

Expand All @@ -98,17 +98,17 @@ public static function factory($options = null)
if (!class_exists($class) && !$autoloader->autoload($class)) {
require_once 'Exception/InvalidArgumentException.php';
throw new Exception\InvalidArgumentException(
sprintf('Autoloader class "%s" not loaded', $class)
sprintf('Autoloader class "%s" not loaded', $class)
);
}

// unfortunately is_subclass_of is broken on some 5.3 versions
// additionally instanceof is also broken for this use case
if (version_compare(PHP_VERSION, '5.3.7', '>=')) {
if (!is_subclass_of($class, 'Zend\Loader\SplAutoloader')) {
if (!is_subclass_of($class, 'Zend\Loader\SplAutoloader')) {
require_once 'Exception/InvalidArgumentException.php';
throw new Exception\InvalidArgumentException(
sprintf('Autoloader class %s must implement Zend\\Loader\\SplAutoloader', $class)
sprintf('Autoloader class %s must implement Zend\\Loader\\SplAutoloader', $class)
);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/ClassMapAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/** @namespace */
namespace Zend\Loader;

// Grab SplAutoloader interface
Expand Down
3 changes: 0 additions & 3 deletions src/Pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
* @version $Id$
*/

/**
* @namespace
*/
namespace Zend\Loader;

/**
Expand Down
3 changes: 0 additions & 3 deletions src/PluginClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
* @version $Id$
*/

/**
* @namespace
*/
namespace Zend\Loader;

use ArrayIterator,
Expand Down
3 changes: 0 additions & 3 deletions src/PluginClassLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
* @version $Id$
*/

/**
* @namespace
*/
namespace Zend\Loader;

/**
Expand Down
5 changes: 1 addition & 4 deletions src/PrefixPathLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/**
* @namespace
*/
namespace Zend\Loader;

use Zend\Stdlib\ArrayStack,
Expand Down Expand Up @@ -458,7 +455,7 @@ protected function formatName($name)
*/
protected function formatPrefix($prefix, $namespaced = true)
{
if($prefix == "") {
if ($prefix == "") {
return $prefix;
}

Expand Down
3 changes: 0 additions & 3 deletions src/PrefixPathMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/**
* @namespace
*/
namespace Zend\Loader;

/**
Expand Down
3 changes: 0 additions & 3 deletions src/ShortNameLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/**
* @namespace
*/
namespace Zend\Loader;

/**
Expand Down
1 change: 0 additions & 1 deletion src/StandardAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/** @namespace */
namespace Zend\Loader;

// Grab SplAutoloader interface
Expand Down

0 comments on commit 3afba81

Please sign in to comment.