Apply fixes from StyleCI (#12124)

This commit is contained in:
Jellyfrog
2020-09-21 15:59:34 +02:00
committed by GitHub
parent 0d56bbd946
commit 29f45ca352
816 changed files with 5038 additions and 5038 deletions

View File

@@ -78,11 +78,11 @@ class IpTest extends TestCase
public function testHexToIp()
{
$this->assertEquals("192.168.1.254", IP::fromHexString("c0 a8 01 fe"));
$this->assertEquals("192.168.1.254", IP::fromHexString("c0a801fe"));
$this->assertEquals("192.168.1.254", IP::fromHexString("c0 a8 01 fe "));
$this->assertEquals("192.168.1.254", IP::fromHexString("\"c0 a8 01 fe\""));
$this->assertEquals("192.168.1.254", IP::fromHexString("192.168.1.254"));
$this->assertEquals('192.168.1.254', IP::fromHexString('c0 a8 01 fe'));
$this->assertEquals('192.168.1.254', IP::fromHexString('c0a801fe'));
$this->assertEquals('192.168.1.254', IP::fromHexString('c0 a8 01 fe '));
$this->assertEquals('192.168.1.254', IP::fromHexString('"c0 a8 01 fe"'));
$this->assertEquals('192.168.1.254', IP::fromHexString('192.168.1.254'));
$this->assertEquals('2001:db8::2:1', IP::fromHexString('2001:db8::2:1'));
$this->assertEquals('2001:db8::2:1', IP::fromHexString('20 01 0d b8 00 00 00 00 00 00 00 00 00 02 00 01'));
@@ -94,7 +94,7 @@ class IpTest extends TestCase
$this->assertEquals('::', IP::fromHexString('00000000000000000000000000000000'));
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::fromHexString("c0 a8 01 01 fe");
IP::fromHexString('c0 a8 01 01 fe');
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
IP::fromHexString('20 01 0d b8 00 00 00 00 00 00 00 00 00 02 00 00 00 01');