Skip to content

Commit 634123f

Browse files
committed
1 parent b54a187 commit 634123f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

BigInteger/Adapter/Bcmath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function comp($leftOperand, $rightOperand)
212212
public function intToBin($operand, $twoc = false)
213213
{
214214
$nb = chr(0);
215-
$isNegative = (strpos($operand, '-') === 0) ? true : false;
215+
$isNegative = (strpos($operand, '-') === 0);
216216
$operand = ltrim($operand, '+-0');
217217

218218
if (empty($operand)) {

BigInteger/Adapter/Gmp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function comp($leftOperand, $rightOperand)
203203
public function intToBin($int, $twoc = false)
204204
{
205205
$nb = chr(0);
206-
$isNegative = (strpos($int, '-') === 0) ? true : false;
206+
$isNegative = (strpos($int, '-') === 0);
207207
$int = ltrim($int, '+-0');
208208

209209
if (empty($int)) {

Rand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function getBytes($length, $strong = false)
5454
$checkAlternatives = (file_exists('/dev/urandom') && is_readable('/dev/urandom'))
5555
|| class_exists('\\COM', false);
5656
if (true === $strong && false === $checkAlternatives) {
57-
throw new Exception\RuntimeException (
57+
throw new Exception\RuntimeException(
5858
'This PHP environment doesn\'t support secure random number generation. ' .
5959
'Please consider installing the OpenSSL and/or Mcrypt extensions'
6060
);

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
],
99
"homepage": "https://github.com/zendframework/zf2",
1010
"autoload": {
11-
"psr-0": {
11+
"psr-4": {
1212
"Zend\\Math\\": ""
1313
}
1414
},
15-
"target-dir": "Zend/Math",
1615
"require": {
1716
"php": ">=5.3.23"
1817
},

0 commit comments

Comments
 (0)