Skip to content

Commit

Permalink
Merge pull request #614 from Austinb/bumbummen99-patch-7
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
Patrick authored May 22, 2022
2 parents 1c84895 + ec0cc01 commit 8d6cce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/GameQ/Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,8 @@ private static function extendBinaryString($input, $length = 4, $littleEndian =
}
}

private static function isLittleEndian() {
$testint = 0x00FF;
$p = pack('S', $testint);
return $testint===current(unpack('v', $p));
private static function isLittleEndian()
{
return 0x00FF === current(unpack('v', pack('S', 0x00FF)));
}
}
4 changes: 2 additions & 2 deletions src/GameQ/Protocols/Arma3.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Arma3 extends Source

/**
* DLC Flags/Bits as defined in the documentation.
*
*
* @see https://community.bistudio.com/wiki/Arma_3:_ServerBrowserProtocol3
*
* @var array
Expand Down Expand Up @@ -178,7 +178,7 @@ protected function processRules(Buffer $buffer)

// Loop over the mods
while ($modCount) {
// Read the mods hash
// Read the mods hash
$result->addSub('mods', 'hash', dechex($responseBuffer->readInt32()));

// Get the information byte containing DLC flag and steamId length
Expand Down

0 comments on commit 8d6cce0

Please sign in to comment.