diff --git a/lib/Zend/Amf/Parse/Amf3/Deserializer.php b/lib/Zend/Amf/Parse/Amf3/Deserializer.php index d435270f38b..a058fa19c58 100644 --- a/lib/Zend/Amf/Parse/Amf3/Deserializer.php +++ b/lib/Zend/Amf/Parse/Amf3/Deserializer.php @@ -420,6 +420,6 @@ public function readXmlString() $xmlReference = $this->readInteger(); $length = $xmlReference >> 1; $string = $this->_stream->readBytes($length); - return Zend_Xml_Security::scan($string); + return Zend_Xml_Security::scan($string); } } diff --git a/lib/Zend/Amf/Parse/Amf3/Serializer.php b/lib/Zend/Amf/Parse/Amf3/Serializer.php index 5c3b22be3b3..8e00e62e4d4 100644 --- a/lib/Zend/Amf/Parse/Amf3/Serializer.php +++ b/lib/Zend/Amf/Parse/Amf3/Serializer.php @@ -236,8 +236,8 @@ public function writeString(&$string) return $this; } - $ref = array_key_exists($string, $this->_referenceStrings) - ? $this->_referenceStrings[$string] + $ref = array_key_exists($string, $this->_referenceStrings) + ? $this->_referenceStrings[$string] : false; if ($ref === false){ $this->_referenceStrings[$string] = count($this->_referenceStrings); @@ -389,8 +389,8 @@ protected function writeObjectReference(&$object, $objectByVal = false) } $hash = spl_object_hash($object); - $ref = array_key_exists($hash, $this->_referenceObjects) - ? $this->_referenceObjects[$hash] + $ref = array_key_exists($hash, $this->_referenceObjects) + ? $this->_referenceObjects[$hash] : false; // quickly handle object references diff --git a/lib/Zend/Amf/Server.php b/lib/Zend/Amf/Server.php index a0c86d68ac2..e8f429bfc1a 100644 --- a/lib/Zend/Amf/Server.php +++ b/lib/Zend/Amf/Server.php @@ -142,7 +142,7 @@ public function __construct() /** * Set authentication adapter * - * If the authentication adapter implements a "getAcl()" method, populate + * If the authentication adapter implements a "getAcl()" method, populate * the ACL of this instance with it (if none exists already). * * @param Zend_Amf_Auth_Abstract $auth @@ -506,7 +506,7 @@ protected function _handle(Zend_Amf_Request $request) // Authenticate, if we have credential headers $error = false; $headers = $request->getAmfHeaders(); - if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]) + if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]) && isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->userid) && isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->password) ) { @@ -530,8 +530,8 @@ protected function _handle(Zend_Amf_Request $request) } catch (Exception $e) { // Error during authentication; report it $error = $this->_errorMessage( - $objectEncoding, - '', + $objectEncoding, + '', $e->getMessage(), $e->getTraceAsString(), $e->getCode(), @@ -970,9 +970,9 @@ public function listMethods() * * Takes the provided parameters from the request, and attempts to cast them * to objects, if the prototype defines any as explicit object types - * - * @param Reflection $reflectionMethod - * @param array $params + * + * @param Reflection $reflectionMethod + * @param array $params * @return array */ protected function _castParameters($reflectionMethod, array $params) diff --git a/lib/Zend/Application/Resource/Db.php b/lib/Zend/Application/Resource/Db.php index 0840fea93c4..2747368758e 100644 --- a/lib/Zend/Application/Resource/Db.php +++ b/lib/Zend/Application/Resource/Db.php @@ -141,7 +141,7 @@ public function getDbAdapter() ) { $this->_db = Zend_Db::factory($adapter, $this->getParams()); - if ($this->_db instanceof Zend_Db_Adapter_Abstract + if ($this->_db instanceof Zend_Db_Adapter_Abstract && $this->isDefaultTableAdapter() ) { Zend_Db_Table::setDefaultAdapter($this->_db); diff --git a/lib/Zend/Application/Resource/Frontcontroller.php b/lib/Zend/Application/Resource/Frontcontroller.php index 73fe61b6115..631bd8fa1c1 100644 --- a/lib/Zend/Application/Resource/Frontcontroller.php +++ b/lib/Zend/Application/Resource/Frontcontroller.php @@ -143,7 +143,7 @@ public function init() if (!isset($value['params'])) { $value['params'] = array(); } - + $dispatchClass = $value['class']; if (!class_exists($dispatchClass)) { #require_once 'Zend/Application/Exception.php'; diff --git a/lib/Zend/Application/Resource/Useragent.php b/lib/Zend/Application/Resource/Useragent.php index 1ac40a3256d..83945cd4f21 100644 --- a/lib/Zend/Application/Resource/Useragent.php +++ b/lib/Zend/Application/Resource/Useragent.php @@ -32,7 +32,7 @@ class Zend_Application_Resource_UserAgent extends Zend_Application_Resource_Reso * @var Zend_Http_UserAgent */ protected $_userAgent; - + /** * Intialize resource * @@ -54,7 +54,7 @@ public function init() return $userAgent; } - + /** * Get UserAgent instance * @@ -66,7 +66,7 @@ public function getUserAgent() $options = $this->getOptions(); $this->_userAgent = new Zend_Http_UserAgent($options); } - + return $this->_userAgent; } } diff --git a/lib/Zend/Cache/Backend/TwoLevels.php b/lib/Zend/Cache/Backend/TwoLevels.php index 0b8afdf4c34..48835eb4259 100644 --- a/lib/Zend/Cache/Backend/TwoLevels.php +++ b/lib/Zend/Cache/Backend/TwoLevels.php @@ -76,7 +76,7 @@ class Zend_Cache_Backend_TwoLevels extends Zend_Cache_Backend implements Zend_Ca * - If true, automatically fill the fast cache when a cache record was not found in fast cache, but did * exist in slow cache. This can be usefull when a non-persistent cache like APC or Memcached got * purged for whatever reason. - * + * * =====> (boolean) auto_refresh_fast_cache * - If true, auto refresh the fast cache when a cache record is hit * @@ -238,7 +238,7 @@ public function load($id, $doNotTestCacheValidity = false) } } $array = $resultFast !== false ? unserialize($resultFast) : unserialize($resultSlow); - + //In case no cache entry was found in the FastCache and auto-filling is enabled, copy data to FastCache if ($resultFast === false && $this->_options['auto_fill_fast_cache']) { $preparedData = $this->_prepareData($array['data'], $array['lifetime'], $array['priority']); diff --git a/lib/Zend/Captcha/Dumb.php b/lib/Zend/Captcha/Dumb.php index c8488688181..803f15e3d5d 100644 --- a/lib/Zend/Captcha/Dumb.php +++ b/lib/Zend/Captcha/Dumb.php @@ -41,7 +41,7 @@ class Zend_Captcha_Dumb extends Zend_Captcha_Word * @type string */ protected $_label = 'Please type this word backwards'; - + /** * Set the label for the CAPTCHA * @param string $label @@ -50,7 +50,7 @@ public function setLabel($label) { $this->_label = $label; } - + /** * Retrieve the label for the CAPTCHA * @return string diff --git a/lib/Zend/Captcha/Word.php b/lib/Zend/Captcha/Word.php index d24b826fe05..617bae19ff8 100644 --- a/lib/Zend/Captcha/Word.php +++ b/lib/Zend/Captcha/Word.php @@ -250,7 +250,7 @@ public function setUseNumbers($_useNumbers) $this->_useNumbers = $_useNumbers; return $this; } - + /** * Get session object * diff --git a/lib/Zend/Cloud/Infrastructure/Adapter.php b/lib/Zend/Cloud/Infrastructure/Adapter.php index 1192127aa67..bc3c1cdec32 100644 --- a/lib/Zend/Cloud/Infrastructure/Adapter.php +++ b/lib/Zend/Cloud/Infrastructure/Adapter.php @@ -9,15 +9,15 @@ /** * Adapter interface for infrastructure service - * + * * @package Zend_Cloud * @subpackage Infrastructure * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -interface Zend_Cloud_Infrastructure_Adapter -{ - const HTTP_ADAPTER = 'http_adapter'; +interface Zend_Cloud_Infrastructure_Adapter +{ + const HTTP_ADAPTER = 'http_adapter'; /** * The max. amount of time, in seconds, to wait for a status change @@ -33,90 +33,90 @@ interface Zend_Cloud_Infrastructure_Adapter * Return a list of the available instances * * @return InstanceList - */ - public function listInstances(); - + */ + public function listInstances(); + /** * Return the status of an instance * * @param string $id * @return string - */ - public function statusInstance($id); + */ + public function statusInstance($id); /** * Wait for status $status with a timeout of $timeout seconds - * + * * @param string $id * @param string $status - * @param integer $timeout + * @param integer $timeout * @return boolean */ public function waitStatusInstance($id, $status, $timeout = self::TIMEOUT_STATUS_CHANGE); - + /** * Return the public DNS name of the instance - * + * * @param string $id - * @return string|boolean + * @return string|boolean */ public function publicDnsInstance($id); - + /** * Reboot an instance * * @param string $id * @return boolean - */ - public function rebootInstance($id); - + */ + public function rebootInstance($id); + /** * Create a new instance * * @param string $name * @param array $options * @return boolean - */ - public function createInstance($name, $options); - + */ + public function createInstance($name, $options); + /** * Stop the execution of an instance * * @param string $id * @return boolean - */ - public function stopInstance($id); - + */ + public function stopInstance($id); + /** * Start the execution of an instance * * @param string $id * @return boolean - */ - public function startInstance($id); - + */ + public function startInstance($id); + /** * Destroy an instance * * @param string $id * @return boolean - */ - public function destroyInstance($id); - + */ + public function destroyInstance($id); + /** * Return all the available instances images * * @return ImageList - */ - public function imagesInstance(); - + */ + public function imagesInstance(); + /** * Return all the available zones - * + * * @return array */ public function zonesInstance(); - + /** * Return the system informations about the $metric of an instance * @@ -124,9 +124,9 @@ public function zonesInstance(); * @param string $metric * @param array $options * @return array - */ - public function monitorInstance($id, $metric, $options = null); - + */ + public function monitorInstance($id, $metric, $options = null); + /** * Run arbitrary shell script on an instance * @@ -134,34 +134,34 @@ public function monitorInstance($id, $metric, $options = null); * @param array $param * @param string|array $cmd * @return string|array - */ + */ public function deployInstance($id, $param, $cmd); - + /** * Get the adapter instance - * + * * @return object */ public function getAdapter(); - + /** * Get the adapter result - * + * * @return array */ public function getAdapterResult(); - + /** * Get the last HTTP response - * + * * @return Zend_Http_Response */ public function getLastHttpResponse(); - + /** * Get the last HTTP request - * + * * @return string */ public function getLastHttpRequest(); -} +} diff --git a/lib/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php b/lib/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php index 7a5fbcd366e..2b729a0daa2 100644 --- a/lib/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php +++ b/lib/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php @@ -33,14 +33,14 @@ abstract class Zend_Cloud_Infrastructure_Adapter_AbstractAdapter implements Zend { /** * Store the last response from the adpter - * + * * @var array */ protected $adapterResult; - + /** * Valid metrics for monitor - * + * * @var array */ protected $validMetrics = array( @@ -65,10 +65,10 @@ public function getAdapterResult() /** * Wait for status $status with a timeout of $timeout seconds - * + * * @param string $id * @param string $status - * @param integer $timeout + * @param integer $timeout * @return boolean */ public function waitStatusInstance($id, $status, $timeout = self::TIMEOUT_STATUS_CHANGE) @@ -92,7 +92,7 @@ public function waitStatusInstance($id, $status, $timeout = self::TIMEOUT_STATUS * @param array $param * @param string|array $cmd * @return string|array - */ + */ public function deployInstance($id, $params, $cmd) { if (!function_exists("ssh2_connect")) { @@ -110,9 +110,9 @@ public function deployInstance($id, $params, $cmd) throw new Zend_Cloud_Infrastructure_Exception('You must specify the shell commands to run on the instance'); } - if (empty($params) - || empty($params[Zend_Cloud_Infrastructure_Instance::SSH_USERNAME]) - || (empty($params[Zend_Cloud_Infrastructure_Instance::SSH_PASSWORD]) + if (empty($params) + || empty($params[Zend_Cloud_Infrastructure_Instance::SSH_USERNAME]) + || (empty($params[Zend_Cloud_Infrastructure_Instance::SSH_PASSWORD]) && empty($params[Zend_Cloud_Infrastructure_Instance::SSH_KEY])) ) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; @@ -123,13 +123,13 @@ public function deployInstance($id, $params, $cmd) if (empty($host)) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception(sprintf( - 'The instance identified by "%s" does not exist', + 'The instance identified by "%s" does not exist', $id )); } $conn = ssh2_connect($host); - if (!ssh2_auth_password($conn, $params[Zend_Cloud_Infrastructure_Instance::SSH_USERNAME], + if (!ssh2_auth_password($conn, $params[Zend_Cloud_Infrastructure_Instance::SSH_USERNAME], $params[Zend_Cloud_Infrastructure_Instance::SSH_PASSWORD])) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('SSH authentication failed'); @@ -142,11 +142,11 @@ public function deployInstance($id, $params, $cmd) $errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR); stream_set_blocking($errorStream, true); - stream_set_blocking($stream, true); + stream_set_blocking($stream, true); $output = stream_get_contents($stream); $error = stream_get_contents($errorStream); - + if (empty($error)) { $result[$command] = $output; } else { @@ -159,17 +159,17 @@ public function deployInstance($id, $params, $cmd) $errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR); stream_set_blocking($errorStream, true); - stream_set_blocking($stream, true); + stream_set_blocking($stream, true); $output = stream_get_contents($stream); $error = stream_get_contents($errorStream); - + if (empty($error)) { $result = $output; } else { $result = $error; } - } + } return $result; } } diff --git a/lib/Zend/Cloud/Infrastructure/Adapter/Ec2.php b/lib/Zend/Cloud/Infrastructure/Adapter/Ec2.php index c10d6ee8865..defb5633c77 100644 --- a/lib/Zend/Cloud/Infrastructure/Adapter/Ec2.php +++ b/lib/Zend/Cloud/Infrastructure/Adapter/Ec2.php @@ -36,58 +36,58 @@ class Zend_Cloud_Infrastructure_Adapter_Ec2 extends Zend_Cloud_Infrastructure_Ad const AWS_SECURITY_GROUP = 'securityGroup'; /** - * Ec2 Instance - * + * Ec2 Instance + * * @var Ec2Instance */ protected $ec2; /** * Ec2 Image - * + * * @var Ec2Image */ protected $ec2Image; /** * Ec2 Zone - * + * * @var Ec2Zone */ protected $ec2Zone; /** - * Ec2 Monitor - * + * Ec2 Monitor + * * @var Ec2Monitor */ protected $ec2Monitor; /** * AWS Access Key - * - * @var string + * + * @var string */ protected $accessKey; /** * AWS Access Secret - * - * @var string + * + * @var string */ protected $accessSecret; /** - * Region zone - * - * @var string + * Region zone + * + * @var string */ protected $region; /** * Map array between EC2 and Infrastructure status - * - * @var array + * + * @var array */ protected $mapStatus = array ( 'running' => Zend_Cloud_Infrastructure_Instance::STATUS_RUNNING, @@ -101,8 +101,8 @@ class Zend_Cloud_Infrastructure_Adapter_Ec2 extends Zend_Cloud_Infrastructure_Ad /** * Map monitor metrics between Infrastructure and EC2 - * - * @var array + * + * @var array */ protected $mapMetrics= array ( Zend_Cloud_Infrastructure_Instance::MONITOR_CPU => 'CPUUtilization', @@ -127,13 +127,13 @@ public function __construct($options = array()) $options = iterator_to_array($options); } } - + if (empty($options) || !is_array($options)) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('Invalid options provided'); } - - if (!isset($options[self::AWS_ACCESS_KEY]) + + if (!isset($options[self::AWS_ACCESS_KEY]) || !isset($options[self::AWS_SECRET_KEY]) ) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; @@ -162,13 +162,13 @@ public function __construct($options = array()) /** * Convert the attributes of EC2 into attributes of Infrastructure - * + * * @param array $attr - * @return array|boolean + * @return array|boolean */ private function convertAttributes($attr) { - $result = array(); + $result = array(); if (!empty($attr) && is_array($attr)) { $result[Zend_Cloud_Infrastructure_Instance::INSTANCE_ID] = $attr['instanceId']; $result[Zend_Cloud_Infrastructure_Instance::INSTANCE_STATUS] = $this->mapStatus[$attr['instanceState']['name']]; @@ -216,8 +216,8 @@ private function convertAttributes($attr) * Return a list of the available instancies * * @return Zend_Cloud_Infrastructure_InstanceList - */ - public function listInstances() + */ + public function listInstances() { $this->adapterResult = $this->ec2->describe(); @@ -233,29 +233,29 @@ public function listInstances() * * @param string * @return string|boolean - */ + */ public function statusInstance($id) { $this->adapterResult = $this->ec2->describe($id); if (empty($this->adapterResult['instances'])) { return false; - } + } $result = $this->adapterResult['instances'][0]; return $this->mapStatus[$result['instanceState']['name']]; } /** * Return the public DNS name of the instance - * + * * @param string $id - * @return string|boolean + * @return string|boolean */ - public function publicDnsInstance($id) + public function publicDnsInstance($id) { $this->adapterResult = $this->ec2->describe($id); if (empty($this->adapterResult['instances'])) { return false; - } + } $result = $this->adapterResult['instances'][0]; return $result['dnsName']; } @@ -265,7 +265,7 @@ public function publicDnsInstance($id) * * @param string $id * @return boolean - */ + */ public function rebootInstance($id) { $this->adapterResult= $this->ec2->reboot($id); @@ -278,7 +278,7 @@ public function rebootInstance($id) * @param string $name * @param array $options * @return Instance|boolean - */ + */ public function createInstance($name, $options) { // @todo instance's name management? @@ -295,42 +295,42 @@ public function createInstance($name, $options) * * @param string $id * @return boolean - */ + */ public function stopInstance($id) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The stopInstance method is not implemented in the adapter'); } - + /** * Start an instance * * @param string $id * @return boolean - */ + */ public function startInstance($id) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The startInstance method is not implemented in the adapter'); } - + /** * Destroy an instance * * @param string $id * @return boolean - */ + */ public function destroyInstance($id) { $this->adapterResult = $this->ec2->terminate($id); return (!empty($this->adapterResult)); } - + /** * Return a list of all the available instance images * * @return ImageList - */ + */ public function imagesInstance() { if (!isset($this->ec2Image)) { @@ -338,7 +338,7 @@ public function imagesInstance() } $this->adapterResult = $this->ec2Image->describe(); - + $images = array(); foreach ($this->adapterResult as $result) { @@ -365,7 +365,7 @@ public function imagesInstance() /** * Return all the available zones - * + * * @return array */ public function zonesInstance() @@ -388,12 +388,12 @@ public function zonesInstance() /** * Return the system information about the $metric of an instance - * + * * @param string $id * @param string $metric * @param null|array $options * @return array - */ + */ public function monitorInstance($id, $metric, $options = null) { if (empty($id) || empty($metric)) { @@ -403,7 +403,7 @@ public function monitorInstance($id, $metric, $options = null) if (!in_array($metric,$this->validMetrics)) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception(sprintf( - 'The metric "%s" is not valid', + 'The metric "%s" is not valid', $metric )); } @@ -413,8 +413,8 @@ public function monitorInstance($id, $metric, $options = null) throw new Zend_Cloud_Infrastructure_Exception('The options must be an array'); } - if (!empty($options) - && (empty($options[Zend_Cloud_Infrastructure_Instance::MONITOR_START_TIME]) + if (!empty($options) + && (empty($options[Zend_Cloud_Infrastructure_Instance::MONITOR_START_TIME]) || empty($options[Zend_Cloud_Infrastructure_Instance::MONITOR_END_TIME])) ) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; @@ -423,7 +423,7 @@ public function monitorInstance($id, $metric, $options = null) $options[Zend_Cloud_Infrastructure_Instance::MONITOR_START_TIME], $options[Zend_Cloud_Infrastructure_Instance::MONITOR_END_TIME] )); - } + } if (!isset($this->ec2Monitor)) { $this->ec2Monitor = new Zend_Service_Amazon_Ec2_CloudWatch($this->accessKey, $this->accessSecret, $this->region); @@ -465,8 +465,8 @@ public function monitorInstance($id, $metric, $options = null) } /** - * Get the adapter - * + * Get the adapter + * * @return Zend_Service_Amazon_Ec2_Instance */ public function getAdapter() @@ -476,8 +476,8 @@ public function getAdapter() /** * Get last HTTP request - * - * @return string + * + * @return string */ public function getLastHttpRequest() { @@ -486,8 +486,8 @@ public function getLastHttpRequest() /** * Get the last HTTP response - * - * @return Zend_Http_Response + * + * @return Zend_Http_Response */ public function getLastHttpResponse() { diff --git a/lib/Zend/Cloud/Infrastructure/Adapter/Rackspace.php b/lib/Zend/Cloud/Infrastructure/Adapter/Rackspace.php index f1b38dd0e37..c23f627e76f 100644 --- a/lib/Zend/Cloud/Infrastructure/Adapter/Rackspace.php +++ b/lib/Zend/Cloud/Infrastructure/Adapter/Rackspace.php @@ -34,40 +34,40 @@ class Zend_Cloud_Infrastructure_Adapter_Rackspace extends Zend_Cloud_Infrastruct const RACKSPACE_ZONE_UK = 'UK'; const MONITOR_CPU_SAMPLES = 3; /** - * Rackspace Servers Instance - * + * Rackspace Servers Instance + * * @var Zend_Service_Rackspace_Servers */ protected $rackspace; /** * Rackspace access user - * - * @var string + * + * @var string */ protected $accessUser; /** * Rackspace access key - * - * @var string + * + * @var string */ protected $accessKey; /** * Rackspace Region - * - * @var string + * + * @var string */ protected $region; /** * Flavors - * - * @var array + * + * @var array */ protected $flavors; /** * Map array between Rackspace and Infrastructure status - * - * @var array + * + * @var array */ protected $mapStatus = array ( 'ACTIVE' => Zend_Cloud_Infrastructure_Instance::STATUS_RUNNING, @@ -102,12 +102,12 @@ public function __construct($options = array()) $options = iterator_to_array($options); } } - + if (empty($options) || !is_array($options)) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('Invalid options provided'); } - + if (!isset($options[self::RACKSPACE_USER])) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('Rackspace access user not specified!'); @@ -117,10 +117,10 @@ public function __construct($options = array()) #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('Rackspace access key not specified!'); } - + $this->accessUser = $options[self::RACKSPACE_USER]; $this->accessKey = $options[self::RACKSPACE_KEY]; - + if (isset($options[self::RACKSPACE_REGION])) { switch ($options[self::RACKSPACE_REGION]) { case self::RACKSPACE_ZONE_UK: @@ -147,17 +147,17 @@ public function __construct($options = array()) if (isset($options[self::HTTP_ADAPTER])) { $this->rackspace->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]); } - + } /** * Convert the attributes of Rackspace server into attributes of Infrastructure - * + * * @param array $attr - * @return array|boolean + * @return array|boolean */ protected function convertAttributes($attr) { - $result = array(); + $result = array(); if (!empty($attr) && is_array($attr)) { $result[Zend_Cloud_Infrastructure_Instance::INSTANCE_ID] = $attr['id']; $result[Zend_Cloud_Infrastructure_Instance::INSTANCE_NAME] = $attr['name']; @@ -177,8 +177,8 @@ protected function convertAttributes($attr) * Return a list of the available instancies * * @return InstanceList|boolean - */ - public function listInstances() + */ + public function listInstances() { $this->adapterResult = $this->rackspace->listServers(true); if ($this->adapterResult===false) { @@ -196,7 +196,7 @@ public function listInstances() * * @param string * @return string|boolean - */ + */ public function statusInstance($id) { $this->adapterResult = $this->rackspace->getServer($id); @@ -208,16 +208,16 @@ public function statusInstance($id) } /** * Return the public DNS name/Ip address of the instance - * + * * @param string $id - * @return string|boolean + * @return string|boolean */ - public function publicDnsInstance($id) + public function publicDnsInstance($id) { $this->adapterResult = $this->rackspace->getServerPublicIp($id); if (empty($this->adapterResult)) { return false; - } + } return $this->adapterResult[0]; } /** @@ -225,7 +225,7 @@ public function publicDnsInstance($id) * * @param string $id * @return boolean - */ + */ public function rebootInstance($id) { return $this->rackspace->rebootServer($id,true); @@ -236,7 +236,7 @@ public function rebootInstance($id) * @param string $name * @param array $options * @return Instance|boolean - */ + */ public function createInstance($name, $options) { if (empty($name)) { @@ -270,31 +270,31 @@ public function createInstance($name, $options) * * @param string $id * @return boolean - */ + */ public function stopInstance($id) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The stopInstance method is not implemented in the adapter'); } - + /** * Start an instance * * @param string $id * @return boolean - */ + */ public function startInstance($id) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The startInstance method is not implemented in the adapter'); } - + /** * Destroy an instance * * @param string $id * @return boolean - */ + */ public function destroyInstance($id) { $this->adapterResult= $this->rackspace->deleteServer($id); @@ -304,17 +304,17 @@ public function destroyInstance($id) * Return a list of all the available instance images * * @return ImageList|boolean - */ + */ public function imagesInstance() { $this->adapterResult = $this->rackspace->listImages(true); if ($this->adapterResult===false) { return false; } - + $images= $this->adapterResult->toArray(); $result= array(); - + foreach ($images as $image) { if (strtolower($image['status'])==='active') { if (strpos($image['name'],'Windows')!==false) { @@ -340,7 +340,7 @@ public function imagesInstance() } /** * Return all the available zones - * + * * @return array */ public function zonesInstance() @@ -350,12 +350,12 @@ public function zonesInstance() /** * Return the system information about the $metric of an instance * NOTE: it works only for Linux servers - * + * * @param string $id * @param string $metric * @param null|array $options * @return array|boolean - */ + */ public function monitorInstance($id, $metric, $options = null) { if (!function_exists("ssh2_connect")) { @@ -378,7 +378,7 @@ public function monitorInstance($id, $metric, $options = null) #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The options must be an array'); } - + switch ($metric) { case Zend_Cloud_Infrastructure_Instance::MONITOR_CPU: $cmd= 'top -b -n '.self::MONITOR_CPU_SAMPLES.' | grep \'Cpu\''; @@ -394,14 +394,14 @@ public function monitorInstance($id, $metric, $options = null) #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception('The metric specified is not supported by the adapter'); } - + $params= array( Zend_Cloud_Infrastructure_Instance::SSH_USERNAME => $options['username'], Zend_Cloud_Infrastructure_Instance::SSH_PASSWORD => $options['password'] ); $exec_time= time(); $result= $this->deployInstance($id,$params,$cmd); - + if (empty($result)) { return false; } @@ -428,7 +428,7 @@ public function monitorInstance($id, $metric, $options = null) } if ($total>0) { $usage= (float) $used/$total; - } + } break; case Zend_Cloud_Infrastructure_Instance::MONITOR_DISK: if (preg_match('/(\d+)%/', $output,$match)) { @@ -436,26 +436,26 @@ public function monitorInstance($id, $metric, $options = null) } break; } - + $monitor['series'][] = array ( 'timestamp' => $exec_time, 'value' => number_format($usage,2).'%' ); - + $average += $usage; $exec_time+= 60; // seconds $num++; } } - + if ($num>0) { $monitor['average'] = number_format($average/$num,2).'%'; } return $monitor; } /** - * Get the adapter - * + * Get the adapter + * * @return Zend_Service_Rackspace_Servers */ public function getAdapter() @@ -464,8 +464,8 @@ public function getAdapter() } /** * Get last HTTP request - * - * @return string + * + * @return string */ public function getLastHttpRequest() { @@ -473,8 +473,8 @@ public function getLastHttpRequest() } /** * Get the last HTTP response - * - * @return Zend_Http_Response + * + * @return Zend_Http_Response */ public function getLastHttpResponse() { diff --git a/lib/Zend/Cloud/Infrastructure/Exception.php b/lib/Zend/Cloud/Infrastructure/Exception.php index 3645bb07ef2..0f1a0700497 100644 --- a/lib/Zend/Cloud/Infrastructure/Exception.php +++ b/lib/Zend/Cloud/Infrastructure/Exception.php @@ -1,7 +1,7 @@ attributes[$key])) { return $this->attributes[$key]; @@ -106,7 +106,7 @@ public function getAttribute($key) /** * Get all the attributes - * + * * @return array */ public function getAttributes() @@ -116,7 +116,7 @@ public function getAttributes() /** * Get the image ID - * + * * @return string */ public function getId() @@ -126,7 +126,7 @@ public function getId() /** * Get the Owner ID - * + * * @return string */ public function getOwnerId() @@ -136,8 +136,8 @@ public function getOwnerId() /** * Get the name - * - * @return string + * + * @return string */ public function getName() { @@ -146,8 +146,8 @@ public function getName() /** * Get the description - * - * @return string + * + * @return string */ public function getDescription() { @@ -156,8 +156,8 @@ public function getDescription() /** * Get the platform - * - * @return string + * + * @return string */ public function getPlatform() { @@ -166,8 +166,8 @@ public function getPlatform() /** * Get the architecture - * - * @return string + * + * @return string */ public function getArchitecture() { diff --git a/lib/Zend/Cloud/Infrastructure/ImageList.php b/lib/Zend/Cloud/Infrastructure/ImageList.php index 96463a9ee90..7fea82495ea 100644 --- a/lib/Zend/Cloud/Infrastructure/ImageList.php +++ b/lib/Zend/Cloud/Infrastructure/ImageList.php @@ -32,7 +32,7 @@ class Zend_Cloud_Infrastructure_ImageList implements Countable, Iterator, ArrayA /** * The Image adapter (if exists) - * + * * @var object */ protected $adapter; diff --git a/lib/Zend/Cloud/Infrastructure/Instance.php b/lib/Zend/Cloud/Infrastructure/Instance.php index 87f1286ee6e..77f70648698 100644 --- a/lib/Zend/Cloud/Infrastructure/Instance.php +++ b/lib/Zend/Cloud/Infrastructure/Instance.php @@ -15,7 +15,7 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -class Zend_Cloud_Infrastructure_Instance +class Zend_Cloud_Infrastructure_Instance { const STATUS_RUNNING = 'running'; const STATUS_STOPPED = 'stopped'; @@ -56,15 +56,15 @@ class Zend_Cloud_Infrastructure_Instance /** * Instance's attribute - * - * @var array + * + * @var array */ protected $attributes; /** * Attributes required for an instance - * - * @var array + * + * @var array */ protected $attributeRequired = array( self::INSTANCE_ID, @@ -75,9 +75,9 @@ class Zend_Cloud_Infrastructure_Instance /** * Constructor - * + * * @param Adapter $adapter - * @param array $data + * @param array $data * @return void */ public function __construct($adapter, $data = null) @@ -94,7 +94,7 @@ public function __construct($adapter, $data = null) $data = iterator_to_array($data); } } - + if (empty($data) || !is_array($data)) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception("You must pass an array of parameters"); @@ -104,7 +104,7 @@ public function __construct($adapter, $data = null) if (empty($data[$key])) { #require_once 'Zend/Cloud/Infrastructure/Exception.php'; throw new Zend_Cloud_Infrastructure_Exception(sprintf( - 'The param "%s" is a required param for %s', + 'The param "%s" is a required param for %s', $key, __CLASS__ )); @@ -121,7 +121,7 @@ public function __construct($adapter, $data = null) * @param array $data * @return misc|false */ - public function getAttribute($key) + public function getAttribute($key) { if (!empty($this->attributes[$key])) { return $this->attributes[$key]; @@ -131,7 +131,7 @@ public function getAttribute($key) /** * Get all the attributes - * + * * @return array */ public function getAttributes() @@ -141,8 +141,8 @@ public function getAttributes() /** * Get the instance's id - * - * @return string + * + * @return string */ public function getId() { @@ -151,8 +151,8 @@ public function getId() /** * Get the instance's image id - * - * @return string + * + * @return string */ public function getImageId() { @@ -161,8 +161,8 @@ public function getImageId() /** * Get the instance's name - * - * @return string + * + * @return string */ public function getName() { @@ -171,8 +171,8 @@ public function getName() /** * Get the status of the instance - * - * @return string|boolean + * + * @return string|boolean */ public function getStatus() { @@ -181,9 +181,9 @@ public function getStatus() /** * Wait for status $status with a timeout of $timeout seconds - * + * * @param string $status - * @param integer $timeout + * @param integer $timeout * @return boolean */ public function waitStatus($status, $timeout = Adapter::TIMEOUT_STATUS_CHANGE) @@ -193,8 +193,8 @@ public function waitStatus($status, $timeout = Adapter::TIMEOUT_STATUS_CHANGE) /** * Get the public DNS of the instance - * - * @return string + * + * @return string */ public function getPublicDns() { @@ -206,7 +206,7 @@ public function getPublicDns() /** * Get the instance's CPU - * + * * @return string */ public function getCpu() @@ -216,7 +216,7 @@ public function getCpu() /** * Get the instance's RAM size - * + * * @return string */ public function getRamSize() @@ -226,7 +226,7 @@ public function getRamSize() /** * Get the instance's storage size - * + * * @return string */ public function getStorageSize() @@ -236,8 +236,8 @@ public function getStorageSize() /** * Get the instance's zone - * - * @return string + * + * @return string */ public function getZone() { @@ -246,7 +246,7 @@ public function getZone() /** * Get the instance's launch time - * + * * @return string */ public function getLaunchTime() @@ -256,8 +256,8 @@ public function getLaunchTime() /** * Reboot the instance - * - * @return boolean + * + * @return boolean */ public function reboot() { @@ -266,8 +266,8 @@ public function reboot() /** * Stop the instance - * - * @return boolean + * + * @return boolean */ public function stop() { @@ -276,8 +276,8 @@ public function stop() /** * Start the instance - * - * @return boolean + * + * @return boolean */ public function start() { @@ -286,8 +286,8 @@ public function start() /** * Destroy the instance - * - * @return boolean + * + * @return boolean */ public function destroy() { @@ -296,11 +296,11 @@ public function destroy() /** * Return the system informations about the $metric of an instance - * + * * @param string $metric * @param null|array $options * @return array|boolean - */ + */ public function monitor($metric, $options = null) { return $this->adapter->monitorInstance($this->attributes[self::INSTANCE_ID], $metric, $options); diff --git a/lib/Zend/Cloud/StorageService/Adapter/Rackspace.php b/lib/Zend/Cloud/StorageService/Adapter/Rackspace.php index 7e807d35da3..bdc69c2557f 100644 --- a/lib/Zend/Cloud/StorageService/Adapter/Rackspace.php +++ b/lib/Zend/Cloud/StorageService/Adapter/Rackspace.php @@ -38,7 +38,7 @@ class Zend_Cloud_StorageService_Adapter_Rackspace const API_KEY = 'key'; const REMOTE_CONTAINER = 'container'; const DELETE_METADATA_KEY = 'ZF_metadata_deleted'; - + /** * The Rackspace adapter * @var Zend_Service_Rackspace_Files @@ -50,7 +50,7 @@ class Zend_Cloud_StorageService_Adapter_Rackspace * @var string */ protected $_container = 'default'; - + /** * Constructor * @@ -72,13 +72,13 @@ function __construct($options = array()) } catch (Zend_Service_Rackspace_Exception $e) { throw new Zend_Cloud_StorageService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e); } - + if (isset($options[self::HTTP_ADAPTER])) { $this->_rackspace->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]); } if (!empty($options[self::REMOTE_CONTAINER])) { $this->_container = $options[self::REMOTE_CONTAINER]; - } + } } /** @@ -103,7 +103,7 @@ public function fetchItem($path, $options = null) /** * Store an item in the storage service. - * + * * @param string $destinationPath * @param mixed $data * @param array $options @@ -164,18 +164,18 @@ public function moveItem($sourcePath, $destinationPath, $options = null) $this->copyItem($sourcePath, $destinationPath, $options); } catch (Zend_Service_Rackspace_Exception $e) { throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage()); - } + } try { $this->deleteItem($sourcePath); } catch (Zend_Service_Rackspace_Exception $e) { $this->deleteItem($destinationPath); throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage()); - } + } } /** * Rename an item in the storage service to a given name. - * + * * @param string $path * @param string $name * @param array $options @@ -206,7 +206,7 @@ public function fetchMetadata($path, $options = null) $metadata = $result['metadata']; } // delete the self::DELETE_METADATA_KEY - this is a trick to remove all - // the metadata information of an object (see deleteMetadata). + // the metadata information of an object (see deleteMetadata). // Rackspace doesn't have an API to remove the metadata of an object unset($metadata[self::DELETE_METADATA_KEY]); return $metadata; @@ -279,7 +279,7 @@ private function getAllFolders($path, &$resultArray) $options = array ( 'prefix' => $path ); - } + } $files = $this->_rackspace->getObjects($this->_container,$options); if (!$this->_rackspace->isSuccessful()) { throw new Zend_Cloud_StorageService_Exception('Error on get all folders: '.$this->_rackspace->getErrorMsg()); @@ -305,8 +305,8 @@ public function listItems($path, $options = null) $options = array ( 'prefix' => $path ); - } - + } + $files = $this->_rackspace->getObjects($this->_container,$options); if (!$this->_rackspace->isSuccessful()) { throw new Zend_Cloud_StorageService_Exception('Error on list items: '.$this->_rackspace->getErrorMsg()); @@ -316,7 +316,7 @@ public function listItems($path, $options = null) foreach ($files as $file) { $resultArray[] = $file->getName(); } - } + } return $resultArray; } diff --git a/lib/Zend/Cloud/StorageService/Factory.php b/lib/Zend/Cloud/StorageService/Factory.php index cbc7d7e1f47..1c4dad255d7 100644 --- a/lib/Zend/Cloud/StorageService/Factory.php +++ b/lib/Zend/Cloud/StorageService/Factory.php @@ -50,7 +50,7 @@ private function __construct() * Retrieve StorageService adapter * * @param array $options - * @return Zend_Cloud_StorageService_Adapter + * @return Zend_Cloud_StorageService_Adapter */ public static function getAdapter($options = array()) { diff --git a/lib/Zend/CodeGenerator/Php/File.php b/lib/Zend/CodeGenerator/Php/File.php index 0a585290aae..be742c4b6df 100644 --- a/lib/Zend/CodeGenerator/Php/File.php +++ b/lib/Zend/CodeGenerator/Php/File.php @@ -430,7 +430,7 @@ public function generate() foreach ($classes as $class) { if($this->getDocblock() == $class->getDocblock()) { $class->setDocblock(null); - } + } $regex = str_replace('?', $class->getName(), self::$_markerClass); $regex = preg_quote($regex, '#'); if (preg_match('#'.$regex.'#', $output)) { diff --git a/lib/Zend/Config/Xml.php b/lib/Zend/Config/Xml.php index ec74775e40a..ceef39eb0a6 100644 --- a/lib/Zend/Config/Xml.php +++ b/lib/Zend/Config/Xml.php @@ -64,7 +64,7 @@ class Zend_Config_Xml extends Zend_Config * * Note that the keys in $section will override any keys of the same * name in the sections that have been included via "extends". - * + * * The $options parameter may be provided as either a boolean or an array. * If provided as a boolean, this sets the $allowModifications option of * Zend_Config. If provided as an array, there are two configuration @@ -77,7 +77,7 @@ class Zend_Config_Xml extends Zend_Config * * @param string $xml XML file or string to process * @param mixed $section Section to process - * @param array|boolean $options + * @param array|boolean $options * @throws Zend_Config_Exception When xml is not set or cannot be loaded * @throws Zend_Config_Exception When section $sectionName cannot be found in $xml */ diff --git a/lib/Zend/Config/Yaml.php b/lib/Zend/Config/Yaml.php index 7cfc8d62679..b11a407330a 100644 --- a/lib/Zend/Config/Yaml.php +++ b/lib/Zend/Config/Yaml.php @@ -202,7 +202,7 @@ public function __construct($yaml, $section = null, $options = false) if (!isset($config[$sectionName])) { #require_once 'Zend/Config/Exception.php'; throw new Zend_Config_Exception(sprintf( - 'Section "%s" cannot be found', + 'Section "%s" cannot be found', implode(' ', (array)$section) )); } @@ -214,7 +214,7 @@ public function __construct($yaml, $section = null, $options = false) if (!isset($config[$section])) { #require_once 'Zend/Config/Exception.php'; throw new Zend_Config_Exception(sprintf( - 'Section "%s" cannot be found', + 'Section "%s" cannot be found', implode(' ', (array)$section) )); } diff --git a/lib/Zend/Controller/Action/Helper/FlashMessenger.php b/lib/Zend/Controller/Action/Helper/FlashMessenger.php index 792ae87373f..307606aef9e 100644 --- a/lib/Zend/Controller/Action/Helper/FlashMessenger.php +++ b/lib/Zend/Controller/Action/Helper/FlashMessenger.php @@ -112,10 +112,10 @@ public function setNamespace($namespace = 'default') $this->_namespace = $namespace; return $this; } - + /** * getNamespace() - return the current namepsace - * + * * @return string */ public function getNamespace() @@ -145,7 +145,7 @@ public function addMessage($message, $namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if (self::$_messageAdded === false) { self::$_session->setExpirationHops(1, null, true); } @@ -170,7 +170,7 @@ public function hasMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + return isset(self::$_messages[$namespace]); } @@ -184,7 +184,7 @@ public function getMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasMessages($namespace)) { return self::$_messages[$namespace]; } @@ -202,7 +202,7 @@ public function clearMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasMessages($namespace)) { unset(self::$_messages[$namespace]); return true; @@ -222,7 +222,7 @@ public function hasCurrentMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + return isset(self::$_session->{$namespace}); } @@ -237,7 +237,7 @@ public function getCurrentMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasCurrentMessages($namespace)) { return self::$_session->{$namespace}; } @@ -255,7 +255,7 @@ public function clearCurrentMessages($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasCurrentMessages($namespace)) { unset(self::$_session->{$namespace}); return true; @@ -274,7 +274,7 @@ public function getIterator($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasMessages($namespace)) { return new ArrayObject($this->getMessages($namespace)); } @@ -292,7 +292,7 @@ public function count($namespace = null) if (!is_string($namespace) || $namespace == '') { $namespace = $this->getNamespace(); } - + if ($this->hasMessages($namespace)) { return count($this->getMessages($namespace)); } diff --git a/lib/Zend/Controller/Action/Helper/ViewRenderer.php b/lib/Zend/Controller/Action/Helper/ViewRenderer.php index e598011924d..b56f755e984 100644 --- a/lib/Zend/Controller/Action/Helper/ViewRenderer.php +++ b/lib/Zend/Controller/Action/Helper/ViewRenderer.php @@ -626,7 +626,7 @@ public function getViewScript($action = null, array $vars = array()) } elseif (null !== $action) { $vars['action'] = $action; } - + $replacePattern = array('/[^a-z0-9]+$/i', '/^[^a-z0-9]+/i'); $vars['action'] = preg_replace($replacePattern, '', $vars['action']); diff --git a/lib/Zend/Controller/Plugin/ErrorHandler.php b/lib/Zend/Controller/Plugin/ErrorHandler.php index 4cac5c2359f..41859620913 100644 --- a/lib/Zend/Controller/Plugin/ErrorHandler.php +++ b/lib/Zend/Controller/Plugin/ErrorHandler.php @@ -211,7 +211,7 @@ public function preDispatch(Zend_Controller_Request_Abstract $request) { $this->_handleError($request); } - + /** * Post dispatch hook -- check for exceptions and dispatch error handler if * necessary diff --git a/lib/Zend/Controller/Request/Http.php b/lib/Zend/Controller/Request/Http.php index 721d35865a6..3c4eeacd1f5 100644 --- a/lib/Zend/Controller/Request/Http.php +++ b/lib/Zend/Controller/Request/Http.php @@ -390,10 +390,10 @@ public function getEnv($key = null, $default = null) public function setRequestUri($requestUri = null) { if ($requestUri === null) { - if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) { + if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) { // IIS with Microsoft Rewrite Module $requestUri = $_SERVER['HTTP_X_ORIGINAL_URL']; - } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) { + } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // IIS with ISAPI_Rewrite $requestUri = $_SERVER['HTTP_X_REWRITE_URL']; } elseif ( @@ -619,16 +619,16 @@ public function setPathInfo($pathInfo = null) $baseUrl = $this->getBaseUrl(); // this actually calls setBaseUrl() & setRequestUri() $baseUrlRaw = $this->getBaseUrl(false); $baseUrlEncoded = urlencode($baseUrlRaw); - + if (null === ($requestUri = $this->getRequestUri())) { return $this; } - + // Remove the query string from REQUEST_URI if ($pos = strpos($requestUri, '?')) { $requestUri = substr($requestUri, 0, $pos); } - + if (!empty($baseUrl) || !empty($baseUrlRaw)) { if (strpos($requestUri, $baseUrl) === 0) { $pathInfo = substr($requestUri, strlen($baseUrl)); @@ -642,7 +642,7 @@ public function setPathInfo($pathInfo = null) } else { $pathInfo = $requestUri; } - + } $this->_pathInfo = (string) $pathInfo; diff --git a/lib/Zend/Crypt/Rsa.php b/lib/Zend/Crypt/Rsa.php index f69cc0bd787..ee29410eae6 100644 --- a/lib/Zend/Crypt/Rsa.php +++ b/lib/Zend/Crypt/Rsa.php @@ -203,9 +203,9 @@ public function decrypt($data, Zend_Crypt_Rsa_Key $key, $format = null) /** * @param array $configargs - * + * * @throws Zend_Crypt_Rsa_Exception - * + * * @return ArrayObject */ public function generateKeys(array $configargs = null) diff --git a/lib/Zend/Date/DateObject.php b/lib/Zend/Date/DateObject.php index 9bffb4ae979..5628429ee11 100644 --- a/lib/Zend/Date/DateObject.php +++ b/lib/Zend/Date/DateObject.php @@ -313,10 +313,10 @@ protected function date($format, $timestamp = null, $gmt = false) if (abs($timestamp) <= 0x7FFFFFFF) { // See ZF-11992 - // "o" will sometimes resolve to the previous year (see - // http://php.net/date ; it's part of the ISO 8601 - // standard). However, this is not desired, so replacing - // all occurrences of "o" not preceded by a backslash + // "o" will sometimes resolve to the previous year (see + // http://php.net/date ; it's part of the ISO 8601 + // standard). However, this is not desired, so replacing + // all occurrences of "o" not preceded by a backslash // with "Y" $format = preg_replace('/(?quoteIdentifier($tableName, true); $stmt = $this->query($sql); $result = $stmt->fetchAll(Zend_Db::FETCH_NUM); - + // ZF-7698 $stmt->closeCursor(); diff --git a/lib/Zend/Db/Statement.php b/lib/Zend/Db/Statement.php index ca811babd91..88380b731f1 100644 --- a/lib/Zend/Db/Statement.php +++ b/lib/Zend/Db/Statement.php @@ -180,7 +180,7 @@ protected function _stripQuoted($sql) // get the character for value quoting // this should be ' $q = $this->_adapter->quote('a'); - $q = $q[0]; + $q = $q[0]; // get the value used as an escaped quote, // e.g. \' or '' $qe = $this->_adapter->quote($q); @@ -193,7 +193,7 @@ protected function _stripQuoted($sql) // this segfaults only after 65,000 characters instead of 9,000 $sql = preg_replace("/$q([^$q{$escapeChar}]*|($qe)*)*$q/s", '', $sql); } - + // get a version of the SQL statement with all quoted // values and delimited identifiers stripped out // remove "foo\"bar" diff --git a/lib/Zend/Db/Statement/Sqlsrv.php b/lib/Zend/Db/Statement/Sqlsrv.php index 6d0a010eaff..c2464165d0a 100644 --- a/lib/Zend/Db/Statement/Sqlsrv.php +++ b/lib/Zend/Db/Statement/Sqlsrv.php @@ -376,7 +376,7 @@ public function nextRowset() #require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); } - + // reset column keys $this->_keys = null; @@ -411,7 +411,7 @@ public function rowCount() return $num_rows; } - + /** * Returns an array containing all of the result set rows. * diff --git a/lib/Zend/Dojo/Form/Element/Editor.php b/lib/Zend/Dojo/Form/Element/Editor.php index 1b15384e31c..b49834924a4 100644 --- a/lib/Zend/Dojo/Form/Element/Editor.php +++ b/lib/Zend/Dojo/Form/Element/Editor.php @@ -610,12 +610,12 @@ public function addExtraPlugin($plugin) if (in_array($plugin, $extraPlugins)) { return $this; } - + $extraPlugins[] = (string) $plugin; $this->setDijitParam('extraPlugins', $extraPlugins); return $this; } - + /** * Add multiple extra plugins. * @@ -629,7 +629,7 @@ public function addExtraPlugins(array $plugins) } return $this; } - + /** * Overwrite many extra plugins at once. * @@ -642,7 +642,7 @@ public function setExtraPlugins(array $plugins) $this->addExtraPlugins($plugins); return $this; } - + /** * Get all extra plugins. * @@ -655,7 +655,7 @@ public function getExtraPlugins() } return $this->getDijitParam('extraPlugins'); } - + /** * Is a given extra plugin registered? * @@ -667,7 +667,7 @@ public function hasExtraPlugin($plugin) $extraPlugins = $this->getExtraPlugins(); return in_array((string) $plugin, $extraPlugins); } - + /** * Remove a given extra plugin. * @@ -684,7 +684,7 @@ public function removeExtraPlugin($plugin) $this->setDijitParam('extraPlugins', $extraPlugins); return $this; } - + /** * Clear all extra plugins. * diff --git a/lib/Zend/Dojo/View/Helper/ComboBox.php b/lib/Zend/Dojo/View/Helper/ComboBox.php index fe7d473318b..cb20ef888d2 100644 --- a/lib/Zend/Dojo/View/Helper/ComboBox.php +++ b/lib/Zend/Dojo/View/Helper/ComboBox.php @@ -100,7 +100,7 @@ public function comboBox($id, $value = null, array $params = array(), array $att return $html; } - // required for correct type casting in declerative mode + // required for correct type casting in declerative mode if (isset($params['autocomplete'])) { $params['autocomplete'] = ($params['autocomplete']) ? 'true' : 'false'; } diff --git a/lib/Zend/Dojo/View/Helper/Editor.php b/lib/Zend/Dojo/View/Helper/Editor.php index 4e1d1b1c2ae..1430a02fe30 100644 --- a/lib/Zend/Dojo/View/Helper/Editor.php +++ b/lib/Zend/Dojo/View/Helper/Editor.php @@ -132,7 +132,7 @@ public function editor($id, $value = null, $params = array(), $attribs = array() . ''; $html .= '_htmlAttribs($hiddenAttribs) . $this->getClosingBracket(); - + return $html; } diff --git a/lib/Zend/EventManager/Event.php b/lib/Zend/EventManager/Event.php index 1461b9a55d5..7f9a52c23c7 100644 --- a/lib/Zend/EventManager/Event.php +++ b/lib/Zend/EventManager/Event.php @@ -23,7 +23,7 @@ /** * Representation of an event * - * Encapsulates the target context and parameters passed, and provides some + * Encapsulates the target context and parameters passed, and provides some * behavior for interacting with the event manager. * * @category Zend @@ -57,10 +57,10 @@ class Zend_EventManager_Event implements Zend_EventManager_EventDescription * Constructor * * Accept a target and its parameters. - * + * * @param string $name Event name - * @param string|object $target - * @param array|ArrayAccess $params + * @param string|object $target + * @param array|ArrayAccess $params * @return void */ public function __construct($name = null, $target = null, $params = null) @@ -80,7 +80,7 @@ public function __construct($name = null, $target = null, $params = null) /** * Get event name - * + * * @return string */ public function getName() @@ -92,7 +92,7 @@ public function getName() * Get the event target * * This may be either an object, or the name of a static method. - * + * * @return string|object */ public function getTarget() @@ -104,8 +104,8 @@ public function getTarget() * Set parameters * * Overwrites parameters - * - * @param array|ArrayAccess|object $params + * + * @param array|ArrayAccess|object $params * @return Event */ public function setParams($params) @@ -124,7 +124,7 @@ public function setParams($params) /** * Get all parameters - * + * * @return array|object|ArrayAccess */ public function getParams() @@ -136,9 +136,9 @@ public function getParams() * Get an individual parameter * * If the parameter does not exist, the $default value will be returned. - * - * @param string|int $name - * @param mixed $default + * + * @param string|int $name + * @param mixed $default * @return mixed */ public function getParam($name, $default = null) @@ -161,8 +161,8 @@ public function getParam($name, $default = null) /** * Set the event name - * - * @param string $name + * + * @param string $name * @return Zend_EventManager_Event */ public function setName($name) @@ -173,8 +173,8 @@ public function setName($name) /** * Set the event target/context - * - * @param null|string|object $target + * + * @param null|string|object $target * @return Zend_EventManager_Event */ public function setTarget($target) @@ -185,9 +185,9 @@ public function setTarget($target) /** * Set an individual parameter to a value - * - * @param string|int $name - * @param mixed $value + * + * @param string|int $name + * @param mixed $value * @return Zend_EventManager_Event */ public function setParam($name, $value) @@ -204,8 +204,8 @@ public function setParam($name, $value) /** * Stop further event propagation - * - * @param bool $flag + * + * @param bool $flag * @return void */ public function stopPropagation($flag = true) @@ -215,7 +215,7 @@ public function stopPropagation($flag = true) /** * Is propagation stopped? - * + * * @return bool */ public function propagationIsStopped() diff --git a/lib/Zend/EventManager/EventCollection.php b/lib/Zend/EventManager/EventCollection.php index 70d1787c90d..c664a54ab62 100644 --- a/lib/Zend/EventManager/EventCollection.php +++ b/lib/Zend/EventManager/EventCollection.php @@ -40,11 +40,11 @@ interface Zend_EventManager_EventCollection * - Passing event name, target, and array|ArrayAccess of arguments * * Can emulate triggerUntil() if the last argument provided is a callback. - * - * @param string $event - * @param object|string $target - * @param array|object $argv - * @param null|callback $callback + * + * @param string $event + * @param object|string $target + * @param array|object $argv + * @param null|callback $callback * @return Zend_EventManager_ResponseCollection */ public function trigger($event, $target = null, $argv = array(), $callback = null); @@ -57,19 +57,19 @@ public function trigger($event, $target = null, $argv = array(), $callback = nul * - Passing event name, Event object, and callback only * - Passing event name, target, Event object, and callback * - Passing event name, target, array|ArrayAccess of arguments, and callback - * - * @param string $event - * @param object|string $target - * @param array|object $argv - * @param callback $callback + * + * @param string $event + * @param object|string $target + * @param array|object $argv + * @param callback $callback * @return Zend_EventManager_ResponseCollection */ public function triggerUntil($event, $target, $argv = null, $callback = null); /** * Attach a listener to an event - * - * @param string $event + * + * @param string $event * @param callback $callback * @param int $priority Priority at which to register listener * @return Zend_Stdlib_CallbackHandler @@ -78,31 +78,31 @@ public function attach($event, $callback = null, $priority = 1); /** * Detach an event listener - * - * @param Zend_Stdlib_CallbackHandler|Zend_EventManager_ListenerAggregate $listener + * + * @param Zend_Stdlib_CallbackHandler|Zend_EventManager_ListenerAggregate $listener * @return void */ public function detach($listener); /** * Get a list of events for which this collection has listeners - * + * * @return array */ public function getEvents(); /** * Retrieve a list of listeners registered to a given event - * - * @param string $event + * + * @param string $event * @return array|object */ public function getListeners($event); /** * Clear all listeners for a given event - * - * @param string $event + * + * @param string $event * @return void */ public function clearListeners($event); diff --git a/lib/Zend/EventManager/EventDescription.php b/lib/Zend/EventManager/EventDescription.php index 2c6bca23bc9..7a6f7beb8b5 100644 --- a/lib/Zend/EventManager/EventDescription.php +++ b/lib/Zend/EventManager/EventDescription.php @@ -30,29 +30,29 @@ interface Zend_EventManager_EventDescription { /** * Get event name - * + * * @return string */ public function getName(); /** * Get target/context from which event was triggered - * + * * @return null|string|object */ public function getTarget(); /** * Get parameters passed to the event - * + * * @return array|ArrayAccess */ public function getParams(); /** * Get a single parameter by name - * - * @param string $name + * + * @param string $name * @param mixed $default Default value to return if parameter does not exist * @return mixed */ @@ -60,48 +60,48 @@ public function getParam($name, $default = null); /** * Set the event name - * - * @param string $name + * + * @param string $name * @return void */ public function setName($name); /** * Set the event target/context - * - * @param null|string|object $target + * + * @param null|string|object $target * @return void */ public function setTarget($target); /** * Set event parameters - * - * @param string $params + * + * @param string $params * @return void */ public function setParams($params); /** * Set a single parameter by key - * - * @param string $name - * @param mixed $value + * + * @param string $name + * @param mixed $value * @return void */ public function setParam($name, $value); /** * Indicate whether or not the parent EventCollection should stop propagating events - * - * @param bool $flag + * + * @param bool $flag * @return void */ public function stopPropagation($flag = true); /** * Has this event indicated event propagation should stop? - * + * * @return bool */ public function propagationIsStopped(); diff --git a/lib/Zend/EventManager/EventManager.php b/lib/Zend/EventManager/EventManager.php index ff34ca057c1..a850c4474a0 100644 --- a/lib/Zend/EventManager/EventManager.php +++ b/lib/Zend/EventManager/EventManager.php @@ -105,7 +105,7 @@ public function setSharedCollections(Zend_EventManager_SharedEventCollection $co * * Sets {@link $sharedCollections} to boolean false to disable ability * to lazy-load static event manager instance. - * + * * @return void */ public function unsetSharedCollections() @@ -261,7 +261,7 @@ public function triggerUntil($event, $target, $argv = null, $callback = null) * executed. By default, this value is 1; however, you may set it for any * integer value. Higher values have higher priority (i.e., execute first). * - * You can specify "*" for the event name. In such cases, the listener will + * You can specify "*" for the event name. In such cases, the listener will * be triggered for every event. * * @param string|array|Zend_EventManager_ListenerAggregate $event An event or array of event names. If a ListenerAggregate, proxies to {@link attachAggregate()}. @@ -525,9 +525,9 @@ protected function getSharedListeners($event) * Add listeners to the master queue of listeners * * Used to inject shared listeners and wildcard listeners. - * - * @param Zend_Stdlib_PriorityQueue $masterListeners - * @param Zend_Stdlib_PriorityQueue $listeners + * + * @param Zend_Stdlib_PriorityQueue $masterListeners + * @param Zend_Stdlib_PriorityQueue $listeners * @return void */ protected function insertListeners($masterListeners, $listeners) diff --git a/lib/Zend/EventManager/EventManagerAware.php b/lib/Zend/EventManager/EventManagerAware.php index e1a9b33f81b..d77cfd4fb7d 100644 --- a/lib/Zend/EventManager/EventManagerAware.php +++ b/lib/Zend/EventManager/EventManagerAware.php @@ -32,8 +32,8 @@ interface Zend_EventManager_EventManagerAware { /** * Inject an EventManager instance - * - * @param Zend_EventManager_EventCollection $eventManager + * + * @param Zend_EventManager_EventCollection $eventManager * @return void */ public function setEventManager(Zend_EventManager_EventCollection $eventManager); diff --git a/lib/Zend/EventManager/Filter.php b/lib/Zend/EventManager/Filter.php index 7243560bbd1..192cc7a28fe 100644 --- a/lib/Zend/EventManager/Filter.php +++ b/lib/Zend/EventManager/Filter.php @@ -32,46 +32,46 @@ interface Zend_EventManager_Filter { /** * Execute the filter chain - * - * @param string|object $context - * @param array $params + * + * @param string|object $context + * @param array $params * @return mixed */ public function run($context, array $params = array()); /** * Attach an intercepting filter - * - * @param callback $callback + * + * @param callback $callback * @return Zend_Stdlib_CallbackHandler */ public function attach($callback); /** * Detach an intercepting filter - * - * @param Zend_Stdlib_CallbackHandler $filter + * + * @param Zend_Stdlib_CallbackHandler $filter * @return bool */ public function detach(Zend_Stdlib_CallbackHandler $filter); /** * Get all intercepting filters - * + * * @return array */ public function getFilters(); /** * Clear all filters - * + * * @return void */ public function clearFilters(); /** * Get all filter responses - * + * * @return Zend_EventManager_ResponseCollection */ public function getResponses(); diff --git a/lib/Zend/EventManager/Filter/FilterIterator.php b/lib/Zend/EventManager/Filter/FilterIterator.php index e960da9139a..24353ddcf59 100644 --- a/lib/Zend/EventManager/Filter/FilterIterator.php +++ b/lib/Zend/EventManager/Filter/FilterIterator.php @@ -22,7 +22,7 @@ #require_once 'Zend/Stdlib/SplPriorityQueue.php'; /** - * Specialized priority queue implementation for use with an intercepting + * Specialized priority queue implementation for use with an intercepting * filter chain. * * Allows removal @@ -36,8 +36,8 @@ class Zend_EventManager_Filter_FilterIterator extends Zend_Stdlib_SplPriorityQue { /** * Does the queue contain a given value? - * - * @param mixed $datum + * + * @param mixed $datum * @return bool */ public function contains($datum) @@ -56,8 +56,8 @@ public function contains($datum) * * This is an expensive operation. It must first iterate through all values, * and then re-populate itself. Use only if absolutely necessary. - * - * @param mixed $datum + * + * @param mixed $datum * @return bool */ public function remove($datum) diff --git a/lib/Zend/EventManager/FilterChain.php b/lib/Zend/EventManager/FilterChain.php index 77289f59467..daf51899d25 100644 --- a/lib/Zend/EventManager/FilterChain.php +++ b/lib/Zend/EventManager/FilterChain.php @@ -41,7 +41,7 @@ class Zend_EventManager_FilterChain implements Zend_EventManager_Filter * Constructor * * Initializes Zend_EventManager_Filter_FilterIterator in which filters will be aggregated - * + * * @return void */ public function __construct() @@ -53,7 +53,7 @@ public function __construct() * Apply the filters * * Begins iteration of the filters. - * + * * @param mixed $context Object under observation * @param mixed $argv Associative array of arguments * @return mixed @@ -95,8 +95,8 @@ public function attach($callback, $priority = 1) /** * Detach a filter from the chain - * - * @param Zend_Stdlib_CallbackHandler $filter + * + * @param Zend_Stdlib_CallbackHandler $filter * @return bool Returns true if filter found and unsubscribed; returns false otherwise */ public function detach(Zend_Stdlib_CallbackHandler $filter) @@ -106,7 +106,7 @@ public function detach(Zend_Stdlib_CallbackHandler $filter) /** * Retrieve all filters - * + * * @return Zend_EventManager_Filter_FilterIterator */ public function getFilters() @@ -116,7 +116,7 @@ public function getFilters() /** * Clear all filters - * + * * @return void */ public function clearFilters() @@ -127,9 +127,9 @@ public function clearFilters() /** * Return current responses * - * Only available while the chain is still being iterated. Returns the + * Only available while the chain is still being iterated. Returns the * current ResponseCollection. - * + * * @return null|Zend_EventManager_ResponseCollection */ public function getResponses() diff --git a/lib/Zend/EventManager/GlobalEventManager.php b/lib/Zend/EventManager/GlobalEventManager.php index 581f8d95ea6..376dafbce2b 100644 --- a/lib/Zend/EventManager/GlobalEventManager.php +++ b/lib/Zend/EventManager/GlobalEventManager.php @@ -24,7 +24,7 @@ /** * Event manager: notification system * - * Use the EventManager when you want to create a per-instance notification + * Use the EventManager when you want to create a per-instance notification * system for your objects. * * @category Zend @@ -41,8 +41,8 @@ class Zend_EventManager_GlobalEventManager /** * Set the event collection on which this will operate - * - * @param null|Zend_EventManager_EventCollection $events + * + * @param null|Zend_EventManager_EventCollection $events * @return void */ public static function setEventCollection(Zend_EventManager_EventCollection $events = null) @@ -65,10 +65,10 @@ public static function getEventCollection() /** * Trigger an event - * - * @param string $event - * @param object|string $context - * @param array|object $argv + * + * @param string $event + * @param object|string $context + * @param array|object $argv * @return Zend_EventManager_ResponseCollection */ public static function trigger($event, $context, $argv = array()) @@ -77,13 +77,13 @@ public static function trigger($event, $context, $argv = array()) } /** - * Trigger listeenrs until return value of one causes a callback to evaluate + * Trigger listeenrs until return value of one causes a callback to evaluate * to true. - * - * @param string $event - * @param string|object $context - * @param array|object $argv - * @param callback $callback + * + * @param string $event + * @param string|object $context + * @param array|object $argv + * @param callback $callback * @return Zend_EventManager_ResponseCollection */ public static function triggerUntil($event, $context, $argv, $callback) @@ -93,10 +93,10 @@ public static function triggerUntil($event, $context, $argv, $callback) /** * Attach a listener to an event - * - * @param string $event - * @param callback $callback - * @param int $priority + * + * @param string $event + * @param callback $callback + * @param int $priority * @return Zend_Stdlib_CallbackHandler */ public static function attach($event, $callback, $priority = 1) @@ -106,8 +106,8 @@ public static function attach($event, $callback, $priority = 1) /** * Detach a callback from a listener - * - * @param Zend_Stdlib_CallbackHandler $listener + * + * @param Zend_Stdlib_CallbackHandler $listener * @return bool */ public static function detach(Zend_Stdlib_CallbackHandler $listener) @@ -117,7 +117,7 @@ public static function detach(Zend_Stdlib_CallbackHandler $listener) /** * Retrieve list of events this object manages - * + * * @return array */ public static function getEvents() @@ -127,8 +127,8 @@ public static function getEvents() /** * Retrieve all listeners for a given event - * - * @param string $event + * + * @param string $event * @return Zend_Stdlib_PriorityQueue|array */ public static function getListeners($event) @@ -138,8 +138,8 @@ public static function getListeners($event) /** * Clear all listeners for a given event - * - * @param string $event + * + * @param string $event * @return void */ public static function clearListeners($event) diff --git a/lib/Zend/EventManager/ResponseCollection.php b/lib/Zend/EventManager/ResponseCollection.php index 6ef9d9aa18b..6aa75fdb136 100644 --- a/lib/Zend/EventManager/ResponseCollection.php +++ b/lib/Zend/EventManager/ResponseCollection.php @@ -38,22 +38,22 @@ class SplStack implements Iterator, ArrayAccess, Countable protected $mode = self::IT_MODE_KEEP; /** - * Count of elements in the stack - * + * Count of elements in the stack + * * @var int */ protected $count = 0; /** * Data represented by this stack - * + * * @var array */ protected $data = array(); /** * Sorted stack of values - * + * * @var false|array */ protected $stack = false; @@ -62,9 +62,9 @@ class SplStack implements Iterator, ArrayAccess, Countable * Set the iterator mode * * Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP - * + * * @todo Currently, IteratorMode is ignored, as we use the default (keep); should this be implemented? - * @param int $mode + * @param int $mode * @return void * @throws InvalidArgumentException */ @@ -84,7 +84,7 @@ public function setIteratorMode($mode) /** * Return last element in the stack - * + * * @return mixed */ public function bottom() @@ -97,7 +97,7 @@ public function bottom() /** * Countable: return count of items in the stack - * + * * @return int */ public function count() @@ -107,7 +107,7 @@ public function count() /** * Iterator: return current item in the stack - * + * * @return mixed */ public function current() @@ -120,7 +120,7 @@ public function current() /** * Get iteration mode - * + * * @return int */ public function getIteratorMode() @@ -153,7 +153,7 @@ public function key() /** * Iterator: advance pointer to next item in the stack - * + * * @return void */ public function next() @@ -166,8 +166,8 @@ public function next() /** * ArrayAccess: does an item exist at the specified offset? - * - * @param mixed $index + * + * @param mixed $index * @return bool */ public function offsetExists($index) @@ -177,8 +177,8 @@ public function offsetExists($index) /** * ArrayAccess: get the item at the specified offset - * - * @param mixed $index + * + * @param mixed $index * @return mixed * @throws OutOfRangeException */ @@ -192,9 +192,9 @@ public function offsetGet($index) /** * ArrayAccess: add an item at the specified offset - * - * @param mixed $index - * @param mixed $newval + * + * @param mixed $index + * @param mixed $newval * @return void */ public function offsetSet($index, $newval) @@ -206,8 +206,8 @@ public function offsetSet($index, $newval) /** * ArrayAccess: unset the item at the specified offset - * - * @param mixed $index + * + * @param mixed $index * @return void * @throws OutOfRangeException */ @@ -247,8 +247,8 @@ public function prev() /** * Push an element to the list - * - * @param mixed $value + * + * @param mixed $value * @return void */ public function push($value) @@ -260,7 +260,7 @@ public function push($value) /** * Iterator: rewind to beginning of stack - * + * * @return void */ public function rewind() @@ -297,7 +297,7 @@ public function shift() /** * Peek at the top node of the stack - * + * * @return mixed */ public function top() @@ -332,7 +332,7 @@ public function unshift($value) $this->count++; $this->stack = false; } - + /** * Iterator: is the current pointer valid? * @@ -355,13 +355,13 @@ public function valid() * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -class Zend_EventManager_ResponseCollection extends SplStack +class Zend_EventManager_ResponseCollection extends SplStack { protected $stopped = false; /** * Did the last response provided trigger a short circuit of the stack? - * + * * @return bool */ public function stopped() @@ -371,8 +371,8 @@ public function stopped() /** * Mark the collection as stopped (or its opposite) - * - * @param bool $flag + * + * @param bool $flag * @return Zend_EventManager_ResponseCollection */ public function setStopped($flag) diff --git a/lib/Zend/EventManager/SharedEventCollectionAware.php b/lib/Zend/EventManager/SharedEventCollectionAware.php index 4a624d05a70..7bf533a0572 100644 --- a/lib/Zend/EventManager/SharedEventCollectionAware.php +++ b/lib/Zend/EventManager/SharedEventCollectionAware.php @@ -34,8 +34,8 @@ interface Zend_EventManager_SharedEventCollectionAware { /** * Inject an EventManager instance - * - * @param Zend_EventManager_SharedEventCollection $sharedEventCollection + * + * @param Zend_EventManager_SharedEventCollection $sharedEventCollection * @return Zend_EventManager_SharedEventCollectionAware */ public function setSharedCollections(Zend_EventManager_SharedEventCollection $sharedEventCollection); diff --git a/lib/Zend/EventManager/SharedEventManager.php b/lib/Zend/EventManager/SharedEventManager.php index 875b0a10420..18b73a739ad 100644 --- a/lib/Zend/EventManager/SharedEventManager.php +++ b/lib/Zend/EventManager/SharedEventManager.php @@ -25,7 +25,7 @@ * Shared/contextual EventManager * * Allows attaching to EMs composed by other classes without having an instance first. - * The assumption is that the SharedEventManager will be injected into EventManager + * The assumption is that the SharedEventManager will be injected into EventManager * instances, and then queried for additional listeners when triggering an event. * * @category Zend @@ -44,8 +44,8 @@ class Zend_EventManager_SharedEventManager implements Zend_EventManager_SharedEv /** * Attach a listener to an event * - * Allows attaching a callback to an event offerred by one or more - * identifying components. As an example, the following connects to the + * Allows attaching a callback to an event offerred by one or more + * identifying components. As an example, the following connects to the * "getAll" event of both an AbstractResource and EntityResource: * * @@ -63,9 +63,9 @@ class Zend_EventManager_SharedEventManager implements Zend_EventManager_SharedEv * } * ); * - * + * * @param string|array $id Identifier(s) for event emitting component(s) - * @param string $event + * @param string $event * @param callback $callback PHP Callback * @param int $priority Priority at which listener should execute * @return void @@ -83,9 +83,9 @@ public function attach($id, $event, $callback, $priority = 1) /** * Detach a listener from an event offered by a given resource - * + * * @param string|int $id - * @param Zend_Stdlib_CallbackHandler $listener + * @param Zend_Stdlib_CallbackHandler $listener * @return bool Returns true if event and listener found, and unsubscribed; returns false if either event or listener not found */ public function detach($id, Zend_Stdlib_CallbackHandler $listener) @@ -98,7 +98,7 @@ public function detach($id, Zend_Stdlib_CallbackHandler $listener) /** * Retrieve all registered events for a given resource - * + * * @param string|int $id * @return array */ @@ -112,9 +112,9 @@ public function getEvents($id) /** * Retrieve all listeners for a given identifier and event - * + * * @param string|int $id - * @param string|int $event + * @param string|int $event * @return false|Zend_Stdlib_PriorityQueue */ public function getListeners($id, $event) @@ -127,9 +127,9 @@ public function getListeners($id, $event) /** * Clear all listeners for a given identifier, optionally for a specific event - * - * @param string|int $id - * @param null|string $event + * + * @param string|int $id + * @param null|string $event * @return bool */ public function clearListeners($id, $event = null) diff --git a/lib/Zend/EventManager/StaticEventManager.php b/lib/Zend/EventManager/StaticEventManager.php index 54442d3bb99..850e0c042ba 100644 --- a/lib/Zend/EventManager/StaticEventManager.php +++ b/lib/Zend/EventManager/StaticEventManager.php @@ -39,7 +39,7 @@ class Zend_EventManager_StaticEventManager extends Zend_EventManager_SharedEvent /** * Singleton - * + * * @return void */ protected function __construct() @@ -57,7 +57,7 @@ private function __clone() /** * Retrieve instance - * + * * @return Zend_EventManager_StaticEventManager */ public static function getInstance() @@ -70,7 +70,7 @@ public static function getInstance() /** * Reset the singleton instance - * + * * @return void */ public static function resetInstance() diff --git a/lib/Zend/Feed/Abstract.php b/lib/Zend/Feed/Abstract.php index f8089689e1d..afc9b720f04 100644 --- a/lib/Zend/Feed/Abstract.php +++ b/lib/Zend/Feed/Abstract.php @@ -263,8 +263,8 @@ abstract public function send(); * Import a feed from a string * * Protects against XXE attack vectors. - * - * @param string $feed + * + * @param string $feed * @return string * @throws Zend_Feed_Exception on detection of an XXE vector */ diff --git a/lib/Zend/Feed/Reader.php b/lib/Zend/Feed/Reader.php index 27b8af0738d..bd3961936a3 100644 --- a/lib/Zend/Feed/Reader.php +++ b/lib/Zend/Feed/Reader.php @@ -341,8 +341,8 @@ public static function importString($string) { $dom = new DOMDocument; try { - $dom = Zend_Xml_Security::scan($string, $dom); - } catch (Zend_Xml_Exception $e) { + $dom = Zend_Xml_Security::scan($string, $dom); + } catch (Zend_Xml_Exception $e) { #require_once 'Zend/Feed/Exception.php'; throw new Zend_Feed_Exception( $e->getMessage() diff --git a/lib/Zend/Filter/File/Rename.php b/lib/Zend/Filter/File/Rename.php index 273486b5d29..bc0667b232b 100644 --- a/lib/Zend/Filter/File/Rename.php +++ b/lib/Zend/Filter/File/Rename.php @@ -142,11 +142,11 @@ public function addFile($options) public function getNewName($value, $source = false) { $file = $this->_getFileName($value); - + if (!is_array($file) || !array_key_exists('source', $file) || !array_key_exists('target', $file)) { return $value; } - + if ($file['source'] == $file['target']) { return $value; } diff --git a/lib/Zend/Filter/Input.php b/lib/Zend/Filter/Input.php index fe5eb14f870..7bb885581fa 100644 --- a/lib/Zend/Filter/Input.php +++ b/lib/Zend/Filter/Input.php @@ -801,8 +801,8 @@ protected function _validate() $this->_data = array(); return; } - - // remember the default not empty message in case we want to temporarily change it + + // remember the default not empty message in case we want to temporarily change it $preserveDefaultNotEmptyMessage = $this->_defaults[self::NOT_EMPTY_MESSAGE]; foreach ($this->_validatorRules as $ruleName => &$validatorRule) { @@ -840,14 +840,14 @@ protected function _validate() } if (!isset($validatorRule[self::ALLOW_EMPTY])) { $foundNotEmptyValidator = false; - + foreach ($validatorRule as $rule) { if ($rule === 'NotEmpty') { $foundNotEmptyValidator = true; // field may not be empty, we are ready break 1; } - + if (is_array($rule)) { $keys = array_keys($rule); $classKey = array_shift($keys); @@ -866,14 +866,14 @@ protected function _validate() // it cannot be a NotEmpty validator, skip this one continue; } - + if($rule instanceof Zend_Validate_NotEmpty) { $foundNotEmptyValidator = true; // field may not be empty, we are ready break 1; } } - + if (!$foundNotEmptyValidator) { $validatorRule[self::ALLOW_EMPTY] = $this->_defaults[self::ALLOW_EMPTY]; } else { @@ -923,7 +923,7 @@ protected function _validate() /** we are changing the defaults here, this is alright if all subsequent validators are also a not empty * validator, but it goes wrong if one of them is not AND is required!!! * that is why we restore the default value at the end of this loop - */ + */ if (is_array($value)) { $temp = $value; // keep the original value $this->_defaults[self::NOT_EMPTY_MESSAGE] = array_pop($temp); @@ -951,11 +951,11 @@ protected function _validate() } else { $this->_validateRule($validatorRule); } - + // reset the default not empty message $this->_defaults[self::NOT_EMPTY_MESSAGE] = $preserveDefaultNotEmptyMessage; } - + /** @@ -1035,8 +1035,8 @@ protected function _validateRule(array $validatorRule) if (!($notEmptyValidator = $this->_getNotEmptyValidatorInstance($validatorRule))) { $notEmptyValidator = $this->_getValidator('NotEmpty'); $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldKey)); - } - + } + if (!$notEmptyValidator->isValid($field)) { foreach ($notEmptyValidator->getMessages() as $messageKey => $message) { if (!isset($messages[$messageKey])) { @@ -1078,7 +1078,7 @@ protected function _validateRule(array $validatorRule) $notEmptyValidator = $this->_getValidator('NotEmpty'); $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldName)); } - + if ($validatorRule[self::ALLOW_EMPTY]) { $validatorChain = $validatorRule[self::VALIDATOR_CHAIN]; } else { @@ -1136,10 +1136,10 @@ protected function _validateRule(array $validatorRule) } } } - + /** * Check a validatorRule for the presence of a NotEmpty validator instance. - * The purpose is to preserve things like a custom message, that may have been + * The purpose is to preserve things like a custom message, that may have been * set on the validator outside Zend_Filter_Input. * @param array $validatorRule * @return mixed false if none is found, Zend_Validate_NotEmpty instance if found @@ -1150,7 +1150,7 @@ protected function _getNotEmptyValidatorInstance($validatorRule) { return $value; } } - + return false; } diff --git a/lib/Zend/Form/Decorator/Captcha/ReCaptcha.php b/lib/Zend/Form/Decorator/Captcha/ReCaptcha.php index ab5cfec2975..1db25e474e5 100644 --- a/lib/Zend/Form/Decorator/Captcha/ReCaptcha.php +++ b/lib/Zend/Form/Decorator/Captcha/ReCaptcha.php @@ -25,7 +25,7 @@ /** * ReCaptcha-based captcha decorator * - * Adds hidden fields for challenge and response input, and JS for populating + * Adds hidden fields for challenge and response input, and JS for populating * from known recaptcha IDs * * @category Zend @@ -77,7 +77,7 @@ public function render($content) )); // Create a window.onload event so that we can bind to the form. - // Once bound, add an onsubmit event that will replace the hidden field + // Once bound, add an onsubmit event that will replace the hidden field // values with those produced by ReCaptcha // zendBindEvent mediates between Mozilla's addEventListener and // IE's sole support for addEvent. @@ -94,7 +94,7 @@ function windowOnLoad(fn) { } function zendBindEvent(el, eventName, eventHandler) { if (el.addEventListener){ - el.addEventListener(eventName, eventHandler, false); + el.addEventListener(eventName, eventHandler, false); } else if (el.attachEvent){ el.attachEvent('on'+eventName, eventHandler); } @@ -106,13 +106,13 @@ function zendBindEvent(el, eventName, eventHandler) { function(e) { document.getElementById("$challengeId").value = document.getElementById("recaptcha_challenge_field").value; document.getElementById("$responseId").value = document.getElementById("recaptcha_response_field").value; - } + } ); }); EOJ; - // Always place the hidden fields before the captcha markup, and follow + // Always place the hidden fields before the captcha markup, and follow // with the JS from above switch ($placement) { case 'PREPEND': diff --git a/lib/Zend/Form/Decorator/Fieldset.php b/lib/Zend/Form/Decorator/Fieldset.php index da6143bc1f4..ad9a540cd11 100644 --- a/lib/Zend/Form/Decorator/Fieldset.php +++ b/lib/Zend/Form/Decorator/Fieldset.php @@ -26,7 +26,7 @@ * Zend_Form_Decorator_Fieldset * * Any options passed will be used as HTML attributes of the fieldset tag. - * + * * * @category Zend * @package Zend_Form diff --git a/lib/Zend/Form/Element.php b/lib/Zend/Form/Element.php index 4c5c127b2bc..b7c71b7bbae 100644 --- a/lib/Zend/Form/Element.php +++ b/lib/Zend/Form/Element.php @@ -338,8 +338,8 @@ public function loadDefaultDecorators() * Used to resolve and return an element ID * * Passed to the HtmlTag decorator as a callback in order to provide an ID. - * - * @param Zend_Form_Decorator_Interface $decorator + * + * @param Zend_Form_Decorator_Interface $decorator * @return string */ public static function resolveElementId(Zend_Form_Decorator_Interface $decorator) diff --git a/lib/Zend/Form/Element/Note.php b/lib/Zend/Form/Element/Note.php index c1f430e7c50..6c90ab5e1cb 100644 --- a/lib/Zend/Form/Element/Note.php +++ b/lib/Zend/Form/Element/Note.php @@ -40,14 +40,14 @@ class Zend_Form_Element_Note extends Zend_Form_Element_Xhtml * @var string */ public $helper = 'formNote'; - + /** * Ignore flag (used when retrieving values at form level) * * @var bool */ protected $_ignore = true; - + /** * Validate element value (pseudo) * diff --git a/lib/Zend/Gdata/Analytics.php b/lib/Zend/Gdata/Analytics.php index ac969e38b25..f0813a98d17 100644 --- a/lib/Zend/Gdata/Analytics.php +++ b/lib/Zend/Gdata/Analytics.php @@ -89,7 +89,7 @@ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1. /** * Retrieve account feed object - * + * * @param string|Zend_Uri_Uri $uri * @return Zend_Gdata_Analytics_AccountFeed */ @@ -103,7 +103,7 @@ public function getAccountFeed($uri = self::ANALYTICS_ACCOUNT_FEED_URI) /** * Retrieve data feed object - * + * * @param string|Zend_Uri_Uri $uri * @return Zend_Gdata_Analytics_DataFeed */ @@ -117,14 +117,14 @@ public function getDataFeed($uri = self::ANALYTICS_FEED_URI) /** * Returns a new DataQuery object. - * + * * @return Zend_Gdata_Analytics_DataQuery */ public function newDataQuery() { return new Zend_Gdata_Analytics_DataQuery(); } - + /** * Returns a new AccountQuery object. * diff --git a/lib/Zend/Gdata/Analytics/AccountQuery.php b/lib/Zend/Gdata/Analytics/AccountQuery.php index 0e3a2272dee..9ac6791f097 100644 --- a/lib/Zend/Gdata/Analytics/AccountQuery.php +++ b/lib/Zend/Gdata/Analytics/AccountQuery.php @@ -38,7 +38,7 @@ class Zend_Gdata_Analytics_AccountQuery extends Zend_Gdata_Query * The default URI used for feeds. */ protected $_defaultFeedUri = self::ANALYTICS_FEED_URI; - + /** * @var string */ @@ -51,10 +51,10 @@ class Zend_Gdata_Analytics_AccountQuery extends Zend_Gdata_Query * @var string */ protected $_profileId = '~all'; - + /** * @var bool - */ + */ protected $_webproperties = false; /** * @var bool @@ -64,7 +64,7 @@ class Zend_Gdata_Analytics_AccountQuery extends Zend_Gdata_Query * @var bool */ protected $_goals = false; - + /** * @param string $accountId * @return Zend_Gdata_Analytics_AccountQuery @@ -74,7 +74,7 @@ public function setAccountId($accountId) $this->_accountId = $accountId; return $this; } - + /** * @return string */ @@ -92,7 +92,7 @@ public function setWebpropertyId($webpropertyId) $this->_webpropertyId = $webpropertyId; return $this; } - + /** * @return string */ @@ -100,7 +100,7 @@ public function getWebpropertyId() { return $this->_webpropertyId; } - + /** * @param string $profileId * @return Zend_Gdata_Analytics_AccountQuery @@ -118,7 +118,7 @@ public function getProfileId() { return $this->_profileId; } - + /** * @param string $accountId * @return Zend_Gdata_Analytics_AccountQuery @@ -126,10 +126,10 @@ public function getProfileId() public function webproperties($accountId = '~all') { $this->_webproperties = true; - $this->setAccountId($accountId); + $this->setAccountId($accountId); return $this; } - + /** * @param string $webpropertyId * @param string $accountId @@ -139,12 +139,12 @@ public function profiles($webpropertyId = '~all', $accountId = '~all') { $this->_profiles = true; if (null !== $accountId) { - $this->setAccountId($accountId); + $this->setAccountId($accountId); } $this->setWebpropertyId($webpropertyId); return $this; } - + /** * @param string $webpropertyId * @param string $accountId @@ -155,31 +155,31 @@ public function goals($profileId = '~all', $webpropertyId = '~all', $accountId = { $this->_goals = true; if (null !== $accountId) { - $this->setAccountId($accountId); + $this->setAccountId($accountId); } if (null !== $webpropertyId) { - $this->setWebpropertyId($webpropertyId); + $this->setWebpropertyId($webpropertyId); } $this->setProfileId($profileId); return $this; } - + /** * @return string url */ public function getQueryUrl() { $url = $this->_defaultFeedUri; - + // add account id if ($this->_webproperties || $this->_profiles || $this->_goals) { $url .= '/' . $this->_accountId . '/webproperties'; } - + if ($this->_profiles || $this->_goals) { $url .= '/' . $this->_webpropertyId . '/profiles'; } - + if ($this->_goals) { $url .= '/' . $this->_profileId . '/goals'; } diff --git a/lib/Zend/Gdata/Analytics/DataEntry.php b/lib/Zend/Gdata/Analytics/DataEntry.php index 0aee206c58f..5a835cd73ab 100644 --- a/lib/Zend/Gdata/Analytics/DataEntry.php +++ b/lib/Zend/Gdata/Analytics/DataEntry.php @@ -75,7 +75,7 @@ protected function takeChildFromDOM($child) } /** - * @param string $name + * @param string $name * @return mixed */ public function getDimension($name) @@ -87,9 +87,9 @@ public function getDimension($name) } return null; } - - /** - * @param string $name + + /** + * @param string $name * @return mixed */ public function getMetric($name) @@ -101,9 +101,9 @@ public function getMetric($name) } return null; } - + /** - * @param string $name + * @param string $name * @return mixed */ public function getValue($name) diff --git a/lib/Zend/Gdata/Analytics/DataQuery.php b/lib/Zend/Gdata/Analytics/DataQuery.php index e8f96b9a0c3..6e11e6612d9 100644 --- a/lib/Zend/Gdata/Analytics/DataQuery.php +++ b/lib/Zend/Gdata/Analytics/DataQuery.php @@ -181,7 +181,7 @@ class Zend_Gdata_Analytics_DataQuery extends Zend_Gdata_Query const METRIC_TOTAL_EVENTS = 'ga:totalEvents'; const METRIC_UNIQUE_EVENTS = 'ga:uniqueEvents'; const METRIC_EVENT_VALUE = 'ga:eventValue'; - + // suported filter operators const EQUALS = "=="; const EQUALS_NOT = "!="; @@ -193,7 +193,7 @@ class Zend_Gdata_Analytics_DataQuery extends Zend_Gdata_Query const CONTAINS_NOT ="!@"; const REGULAR ="=~"; const REGULAR_NOT ="!~"; - + /** * @var string */ @@ -214,7 +214,7 @@ class Zend_Gdata_Analytics_DataQuery extends Zend_Gdata_Query * @var array */ protected $_filters = array(); - + /** * @param string $id * @return Zend_Gdata_Analytics_DataQuery @@ -239,7 +239,7 @@ public function getProfileId() */ public function addDimension($dimension) { - $this->_dimensions[$dimension] = true; + $this->_dimensions[$dimension] = true; return $this; } @@ -305,7 +305,7 @@ public function setEndDate($date) $this->setParam("end-date", $date); return $this; } - + /** * @param string $filter * @return Zend_Gdata_Analytics_DataQuery @@ -315,7 +315,7 @@ public function addFilter($filter) $this->_filters[] = array($filter, true); return $this; } - + /** * @param string $filter * @return Zend_Gdata_Analytics_DataQuery @@ -325,7 +325,7 @@ public function addOrFilter($filter) $this->_filters[] = array($filter, false); return $this; } - + /** * @param string $sort * @param boolean[optional] $descending @@ -337,7 +337,7 @@ public function addSort($sort, $descending=false) $this->_sort[] = ($descending?'-':'').$sort; return $this; } - + /** * @return Zend_Gdata_Analytics_DataQuery */ @@ -346,7 +346,7 @@ public function clearSort() $this->_sort = array(); return $this; } - + /** * @param string $segment * @return Zend_Gdata_Analytics_DataQuery @@ -366,37 +366,37 @@ public function getQueryUrl() if (isset($this->_url)) { $uri = $this->_url; } - + $dimensions = $this->getDimensions(); if (!empty($dimensions)) { $this->setParam('dimensions', implode(",", array_keys($dimensions))); } - + $metrics = $this->getMetrics(); if (!empty($metrics)) { $this->setParam('metrics', implode(",", array_keys($metrics))); } - + // profile id (ga:tableId) if ($this->getProfileId() != null) { $this->setParam('ids', 'ga:'.ltrim($this->getProfileId(), "ga:")); } - + // sorting if ($this->_sort) { $this->setParam('sort', implode(",", $this->_sort)); } - + // filtering $filters = ""; foreach ($this->_filters as $filter) { $filters.=($filter[1]===true?';':',').$filter[0]; } - + if ($filters!="") { $this->setParam('filters', ltrim($filters, ",;")); } - + $uri .= $this->getQueryString(); return $uri; } diff --git a/lib/Zend/Gdata/Analytics/Extension/Dimension.php b/lib/Zend/Gdata/Analytics/Extension/Dimension.php index 44e3ef95cec..2b53a00f288 100644 --- a/lib/Zend/Gdata/Analytics/Extension/Dimension.php +++ b/lib/Zend/Gdata/Analytics/Extension/Dimension.php @@ -30,7 +30,7 @@ * @package Zend_Gdata * @subpackage Analytics */ -class Zend_Gdata_Analytics_Extension_Dimension +class Zend_Gdata_Analytics_Extension_Dimension extends Zend_Gdata_Analytics_Extension_Metric { protected $_rootNamespace = 'ga'; diff --git a/lib/Zend/Gdata/Analytics/Extension/Goal.php b/lib/Zend/Gdata/Analytics/Extension/Goal.php index b9ff1e168da..2b955d6896e 100644 --- a/lib/Zend/Gdata/Analytics/Extension/Goal.php +++ b/lib/Zend/Gdata/Analytics/Extension/Goal.php @@ -40,7 +40,7 @@ public function __construct() $this->registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); parent::__construct(); } - + /** * @return string */ diff --git a/lib/Zend/Gdata/Analytics/Extension/Metric.php b/lib/Zend/Gdata/Analytics/Extension/Metric.php index 07840361a1d..2f8aca5fd16 100644 --- a/lib/Zend/Gdata/Analytics/Extension/Metric.php +++ b/lib/Zend/Gdata/Analytics/Extension/Metric.php @@ -30,7 +30,7 @@ * @package Zend_Gdata * @subpackage Analytics */ -class Zend_Gdata_Analytics_Extension_Metric +class Zend_Gdata_Analytics_Extension_Metric extends Zend_Gdata_Analytics_Extension_Property { protected $_rootNamespace = 'ga'; diff --git a/lib/Zend/Gdata/Gbase/Entry.php b/lib/Zend/Gdata/Gbase/Entry.php index fb5f081a304..13c94f41291 100644 --- a/lib/Zend/Gdata/Gbase/Entry.php +++ b/lib/Zend/Gdata/Gbase/Entry.php @@ -54,6 +54,6 @@ public function __construct($element = null) 'Google Base API has been discontinued by Google and was removed' . ' from Zend Framework in 1.12.0. For more information see: ' . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html' - ); + ); } } diff --git a/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php b/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php index d37d93f284f..e0e1799dc22 100644 --- a/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php +++ b/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php @@ -49,6 +49,6 @@ public function __construct($name = null, $text = null, $type = null) 'Google Base API has been discontinued by Google and was removed' . ' from Zend Framework in 1.12.0. For more information see: ' . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html' - ); + ); } } diff --git a/lib/Zend/Gdata/Gbase/Feed.php b/lib/Zend/Gdata/Gbase/Feed.php index 8b6be12274c..0297ddaa763 100644 --- a/lib/Zend/Gdata/Gbase/Feed.php +++ b/lib/Zend/Gdata/Gbase/Feed.php @@ -56,6 +56,6 @@ public function __construct($element = null) 'Google Base API has been discontinued by Google and was removed' . ' from Zend Framework in 1.12.0. For more information see: ' . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html' - ); + ); } } diff --git a/lib/Zend/Gdata/Gbase/Query.php b/lib/Zend/Gdata/Gbase/Query.php index 2d8cf5eb74a..e5e158f3e1c 100644 --- a/lib/Zend/Gdata/Gbase/Query.php +++ b/lib/Zend/Gdata/Gbase/Query.php @@ -64,6 +64,6 @@ public function __construct($url = null) 'Google Base API has been discontinued by Google and was removed' . ' from Zend Framework in 1.12.0. For more information see: ' . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html' - ); + ); } } diff --git a/lib/Zend/Gdata/Health/Query.php b/lib/Zend/Gdata/Health/Query.php index 1e047a2a93a..6cc815cfa1a 100644 --- a/lib/Zend/Gdata/Health/Query.php +++ b/lib/Zend/Gdata/Health/Query.php @@ -60,7 +60,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query * Namespace for an item category */ const ITEM_CATEGORY_NS = 'http://schemas.google.com/health/item'; - + /** * Create Gdata_Query object */ diff --git a/lib/Zend/Http/Client/Adapter/Proxy.php b/lib/Zend/Http/Client/Adapter/Proxy.php index 658fa60bac6..ddf11489855 100644 --- a/lib/Zend/Http/Client/Adapter/Proxy.php +++ b/lib/Zend/Http/Client/Adapter/Proxy.php @@ -75,10 +75,10 @@ class Zend_Http_Client_Adapter_Proxy extends Zend_Http_Client_Adapter_Socket * @var boolean */ protected $negotiated = false; - + /** * Stores the last CONNECT handshake request - * + * * @var string */ protected $connectHandshakeRequest; @@ -261,7 +261,7 @@ protected function connectHandshake( } } $request .= "\r\n"; - + // @see ZF-3189 $this->connectHandshakeRequest = $request; diff --git a/lib/Zend/Json.php b/lib/Zend/Json.php index 9715430cb4b..7d9514c57dc 100644 --- a/lib/Zend/Json.php +++ b/lib/Zend/Json.php @@ -283,7 +283,7 @@ protected static function _processXml($simpleXmlElementObject, $ignoreXmlAttribu } if (!empty($value)) { $attributes['@text'] = $value; - } + } return array($name => $attributes); } else { return array($name => $value); @@ -364,7 +364,7 @@ public static function fromXml($xmlStringContents, $ignoreXmlAttributes=true) return($jsonStringOutput); } - + /** * Pretty-print JSON string @@ -428,9 +428,9 @@ public static function prettyPrint($json, $options = array()) $result .= $token . $lineBreak; } else { $result .= ( $inLiteral ? '' : $prefix ) . $token; - + // Count # of unescaped double-quotes in token, subtract # of - // escaped double-quotes and if the result is odd then we are + // escaped double-quotes and if the result is odd then we are // inside a string literal if ((substr_count($token, "\"")-substr_count($token, "\\\"")) % 2 != 0) { $inLiteral = !$inLiteral; diff --git a/lib/Zend/Loader.php b/lib/Zend/Loader.php index 318d7557e4e..0eaf0c4332d 100644 --- a/lib/Zend/Loader.php +++ b/lib/Zend/Loader.php @@ -338,6 +338,6 @@ public static function standardiseFile($file) $file = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; } $file .= str_replace('_', DIRECTORY_SEPARATOR, $fileName) . '.php'; - return $file; + return $file; } } diff --git a/lib/Zend/Loader/AutoloaderFactory.php b/lib/Zend/Loader/AutoloaderFactory.php index 5f676e3526a..2ea6357ab19 100644 --- a/lib/Zend/Loader/AutoloaderFactory.php +++ b/lib/Zend/Loader/AutoloaderFactory.php @@ -38,7 +38,7 @@ abstract class Zend_Loader_AutoloaderFactory protected static $loaders = array(); /** - * @var Zend_Loader_StandardAutoloader StandardAutoloader instance for resolving + * @var Zend_Loader_StandardAutoloader StandardAutoloader instance for resolving * autoloader classes via the include_path */ protected static $standardAutoloader; @@ -107,7 +107,7 @@ public static function factory($options = null) if (!class_exists($class) && !$autoloader->autoload($class)) { #require_once 'Exception/InvalidArgumentException.php'; throw new Zend_Loader_Exception_InvalidArgumentException(sprintf( - 'Autoloader class "%s" not loaded', + 'Autoloader class "%s" not loaded', $class )); } @@ -118,7 +118,7 @@ public static function factory($options = null) if (!is_subclass_of($class, 'Zend_Loader_SplAutoloader')) { #require_once 'Exception/InvalidArgumentException.php'; throw new Zend_Loader_Exception_InvalidArgumentException(sprintf( - 'Autoloader class %s must implement Zend\\Loader\\SplAutoloader', + 'Autoloader class %s must implement Zend\\Loader\\SplAutoloader', $class )); } @@ -200,10 +200,10 @@ public static function unregisterAutoloader($autoloaderClass) /** * Get an instance of the standard autoloader * - * Used to attempt to resolve autoloader classes, using the - * StandardAutoloader. The instance is marked as a fallback autoloader, to + * Used to attempt to resolve autoloader classes, using the + * StandardAutoloader. The instance is marked as a fallback autoloader, to * allow resolving autoloaders not under the "Zend" or "Zend" namespaces. - * + * * @return Zend_Loader_SplAutoloader */ protected static function getStandardAutoloader() diff --git a/lib/Zend/Loader/ClassMapAutoloader.php b/lib/Zend/Loader/ClassMapAutoloader.php index 2823bf04054..d9aa55e6f48 100644 --- a/lib/Zend/Loader/ClassMapAutoloader.php +++ b/lib/Zend/Loader/ClassMapAutoloader.php @@ -25,7 +25,7 @@ * Class-map autoloader * * Utilizes class-map files to lookup classfile locations. - * + * * @package Zend_Loader * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license New BSD {@link http://framework.zend.com/license/new-bsd} @@ -48,8 +48,8 @@ class Zend_Loader_ClassMapAutoloader implements Zend_Loader_SplAutoloader * Constructor * * Create a new instance, and optionally configure the autoloader. - * - * @param null|array|Traversable $options + * + * @param null|array|Traversable $options * @return void */ public function __construct($options = null) @@ -63,8 +63,8 @@ public function __construct($options = null) * Configure the autoloader * * Proxies to {@link registerAutoloadMaps()}. - * - * @param array|Traversable $options + * + * @param array|Traversable $options * @return Zend_Loader_ClassMapAutoloader */ public function setOptions($options) @@ -79,10 +79,10 @@ public function setOptions($options) * An autoload map may be either an associative array, or a file returning * an associative array. * - * An autoload map should be an associative array containing + * An autoload map should be an associative array containing * classname/file pairs. - * - * @param string|array $location + * + * @param string|array $location * @return Zend_Loader_ClassMapAutoloader */ public function registerAutoloadMap($map) @@ -110,8 +110,8 @@ public function registerAutoloadMap($map) /** * Register many autoload maps at once - * - * @param array $locations + * + * @param array $locations * @return Zend_Loader_ClassMapAutoloader */ public function registerAutoloadMaps($locations) @@ -128,7 +128,7 @@ public function registerAutoloadMaps($locations) /** * Retrieve current autoload map - * + * * @return array */ public function getAutoloadMap() @@ -138,8 +138,8 @@ public function getAutoloadMap() /** * Defined by Autoloadable - * - * @param string $class + * + * @param string $class * @return void */ public function autoload($class) @@ -151,7 +151,7 @@ public function autoload($class) /** * Register the autoloader with spl_autoload registry - * + * * @return void */ public function register() @@ -169,8 +169,8 @@ public function register() * If the map has been previously loaded, returns the current instance; * otherwise, returns whatever was returned by calling include() on the * location. - * - * @param string $location + * + * @param string $location * @return Zend_Loader_ClassMapAutoloader|mixed * @throws Zend_Loader_Exception_InvalidArgumentException for nonexistent locations */ @@ -198,8 +198,8 @@ protected function loadMapFromFile($location) /** * Resolve the real_path() to a file within a phar. * - * @see https://bugs.php.net/bug.php?id=52769 - * @param string $path + * @see https://bugs.php.net/bug.php?id=52769 + * @param string $path * @return string */ public static function realPharPath($path) @@ -207,7 +207,7 @@ public static function realPharPath($path) if (strpos($path, 'phar:///') !== 0) { return; } - + $parts = explode('/', str_replace(array('/','\\'), '/', substr($path, 8))); $parts = array_values(array_filter($parts, array(__CLASS__, 'concatPharParts'))); @@ -220,8 +220,8 @@ public static function realPharPath($path) /** * Helper callback for filtering phar paths - * - * @param string $part + * + * @param string $part * @return bool */ public static function concatPharParts($part) @@ -231,10 +231,10 @@ public static function concatPharParts($part) /** * Helper callback to resolve a parent path in a Phar archive - * - * @param string $value - * @param int $key - * @param array $parts + * + * @param string $value + * @param int $key + * @param array $parts * @return void */ public static function resolvePharParentPath($value, $key, &$parts) diff --git a/lib/Zend/Loader/SplAutoloader.php b/lib/Zend/Loader/SplAutoloader.php index f502f8f035b..e1b9815d3f2 100644 --- a/lib/Zend/Loader/SplAutoloader.php +++ b/lib/Zend/Loader/SplAutoloader.php @@ -21,7 +21,7 @@ if (interface_exists('Zend_Loader_SplAutoloader')) return; /** - * Defines an interface for classes that may register with the spl_autoload + * Defines an interface for classes that may register with the spl_autoload * registry * * @package Zend_Loader @@ -34,8 +34,8 @@ interface Zend_Loader_SplAutoloader * Constructor * * Allow configuration of the autoloader via the constructor. - * - * @param null|array|Traversable $options + * + * @param null|array|Traversable $options * @return void */ public function __construct($options = null); @@ -43,10 +43,10 @@ public function __construct($options = null); /** * Configure the autoloader * - * In most cases, $options should be either an associative array or + * In most cases, $options should be either an associative array or * Traversable object. - * - * @param array|Traversable $options + * + * @param array|Traversable $options * @return SplAutoloader */ public function setOptions($options); @@ -68,7 +68,7 @@ public function autoload($class); * * spl_autoload_register(array($this, 'autoload')); * - * + * * @return void */ public function register(); diff --git a/lib/Zend/Loader/StandardAutoloader.php b/lib/Zend/Loader/StandardAutoloader.php index 96134dee10a..80703cca5be 100644 --- a/lib/Zend/Loader/StandardAutoloader.php +++ b/lib/Zend/Loader/StandardAutoloader.php @@ -263,9 +263,9 @@ public function register() * * Used by {@link loadClass} during fallback autoloading in PHP versions * prior to 5.3.0. - * - * @param mixed $errno - * @param mixed $errstr + * + * @param mixed $errno + * @param mixed $errstr * @return void */ public function handleError($errno, $errstr) diff --git a/lib/Zend/Locale/Data/characters.xml b/lib/Zend/Locale/Data/characters.xml index ace9566c5b9..7d221d2b98b 100644 --- a/lib/Zend/Locale/Data/characters.xml +++ b/lib/Zend/Locale/Data/characters.xml @@ -521,6 +521,6 @@ For terms of use, see http://www.unicode.org/copyright.html KRW - + diff --git a/lib/Zend/Locale/Data/coverageLevels.xml b/lib/Zend/Locale/Data/coverageLevels.xml index 298f5f3ae31..255a1948d20 100644 --- a/lib/Zend/Locale/Data/coverageLevels.xml +++ b/lib/Zend/Locale/Data/coverageLevels.xml @@ -18,7 +18,7 @@ For terms of use, see http://www.unicode.org/copyright.html - + @@ -74,7 +74,7 @@ For terms of use, see http://www.unicode.org/copyright.html - + @@ -84,8 +84,8 @@ For terms of use, see http://www.unicode.org/copyright.html - - + + @@ -395,8 +395,8 @@ For terms of use, see http://www.unicode.org/copyright.html - - + + @@ -409,7 +409,7 @@ For terms of use, see http://www.unicode.org/copyright.html - + diff --git a/lib/Zend/Locale/Data/languageInfo.xml b/lib/Zend/Locale/Data/languageInfo.xml index a4d4ce4f792..3ab8f194c09 100644 --- a/lib/Zend/Locale/Data/languageInfo.xml +++ b/lib/Zend/Locale/Data/languageInfo.xml @@ -1,6 +1,6 @@ - @@ -137,11 +137,11 @@ - + - + diff --git a/lib/Zend/Locale/Data/supplementalData.xml b/lib/Zend/Locale/Data/supplementalData.xml index b2856533a57..8e801e4098c 100644 --- a/lib/Zend/Locale/Data/supplementalData.xml +++ b/lib/Zend/Locale/Data/supplementalData.xml @@ -83,7 +83,7 @@ Note: When reading these dates, you should read them as inclusive date ranges. The date ranges are like date ranges that you see on tomb stones, but some dates are approximate. Some date ranges overlap due to revolts, invasions, new constitutions, and slow planned adoption of new currency. -The length of time for these change overs vary widely. +The length of time for these change overs vary widely. Sometimes, hyperinflation will cause more than one currency to be in effect in one year. Dates without a "to" attribute mean that the currency is still in use. @@ -104,7 +104,7 @@ application of trade, commerce or banking. ... At its seventeenth session codes for International Standard ISO 4217, "Codes for the representation of currencies and funds", would be suitable for use in international trade. -Most of this list was derived from the following sources: +Most of this list was derived from the following sources: http://www.iso.org/iso/en/prods-services/popstds/currencycodeslist.html http://www.globalfindata.com/gh/index.html http://europa.eu.int/comm/translation/currencies/entable1.htm @@ -1006,8 +1006,8 @@ CLDR adds data for one or more UN M49 numeric region code such as 150. - @@ -4302,12 +4302,12 @@ XXX Code for transations where no currency is involved ZA ZW" /> - + - + @@ -4691,7 +4691,7 @@ XXX Code for transations where no currency is involved - + Dutch official At most 6% are not fluent in English diff --git a/lib/Zend/Locale/Data/supplementalMetadata.xml b/lib/Zend/Locale/Data/supplementalMetadata.xml index 626282815e6..48655fb69c9 100644 --- a/lib/Zend/Locale/Data/supplementalMetadata.xml +++ b/lib/Zend/Locale/Data/supplementalMetadata.xml @@ -38,9 +38,9 @@ ldml alternate approvalRequirement approvalRequirements attributeOrder attribute - - - + + + aa ab ace ach ada ady ae af afh agq ain ak akk ale alt am an ang anp ar arc arn arp arw as asa ast av awa ay az @@ -711,7 +711,7 @@ ldml alternate approvalRequirement approvalRequirements attributeOrder attribute $tzid titlecase-words titlecase-firstword lowercase-words mixed - + (verbatim) ((stand-alone|variant|list|secondary|email|www|short|narrow|new|accounting)(-proposed.*)?|(proposed.*)) @@ -727,7 +727,7 @@ ldml alternate approvalRequirement approvalRequirements attributeOrder attribute [$][a-zA-Z0-9]+ \$.*\$ - + $alt $locale notDoneYet @@ -1771,8 +1771,8 @@ ldml alternate approvalRequirement approvalRequirements attributeOrder attribute - - + + @@ -1789,7 +1789,7 @@ ldml alternate approvalRequirement approvalRequirements attributeOrder attribute - + diff --git a/lib/Zend/Locale/Data/telephoneCodeData.xml b/lib/Zend/Locale/Data/telephoneCodeData.xml index 7f6eff935a0..954d0d25884 100644 --- a/lib/Zend/Locale/Data/telephoneCodeData.xml +++ b/lib/Zend/Locale/Data/telephoneCodeData.xml @@ -14,11 +14,11 @@ For terms of use, see http://www.unicode.org/copyright.html 1. International Telecommunication Union: List Of ITU Recommendation E.164 Assigned Country Codes (Position on 15 September 2007) available at 2. World Telephone Numbering Guide - + Special cases below: 001, AC, AQ, AS, GU, PS, VA, XK, YT Unknown telephoneCountryCode for territories: BV, HM --> - + @@ -75,7 +75,7 @@ For terms of use, see http://www.unicode.org/copyright.html - + @@ -836,7 +836,7 @@ For terms of use, see http://www.unicode.org/copyright.html - + - '; } - + return $meta; } diff --git a/lib/Zend/View/Helper/HtmlElement.php b/lib/Zend/View/Helper/HtmlElement.php index c9357611ba8..394a23608ea 100644 --- a/lib/Zend/View/Helper/HtmlElement.php +++ b/lib/Zend/View/Helper/HtmlElement.php @@ -96,7 +96,7 @@ protected function _isStrictDoctype() $doctype = $this->view->doctype(); return $doctype->isStrict(); } - + /** * Converts an associative array to a string of tag attributes. * diff --git a/lib/Zend/View/Helper/Navigation.php b/lib/Zend/View/Helper/Navigation.php index 7d141649fff..ccafa1d4b4a 100644 --- a/lib/Zend/View/Helper/Navigation.php +++ b/lib/Zend/View/Helper/Navigation.php @@ -164,11 +164,11 @@ public function findHelper($proxy, $strict = true) // Add navigation helper path at the beginning $paths = $this->view->getHelperPaths(); $this->view->setHelperPath(null); - + $this->view->addHelperPath( str_replace('_', '/', self::NS), self::NS); - + foreach ($paths as $ns => $path) { $this->view->addHelperPath($path, $ns); } diff --git a/lib/Zend/View/Helper/Navigation/HelperAbstract.php b/lib/Zend/View/Helper/Navigation/HelperAbstract.php index 31ff56615cd..1251c835283 100644 --- a/lib/Zend/View/Helper/Navigation/HelperAbstract.php +++ b/lib/Zend/View/Helper/Navigation/HelperAbstract.php @@ -922,7 +922,7 @@ protected function _htmlAttribs($attribs) * @return string Normalized ID */ protected function _normalizeId($value) - { + { if (false === $this->_skipPrefixForId) { $prefix = $this->getPrefixForId(); diff --git a/lib/Zend/View/Helper/Navigation/Menu.php b/lib/Zend/View/Helper/Navigation/Menu.php index d003679e135..325dfc56047 100644 --- a/lib/Zend/View/Helper/Navigation/Menu.php +++ b/lib/Zend/View/Helper/Navigation/Menu.php @@ -113,7 +113,7 @@ class Zend_View_Helper_Navigation_Menu * @var string */ protected $_innerIndent = ' '; - + /** * View helper entry point: * Retrieves helper and optionally sets container to operate on @@ -285,10 +285,10 @@ public function getOnlyActiveBranch() { return $this->_onlyActiveBranch; } - + /** * Sets a flag indicating whether to expand all sibling nodes of the active branch - * + * * @param bool $flag [optional] expand all siblings of * nodes in the active branch. Default is true. * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self @@ -311,7 +311,7 @@ public function getExpandSiblingNodesOfActiveBranch() { return $this->_expandSiblingNodesOfActiveBranch; } - + /** * Enables/disables rendering of parents when only rendering active branch * diff --git a/lib/Zend/Xml/Security.php b/lib/Zend/Xml/Security.php index f80da9896b5..1d82a606912 100644 --- a/lib/Zend/Xml/Security.php +++ b/lib/Zend/Xml/Security.php @@ -19,7 +19,7 @@ * @version $Id$ */ - + /** * @category Zend * @package Zend_Xml_SecurityScan diff --git a/lib/Zend/XmlRpc/Response.php b/lib/Zend/XmlRpc/Response.php index 2317c677429..3cdffb7c158 100644 --- a/lib/Zend/XmlRpc/Response.php +++ b/lib/Zend/XmlRpc/Response.php @@ -184,7 +184,7 @@ public function loadXml($response) try { $xml = Zend_Xml_Security::scan($response); - } catch (Zend_Xml_Exception $e) { + } catch (Zend_Xml_Exception $e) { // Not valid XML $this->_fault = new Zend_XmlRpc_Fault(651); $this->_fault->setEncoding($this->getEncoding());