Skip to content

Commit

Permalink
Merge pull request #410 from rmccue/feature/cs-no-unnecessary-double-…
Browse files Browse the repository at this point in the history
…quotes

CS: don't unnecessarily use double quotes
  • Loading branch information
schlessera authored Oct 24, 2020
2 parents 11c6f7f + 88f0d75 commit f9c45bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/IDNAEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ public static function specExamples() {
return array(
array(
"\xe4\xbb\x96\xe4\xbb\xac\xe4\xb8\xba\xe4\xbb\x80\xe4\xb9\x88\xe4\xb8\x8d\xe8\xaf\xb4\xe4\xb8\xad\xe6\x96\x87",
"xn--ihqwcrb4cv8a8dqg056pqjye",
'xn--ihqwcrb4cv8a8dqg056pqjye',
),
array(
"\x33\xe5\xb9\xb4\x42\xe7\xb5\x84\xe9\x87\x91\xe5\x85\xab\xe5\x85\x88\xe7\x94\x9f",
"xn--3B-ww4c5e180e575a65lsy2b",
'xn--3B-ww4c5e180e575a65lsy2b',
),
);
}
Expand All @@ -26,7 +26,7 @@ public function testEncoding($data, $expected) {
* @expectedException Requests_Exception
*/
public function testASCIITooLong() {
$data = str_repeat("abcd", 20);
$data = str_repeat('abcd', 20);
$result = Requests_IDNAEncoder::encode($data);
}

Expand All @@ -46,7 +46,7 @@ public function testAlreadyPrefixed() {
}

public function testASCIICharacter() {
$result = Requests_IDNAEncoder::encode("a");
$result = Requests_IDNAEncoder::encode('a');
$this->assertEquals('a', $result);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testRawAccess() {
$transport->data =
"HTTP/1.0 200 OK\r\n" .
"Host: localhost\r\n\r\n" .
"Test";
'Test';

$options = array(
'transport' => $transport,
Expand Down

0 comments on commit f9c45bf

Please sign in to comment.