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

Fix doc blocks consistency and coding standards PSR2 #4352

Merged
merged 2 commits into from
Apr 29, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
if (null !== $credentialValidationCallback) {
$this->setCredentialValidationCallback($credentialValidationCallback);
} else {
$this->setCredentialValidationCallback(function($a, $b){
$this->setCredentialValidationCallback(function($a, $b) {
return $a === $b;
});
}
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Authentication/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Http implements AdapterInterface
/**
* Nonce timeout period
*
* @var integer
* @var int
*/
protected $nonceTimeout;

Expand Down Expand Up @@ -491,7 +491,7 @@ protected function _basicAuth($header)
&& !is_array($result)
&& $this->_secureStringCompare($result, $creds[1])
) {
$identity = array('username'=>$creds[0], 'realm'=>$this->realm);
$identity = array('username' => $creds[0], 'realm' => $this->realm);
return new Authentication\Result(Authentication\Result::SUCCESS, $identity);
} elseif (is_array($result)) {
return new Authentication\Result(Authentication\Result::SUCCESS, $result);
Expand Down Expand Up @@ -583,7 +583,7 @@ protected function _digestAuth($header)
// If our digest matches the client's let them in, otherwise return
// a 401 code and exit to prevent access to the protected resource.
if ($this->_secureStringCompare($digest, $data['response'])) {
$identity = array('username'=>$data['username'], 'realm'=>$data['realm']);
$identity = array('username' => $data['username'], 'realm' => $data['realm']);
return new Authentication\Result(Authentication\Result::SUCCESS, $identity);
}

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Authentication/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct($code, $identity, array $messages = array())

if ($code < self::FAILURE_UNCATEGORIZED) {
$code = self::FAILURE;
} elseif ($code > self::SUCCESS ) {
} elseif ($code > self::SUCCESS) {
$code = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Authentication/Storage/Chain.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()

/**
* @param StorageInterface $storage
* @param integer $priority
* @param int $priority
*/
public function add(StorageInterface $storage, $priority = 1)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static function factory($barcode,
$renderer = static::makeRenderer($renderer, $rendererConfig);
} catch (Exception\ExceptionInterface $e) {
if ($automaticRenderError && !($e instanceof Exception\RendererCreationException)) {
$barcode = static::makeBarcode('error', array( 'text' => $e->getMessage() ));
$barcode = static::makeBarcode('error', array('text' => $e->getMessage()));
$renderer = static::makeRenderer($renderer, array());
} else {
throw $e;
Expand Down
70 changes: 35 additions & 35 deletions library/Zend/Barcode/Object/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,50 +39,50 @@ abstract class AbstractObject implements ObjectInterface

/**
* Height of the object
* @var integer
* @var int
*/
protected $height = null;

/**
* Width of the object
* @var integer
* @var int
*/
protected $width = null;

/**
* Height of the bar
* @var integer
* @var int
*/
protected $barHeight = 50;

/**
* Width of a thin bar
* @var integer
* @var int
*/
protected $barThinWidth = 1;

/**
* Width of a thick bar
* @var integer
* @var int
*/
protected $barThickWidth = 3;

/**
* Factor to multiply bar and font measure
* (barHeight, barThinWidth, barThickWidth & fontSize)
* @var integer
* @var int
*/
protected $factor = 1;

/**
* Font and bars color of the object
* @var integer
* @var int
*/
protected $foreColor = 0x000000;

/**
* Background color of the object
* @var integer
* @var int
*/
protected $backgroundColor = 0xFFFFFF;

Expand Down Expand Up @@ -113,14 +113,14 @@ abstract class AbstractObject implements ObjectInterface
/**
* Offset from the top the object
* (calculated from the orientation)
* @var integer
* @var int
*/
protected $offsetTop = null;

/**
* Offset from the left the object
* (calculated from the orientation)
* @var integer
* @var int
*/
protected $offsetLeft = null;

Expand All @@ -146,7 +146,7 @@ abstract class AbstractObject implements ObjectInterface
* Font resource
* - integer (1 to 5): corresponds to GD included fonts
* - string: corresponds to path of a TTF font
* @var integer|string
* @var int|string
*/
protected $font = null;

Expand All @@ -170,7 +170,7 @@ abstract class AbstractObject implements ObjectInterface

/**
* Fix barcode length (numeric or string like 'even')
* @var integer | string
* @var int | string
*/
protected $barcodeLength = null;

Expand Down Expand Up @@ -272,7 +272,7 @@ public function getType()

/**
* Set height of the barcode bar
* @param integer $value
* @param int $value
* @return \Zend\Barcode\Object\ObjectInterface
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand All @@ -289,7 +289,7 @@ public function setBarHeight($value)

/**
* Get height of the barcode bar
* @return integer
* @return int
*/
public function getBarHeight()
{
Expand All @@ -298,7 +298,7 @@ public function getBarHeight()

/**
* Set thickness of thin bar
* @param integer $value
* @param int $value
* @return \Zend\Barcode\Object\ObjectInterface
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand All @@ -315,7 +315,7 @@ public function setBarThinWidth($value)

/**
* Get thickness of thin bar
* @return integer
* @return int
*/
public function getBarThinWidth()
{
Expand All @@ -324,7 +324,7 @@ public function getBarThinWidth()

/**
* Set thickness of thick bar
* @param integer $value
* @param int $value
* @return \Zend\Barcode\Object\ObjectInterface
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand All @@ -341,7 +341,7 @@ public function setBarThickWidth($value)

/**
* Get thickness of thick bar
* @return integer
* @return int
*/
public function getBarThickWidth()
{
Expand Down Expand Up @@ -369,7 +369,7 @@ public function setFactor($value)
/**
* Get factor applying to
* thinBarWidth - thickBarWidth - barHeight - fontSize
* @return integer
* @return int
*/
public function getFactor()
{
Expand Down Expand Up @@ -398,7 +398,7 @@ public function setForeColor($value)

/**
* Retrieve color of the barcode and text
* @return integer
* @return int
*/
public function getForeColor()
{
Expand All @@ -407,7 +407,7 @@ public function getForeColor()

/**
* Set the color of the background
* @param integer $value
* @param int $value
* @return \Zend\Barcode\Object\ObjectInterface
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand All @@ -427,7 +427,7 @@ public function setBackgroundColor($value)

/**
* Retrieve background color of the image
* @return integer
* @return int
*/
public function getBackgroundColor()
{
Expand Down Expand Up @@ -675,7 +675,7 @@ public function getWithChecksumInText()
* Set the font:
* - if integer between 1 and 5, use gd built-in fonts
* - if string, $value is assumed to be the path to a TTF font
* @param integer|string $value
* @param int|string $value
* @return \Zend\Barcode\Object\ObjectInterface
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand Down Expand Up @@ -706,7 +706,7 @@ public function setFont($value)

/**
* Retrieve the font
* @return integer|string
* @return int|string
*/
public function getFont()
{
Expand Down Expand Up @@ -748,7 +748,7 @@ public function getFontSize()
/**
* Quiet zone before first bar
* and after the last bar
* @return integer
* @return int
*/
public function getQuietZone()
{
Expand Down Expand Up @@ -780,7 +780,7 @@ public function getInstructions()
/**
* Add a polygon drawing instruction in the set of instructions
* @param array $points
* @param integer $color
* @param int $color
* @param bool $filled
*/
protected function addPolygon(array $points, $color = null, $filled = true)
Expand All @@ -802,7 +802,7 @@ protected function addPolygon(array $points, $color = null, $filled = true)
* @param float $size
* @param array $position
* @param string $font
* @param integer $color
* @param int $color
* @param string $alignment
* @param float $orientation
*/
Expand Down Expand Up @@ -862,8 +862,8 @@ protected function checkText($value = null)

/**
* Check the ratio between the thick and the thin bar
* @param integer $min
* @param integer $max
* @param int $min
* @param int $max
* @return void
* @throw \Zend\Barcode\Object\Exception\ExceptionInterface
*/
Expand Down Expand Up @@ -897,7 +897,7 @@ protected function checkFontAndOrientation()
/**
* Width of the result image
* (before any rotation)
* @return integer
* @return int
*/
protected function calculateWidth()
{
Expand All @@ -908,13 +908,13 @@ protected function calculateWidth()

/**
* Calculate the width of the barcode
* @return integer
* @return int
*/
abstract protected function calculateBarcodeWidth();

/**
* Height of the result object
* @return integer
* @return int
*/
protected function calculateHeight()
{
Expand All @@ -925,7 +925,7 @@ protected function calculateHeight()

/**
* Height of the barcode
* @return integer
* @return int
*/
protected function calculateBarcodeHeight()
{
Expand All @@ -941,7 +941,7 @@ protected function calculateBarcodeHeight()
/**
* Get height of the result object
* @param bool $recalculate
* @return integer
* @return int
*/
public function getHeight($recalculate = false)
{
Expand All @@ -956,7 +956,7 @@ public function getHeight($recalculate = false)
/**
* Get width of the result object
* @param bool $recalculate
* @return integer
* @return int
*/
public function getWidth($recalculate = false)
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Codabar.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Codabar extends AbstractObject

/**
* Width of the barcode (in pixels)
* @return integer
* @return int
*/
protected function calculateBarcodeWidth()
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Code128 extends AbstractObject

/**
* Width of the barcode (in pixels)
* @return integer
* @return int
*/
protected function calculateBarcodeWidth()
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Code25.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Code25 extends AbstractObject

/**
* Width of the barcode (in pixels)
* @return integer
* @return int
*/
protected function calculateBarcodeWidth()
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Code25interleaved.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getWithBearerBars()

/**
* Width of the barcode (in pixels)
* @return integer
* @return int
*/
protected function calculateBarcodeWidth()
{
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Barcode/Object/Ean13.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function getDefaultOptions()

/**
* Width of the barcode (in pixels)
* @return integer
* @return int
*/
protected function calculateBarcodeWidth()
{
Expand Down
Loading