Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #614

Merged
merged 3 commits into from
May 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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