Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7fe05d7

Browse files
committed
Convert array syntax to short-arrays
- As flagged by phpcs, and fixed by phpcbf
1 parent 0a78b71 commit 7fe05d7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/HeaderSecurityTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ public function testFiltersValuesPerRfc7230($value, $expected)
5454

5555
public function validateValues()
5656
{
57-
return array(
58-
array("This is a\n test", 'assertFalse'),
59-
array("This is a\r test", 'assertFalse'),
60-
array("This is a\n\r test", 'assertFalse'),
61-
array("This is a\r\n test", 'assertTrue'),
62-
array("This is a \r\ntest", 'assertFalse'),
63-
array("This is a \r\n\n test", 'assertFalse'),
64-
array("This is a\n\n test", 'assertFalse'),
65-
array("This is a\r\r test", 'assertFalse'),
66-
array("This is a \r\r\n test", 'assertFalse'),
67-
array("This is a \r\n\r\ntest", 'assertFalse'),
68-
array("This is a \r\n\n\r\n test", 'assertFalse'),
69-
array("This is a \xFF test", 'assertFalse'),
70-
array("This is a \x7F test", 'assertFalse'),
71-
array("This is a \x7E test", 'assertTrue'),
72-
);
57+
return [
58+
["This is a\n test", 'assertFalse'],
59+
["This is a\r test", 'assertFalse'],
60+
["This is a\n\r test", 'assertFalse'],
61+
["This is a\r\n test", 'assertTrue'],
62+
["This is a \r\ntest", 'assertFalse'],
63+
["This is a \r\n\n test", 'assertFalse'],
64+
["This is a\n\n test", 'assertFalse'],
65+
["This is a\r\r test", 'assertFalse'],
66+
["This is a \r\r\n test", 'assertFalse'],
67+
["This is a \r\n\r\ntest", 'assertFalse'],
68+
["This is a \r\n\n\r\n test", 'assertFalse'],
69+
["This is a \xFF test", 'assertFalse'],
70+
["This is a \x7F test", 'assertFalse'],
71+
["This is a \x7E test", 'assertTrue'],
72+
];
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)