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

Commit

Permalink
Merge pull request zendframework/zendframework#4352 from neeckeloo/do…
Browse files Browse the repository at this point in the history
…c-blocks-consistency

Fix doc blocks consistency and coding standards PSR2

Conflicts:
	library/Zend/Barcode/Renderer/Pdf.php
	library/Zend/Mvc/Router/Http/Regex.php
	library/Zend/View/Helper/Navigation/Listener/AclListener.php
  • Loading branch information
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/BigInteger/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface AdapterInterface
* Create adapter-specific representation of a big integer
*
* @param string $operand
* @param integer|null $base
* @param int|null $base
* @return mixed
*/
public function init($operand, $base = null);
Expand Down
4 changes: 2 additions & 2 deletions src/BigInteger/Adapter/Bcmath.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function baseConvert($operand, $fromBase, $toBase = 10)
$chars = self::BASE62_ALPHABET;

// convert to decimal
if ($fromBase == 10 ) {
if ($fromBase == 10) {
$decimal = $operand;
} else {
$decimal = '0';
Expand All @@ -318,7 +318,7 @@ public function baseConvert($operand, $fromBase, $toBase = 10)
}

if ($toBase == 10) {
return $decimal;
return $decimal;
}

// convert decimal to base
Expand Down
4 changes: 2 additions & 2 deletions src/BigInteger/Adapter/Gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Gmp implements AdapterInterface
* Create string representing big integer in decimal form from arbitrary integer format
*
* @param string $operand
* @param integer|null $base
* @param int|null $base
* @return bool|string
*/
public function init($operand, $base = null)
Expand Down Expand Up @@ -292,7 +292,7 @@ public function baseConvert($operand, $fromBase, $toBase = 10)
$chars = self::BASE62_ALPHABET;

// convert operand to decimal
if ($fromBase !== 10 ) {
if ($fromBase !== 10) {
$decimal = '0';
for ($i = 0, $len = strlen($operand); $i < $len; $i++) {
$decimal = gmp_mul($decimal, $fromBase);
Expand Down
10 changes: 5 additions & 5 deletions src/Rand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class Rand
/**
* Generate random bytes using OpenSSL or Mcrypt and mt_rand() as fallback
*
* @param integer $length
* @param int $length
* @param bool $strong true if you need a strong random generator (cryptography)
* @return string
* @throws Exception\RuntimeException
Expand Down Expand Up @@ -109,10 +109,10 @@ public static function getBoolean($strong = false)
/**
* Generate a random integer between $min and $max
*
* @param integer $min
* @param integer $max
* @param int $min
* @param int $max
* @param bool $strong true if you need a strong random generator (cryptography)
* @return integer
* @return int
* @throws Exception\DomainException
*/
public static function getInteger($min, $max, $strong = false)
Expand Down Expand Up @@ -170,7 +170,7 @@ public static function getFloat($strong = false)
* Uses supplied character list for generating the new string.
* If no character list provided - uses Base 64 character set.
*
* @param integer $length
* @param int $length
* @param string|null $charlist
* @param bool $strong true if you need a strong random generator (cryptography)
* @return string
Expand Down

0 comments on commit 0fb5ce8

Please sign in to comment.