Skip to content

Commit

Permalink
Importing state as of zendframework/zendframework@628b809
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Apr 1, 2015
1 parent b54a187 commit 634123f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BigInteger/Adapter/Bcmath.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function comp($leftOperand, $rightOperand)
public function intToBin($operand, $twoc = false)
{
$nb = chr(0);
$isNegative = (strpos($operand, '-') === 0) ? true : false;
$isNegative = (strpos($operand, '-') === 0);
$operand = ltrim($operand, '+-0');

if (empty($operand)) {
Expand Down
2 changes: 1 addition & 1 deletion BigInteger/Adapter/Gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function comp($leftOperand, $rightOperand)
public function intToBin($int, $twoc = false)
{
$nb = chr(0);
$isNegative = (strpos($int, '-') === 0) ? true : false;
$isNegative = (strpos($int, '-') === 0);
$int = ltrim($int, '+-0');

if (empty($int)) {
Expand Down
2 changes: 1 addition & 1 deletion Rand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function getBytes($length, $strong = false)
$checkAlternatives = (file_exists('/dev/urandom') && is_readable('/dev/urandom'))
|| class_exists('\\COM', false);
if (true === $strong && false === $checkAlternatives) {
throw new Exception\RuntimeException (
throw new Exception\RuntimeException(
'This PHP environment doesn\'t support secure random number generation. ' .
'Please consider installing the OpenSSL and/or Mcrypt extensions'
);
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
],
"homepage": "https://github.com/zendframework/zf2",
"autoload": {
"psr-0": {
"psr-4": {
"Zend\\Math\\": ""
}
},
"target-dir": "Zend/Math",
"require": {
"php": ">=5.3.23"
},
Expand Down

0 comments on commit 634123f

Please sign in to comment.