Clean up code according to PhpStorm inspections report

This commit is contained in:
Ben Ramsey
2019-11-30 13:13:55 -08:00
parent feb3eb50d1
commit 64ba9a2767
38 changed files with 270 additions and 203 deletions
@@ -29,7 +29,7 @@ class TimestampFirstCombCodecTest extends TestCase
$uuidMock = $this->getMockBuilder('Ramsey\Uuid\UuidInterface')->getMock();
$uuidMock->expects($this->any())
->method('getFieldsHex')
->willReturn(array('ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66'));
->willReturn(['ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66']);
$encodedUuid = $this->codec->encode($uuidMock);
$this->assertSame('0800200c-9a66-11e1-9b21-ff6f8cb0c57d', $encodedUuid);
@@ -40,7 +40,7 @@ class TimestampFirstCombCodecTest extends TestCase
$uuidMock = $this->getMockBuilder('Ramsey\Uuid\UuidInterface')->getMock();
$uuidMock->expects($this->any())
->method('getFieldsHex')
->willReturn(array('ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66'));
->willReturn(['ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66']);
$encodedUuid = $this->codec->encodeBinary($uuidMock);
$this->assertSame(hex2bin('0800200c9a6611e19b21ff6f8cb0c57d'), $encodedUuid);
@@ -52,14 +52,14 @@ class TimestampFirstCombCodecTest extends TestCase
->method('build')
->with(
$this->codec,
array(
[
'time_low' => 'ff6f8cb0',
'time_mid' => 'c57d',
'time_hi_and_version' => '11e1',
'clock_seq_hi_and_reserved' => '9b',
'clock_seq_low' => '21',
'node' => '0800200c9a66'
)
]
);
$this->codec->decode('0800200c-9a66-11e1-9b21-ff6f8cb0c57d');
}
@@ -70,14 +70,14 @@ class TimestampFirstCombCodecTest extends TestCase
->method('build')
->with(
$this->codec,
array(
[
'time_low' => 'ff6f8cb0',
'time_mid' => 'c57d',
'time_hi_and_version' => '11e1',
'clock_seq_hi_and_reserved' => '9b',
'clock_seq_low' => '21',
'node' => '0800200c9a66'
)
]
);
$this->codec->decodeBytes(hex2bin('0800200c9a6611e19b21ff6f8cb0c57d'));
}