1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-26 20:34:37 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2021-02-08 18:57:55 +00:00 committed by StyleCI Bot
parent 293b767097
commit 065d6cad2b
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class PrimeModule
$y = $x; $y = $x;
$lim = 1 << ($i + 18); $lim = 1 << ($i + 18);
for ($j = 1; $j <= $lim; $j++) { for ($j = 1; $j <= $lim; $j++) {
++$it; $it++;
$a = $x; $a = $x;
$b = $x; $b = $x;
$c = $t; $c = $t;
@ -70,6 +70,7 @@ class PrimeModule
if ($g > 1 && $g < $what) { if ($g > 1 && $g < $what) {
return $g; return $g;
} }
return $what; return $what;
} }

View File

@ -377,6 +377,7 @@ class StructTools
if ($command['modifiers']['FORMAT_ENDIANNESS'] != $command['modifiers']['BIG_ENDIAN']) { if ($command['modifiers']['FORMAT_ENDIANNESS'] != $command['modifiers']['BIG_ENDIAN']) {
$dataarray[$command['datakey']] = strrev($dataarray[$command['datakey']]); $dataarray[$command['datakey']] = strrev($dataarray[$command['datakey']]);
} // Reverse if wrong endianness } // Reverse if wrong endianness
try { try {
switch ($command['phpformat']) { switch ($command['phpformat']) {
case 'p': case 'p':