Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Identcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getTextToDisplay()
* Check allowed characters
* @param string $value
* @return string
* @throws Exception
* @throws Exception\BarcodeValidationException
*/
public function validateText($value)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Cache/Storage/Adapter/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ protected function putFileContent($file, $data, $nonBlocking = false, & $wouldbl
*
* @param string $file
* @return void
* @throws RuntimeException
* @throws Exception\RuntimeException
*/
protected function unlink($file)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Cache/Storage/Adapter/MemcacheOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function getServers()
/**
* Set compress threshold
*
* @param int|string|array|ArrayAccess|null $threshold
* @param int|string|array|\ArrayAccess|null $threshold
* @return MemcacheOptions
*/
public function setAutoCompressThreshold($threshold)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Zend\Cache\Storage\Adapter;

use ArrayAccess;
use Memcache as MemcacheResource;
use Traversable;
use Zend\Cache\Exception;
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Cache/Storage/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Redis as RedisResource;
use RedisException as RedisResourceException;
use stdClass;
use Traversable;
use Zend\Cache\Exception;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\FlushableInterface;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Code/Reflection/FileReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FileReflection implements ReflectionInterface
protected $requiredFiles = array();

/**
* @var ReflectionClass[]
* @var ClassReflection[]
*/
protected $classes = array();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getCountForSql($sql)

/**
* @param $context
* @return closure
* @return \Closure
*/
public function getRowCountClosure($context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getCountForSql($sql)

/**
* @param $context
* @return closure
* @return \Closure
*/
public function getRowCountClosure($context)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/TableGateway/AbstractTableGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ protected function executeInsert(Insert $insert)
* Update
*
* @param array $set
* @param string|array|closure $where
* @param string|array|\Closure $where
* @return int
*/
public function update($set, $where = null)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Di/Definition/Builder/InjectionMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function detectMethodRequirement($requirement)
return Di::METHOD_IS_OPTIONAL;
break;
case "constructor":
return Di::MEHTOD_IS_CONSTRUCTOR;
return Di::METHOD_IS_CONSTRUCTOR;
break;
case "instantiator":
return Di::METHOD_IS_INSTANTIATOR;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Di/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ protected function resolveAndCallInjectionMethodForInstance($instance, $method,
* @param string $method
* @param array $callTimeUserParams
* @param string $alias
* @param int|bolean $methodRequirementType
* @param int|boolean $methodRequirementType
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use bool instead. see #3342

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samsonasik handled @786757c5ab564de8d23495566ab3fbca459e45cb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ocramius thank you ;)

* @param bool $isInstantiator
* @throws Exception\MissingPropertyException
* @throws Exception\CircularDependencyException
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Dom/DOMXPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DOMXPath extends \DOMXPath
* raising an error
*
* @param string $expression The XPath expression to evaluate.
* @return DOMNodeList
* @return \DOMNodeList
* @throws ErrorException
*/
public function queryWithErrorException($expression)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Dom/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function registerXpathPhpFunctions($xpathPhpFunctions = true)
* @param DOMDocument $document
* @param string|array $xpathQuery
* @return array
* @throws ErrorException If query cannot be executed
* @throws \ErrorException If query cannot be executed
*/
protected function getNodeList($document, $xpathQuery)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Feed/Reader/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static function import($uri, $etag = null, $lastModified = null)
* HTTP client implementations.
*
* @param string $uri
* @param Http\Client $client
* @param Http\ClientInterface $client
* @return self
* @throws Exception\RuntimeException if response is not an Http\ResponseInterface
*/
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Feed/Writer/ExtensionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __call($method, $args)
* Get the named extension
*
* @param string $name
* @return Extension\AbstractEntry|Extension\AbstractFeed
* @return Extension\AbstractRenderer
*/
public function get($name)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DateTimeFormatter extends AbstractFilter
/**
* Sets filter options
*
* @param array|Traversable $options
* @param array|\Traversable $options
*/
public function __construct($options = null)
{
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Filter/FilterChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Zend\Filter;

use Countable;
use Traversable;
use Zend\Stdlib\PriorityQueue;

class FilterChain extends AbstractFilter implements Countable
Expand Down Expand Up @@ -52,7 +53,7 @@ public function __construct($options = null)
*/
public function setOptions($options)
{
if (!is_array($options) && !$options instanceof \Traversable) {
if (!is_array($options) && !$options instanceof Traversable) {
throw new Exception\InvalidArgumentException(sprintf(
'Expected array or Traversable; received "%s"',
(is_object($options) ? get_class($options) : gettype($options))
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Filter/Inflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function getTarget()
/**
* Set Target Reference
*
* @param reference $target
* @param string $target
* @return self
*/
public function setTargetReference(&$target)
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Form/FormElementManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Zend\ServiceManager\AbstractPluginManager;
use Zend\ServiceManager\ConfigInterface;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Stdlib\InitializableInterface;

Expand Down Expand Up @@ -153,7 +154,7 @@ public function get($name, $options = array(), $usePeeringServiceManagers = true
* @param string $canonicalName
* @param string $requestedName
* @return null|\stdClass
* @throws Exception\ServiceNotCreatedException If resolved class does not exist
* @throws ServiceNotCreatedException If resolved class does not exist
*/
protected function createFromInvokable($canonicalName, $requestedName)
{
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Form/InputFilterProviderFieldset.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Zend\Form;

use Traversable;
use Zend\InputFilter\InputFilterProviderInterface;

class InputFilterProviderFieldset extends Fieldset implements InputFilterProviderInterface
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Form/LabelAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getLabelAttributes();
*
* Implementation will decide if this will overwrite or merge.
*
* @param array|Traversable $arrayOrTraversable
* @param array|\Traversable $arrayOrTraversable
* @return self
*/
public function setLabelOptions($arrayOrTraversable);
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Http/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class Headers implements Countable, Iterator
{
/**
* @var PluginClassLoader
* @var PluginClassLocator
*/
protected $pluginClassLoader = null;

Expand Down
16 changes: 8 additions & 8 deletions library/Zend/Ldap/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ public static function setAttribute(array &$data, $attribName, $value, $append =
$valArray = array();
if (is_array($value) || ($value instanceof \Traversable)) {
foreach ($value as $v) {
$v = static::valueToLdap($v);
$v = self::valueToLdap($v);
if ($v !== null) {
$valArray[] = $v;
}
}
} elseif ($value !== null) {
$value = static::valueToLdap($value);
$value = self::valueToLdap($value);
if ($value !== null) {
$valArray[] = $value;
}
Expand Down Expand Up @@ -76,14 +76,14 @@ public static function getAttribute(array $data, $attribName, $index = null)
}
$retArray = array();
foreach ($data[$attribName] as $v) {
$retArray[] = static::valueFromLdap($v);
$retArray[] = self::valueFromLdap($v);
}
return $retArray;
} elseif (is_int($index)) {
if (!isset($data[$attribName])) {
return null;
} elseif ($index >= 0 && $index < count($data[$attribName])) {
return static::valueFromLdap($data[$attribName][$index]);
return self::valueFromLdap($data[$attribName][$index]);
} else {
return null;
}
Expand Down Expand Up @@ -295,13 +295,13 @@ public static function setDateTimeAttribute(
$convertedValues = array();
if (is_array($value) || ($value instanceof \Traversable)) {
foreach ($value as $v) {
$v = static::valueToLdapDateTime($v, $utc);
$v = self::valueToLdapDateTime($v, $utc);
if ($v !== null) {
$convertedValues[] = $v;
}
}
} elseif ($value !== null) {
$value = static::valueToLdapDateTime($value, $utc);
$value = self::valueToLdapDateTime($value, $utc);
if ($value !== null) {
$convertedValues[] = $value;
}
Expand Down Expand Up @@ -336,13 +336,13 @@ public static function getDateTimeAttribute(array $data, $attribName, $index = n
$values = static::getAttribute($data, $attribName, $index);
if (is_array($values)) {
for ($i = 0, $count = count($values); $i < $count; $i++) {
$newVal = static::valueFromLdapDateTime($values[$i]);
$newVal = self::valueFromLdapDateTime($values[$i]);
if ($newVal !== null) {
$values[$i] = $newVal;
}
}
} else {
$newVal = static::valueFromLdapDateTime($values);
$newVal = self::valueFromLdapDateTime($values);
if ($newVal !== null) {
$values = $newVal;
}
Expand Down
1 change: 0 additions & 1 deletion library/Zend/Log/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ abstract class AbstractWriter implements WriterInterface
* - formatter: formatter for this writer
*
* @param array|Traversable $options
* @return Logger
* @throws Exception\InvalidArgumentException
*/
public function __construct($options = null)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Mail/Storage/Writable/Maildir.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ protected function _getInfoString(&$flags)
/**
* append a new message to mail storage
*
* @param string|stream $message message as string or stream resource
* @param string|resource $message message as string or stream resource
* @param null|string|\Zend\Mail\Storage\Folder $folder folder for new message, else current folder is taken
* @param null|array $flags set flags for new message, else a default set is used
* @param bool $recent handle this mail as if recent flag has been set,
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Mime/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function isStream()
* reading the content. very useful for large file attachments.
*
* @param string $EOL
* @return stream
* @return resource
* @throws Exception\RuntimeException if not a stream or unable to append filter
*/
public function getEncodedStream($EOL = Mime::LINEEND)
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/ModuleManager/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function loadModule($module)

/**
* Load a module with the name
* @param Zend\EventManager\EventInterface $event
* @param \Zend\EventManager\EventInterface $event
* @return mixed module instance
* @throws Exception\RuntimeException
*/
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Mvc/I18n/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class Translator implements
ValidatorTranslatorInterface
{
/**
* @var I18nTranslator
* @var I18nTranslatorInterface
*/
protected $translator;

/**
* @param I18nTranslator $translator
* @param I18nTranslatorInterface $translator
*/
public function __construct(I18nTranslatorInterface $translator)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Zend\I18n\Translator\TranslatorInterface as Translator;
use Zend\I18n\Translator\TranslatorAwareInterface;
use Zend\Mvc\Router\Exception;
use Zend\Stdlib\RequestInterface as Request;

/**
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Navigation/Page/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public static function factory($options)
/**
* Add static factory for self::factory function
*
* @param type $callback Any callable variable
* @param callable $callback Any callable variable
*/
public static function addFactory($callback)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Navigation/Page/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function getRequest()
* Sets request for assembling URLs
*
* @param Request $request
* @return Fluent interface, returns self
* @return self Fluent interface, returns self
*/
public function setRequest(Request $request = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getAssertionManager()
*
* @param string $mode
* indicates how assertion chain result should interpreted (either 'all' or 'at_least_one')
* @throws Exception
* @throws InvalidArgumentException
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Serializer/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class Serializer
*
* @var null|AdapterPluginManager
*/
private static $adapters = null;
protected static $adapters = null;

/**
* The default adapter.
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Session/SaveHandler/MongoDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MongoDB implements SaveHandlerInterface
*
* @param Mongo|MongoClient $mongo
* @param MongoDBOptions $options
* @throws Zend\Session\Exception\InvalidArgumentException
* @throws InvalidArgumentException
*/
public function __construct($mongo, MongoDBOptions $options)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Session/Service/StorageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Session\Storage\Exception as SessionException;
use Zend\Session\Exception\ExceptionInterface as SessionException;
use Zend\Session\Storage\Factory;
use Zend\Session\Storage\StorageInterface;

Expand Down
Loading