Coding Standards: Use long array syntax in Tests_WP_Timezone::timezone_offset_provider()
.
Per https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/, arrays must be declared using long array syntax for clarity. See #24730. git-svn-id: https://develop.svn.wordpress.org/trunk@45855 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c782ad4511
commit
f5f2fc379e
@ -44,68 +44,65 @@ class Tests_WP_Timezone extends WP_UnitTestCase {
|
||||
* @return array
|
||||
*/
|
||||
public function timezone_offset_provider() {
|
||||
|
||||
return [
|
||||
[ - 12, '-12:00' ],
|
||||
[ - 11.5, '-11:30' ],
|
||||
[ - 11, '-11:00' ],
|
||||
[ - 10.5, '-10:30' ],
|
||||
[ - 10, '-10:00' ],
|
||||
[ - 9.5, '-09:30' ],
|
||||
[ - 9, '-09:00' ],
|
||||
[ - 8.5, '-08:30' ],
|
||||
[ - 8, '-08:00' ],
|
||||
[ - 7.5, '-07:30' ],
|
||||
[ - 7, '-07:00' ],
|
||||
[ - 6.5, '-06:30' ],
|
||||
[ - 6, '-06:00' ],
|
||||
[ - 5.5, '-05:30' ],
|
||||
[ - 5, '-05:00' ],
|
||||
[ - 4.5, '-04:30' ],
|
||||
[ - 4, '-04:00' ],
|
||||
[ - 3.5, '-03:30' ],
|
||||
[ - 3, '-03:00' ],
|
||||
[ - 2.5, '-02:30' ],
|
||||
[ - 2, '-02:00' ],
|
||||
[ '-1.5', '-01:30' ],
|
||||
[ - 1.5, '-01:30' ],
|
||||
[ - 1, '-01:00' ],
|
||||
[ - 0.5, '-00:30' ],
|
||||
[ 0, '+00:00' ],
|
||||
[ '0', '+00:00' ],
|
||||
[ 0.5, '+00:30' ],
|
||||
[ 1, '+01:00' ],
|
||||
[ 1.5, '+01:30' ],
|
||||
[ '1.5', '+01:30' ],
|
||||
[ 2, '+02:00' ],
|
||||
[ 2.5, '+02:30' ],
|
||||
[ 3, '+03:00' ],
|
||||
[ 3.5, '+03:30' ],
|
||||
[ 4, '+04:00' ],
|
||||
[ 4.5, '+04:30' ],
|
||||
[ 5, '+05:00' ],
|
||||
[ 5.5, '+05:30' ],
|
||||
[ 5.75, '+05:45' ],
|
||||
[ 6, '+06:00' ],
|
||||
[ 6.5, '+06:30' ],
|
||||
[ 7, '+07:00' ],
|
||||
[ 7.5, '+07:30' ],
|
||||
[ 8, '+08:00' ],
|
||||
[ 8.5, '+08:30' ],
|
||||
[ 8.75, '+08:45' ],
|
||||
[ 9, '+09:00' ],
|
||||
[ 9.5, '+09:30' ],
|
||||
[ 10, '+10:00' ],
|
||||
[ 10.5, '+10:30' ],
|
||||
[ 11, '+11:00' ],
|
||||
[ 11.5, '+11:30' ],
|
||||
[ 12, '+12:00' ],
|
||||
[ 12.75, '+12:45' ],
|
||||
[ 13, '+13:00' ],
|
||||
[ 13.75, '+13:45' ],
|
||||
[ 14, '+14:00' ],
|
||||
];
|
||||
return array(
|
||||
array( -12, '-12:00' ),
|
||||
array( -11.5, '-11:30' ),
|
||||
array( -11, '-11:00' ),
|
||||
array( -10.5, '-10:30' ),
|
||||
array( -10, '-10:00' ),
|
||||
array( -9.5, '-09:30' ),
|
||||
array( -9, '-09:00' ),
|
||||
array( -8.5, '-08:30' ),
|
||||
array( -8, '-08:00' ),
|
||||
array( -7.5, '-07:30' ),
|
||||
array( -7, '-07:00' ),
|
||||
array( -6.5, '-06:30' ),
|
||||
array( -6, '-06:00' ),
|
||||
array( -5.5, '-05:30' ),
|
||||
array( -5, '-05:00' ),
|
||||
array( -4.5, '-04:30' ),
|
||||
array( -4, '-04:00' ),
|
||||
array( -3.5, '-03:30' ),
|
||||
array( -3, '-03:00' ),
|
||||
array( -2.5, '-02:30' ),
|
||||
array( -2, '-02:00' ),
|
||||
array( '-1.5', '-01:30' ),
|
||||
array( -1.5, '-01:30' ),
|
||||
array( -1, '-01:00' ),
|
||||
array( -0.5, '-00:30' ),
|
||||
array( 0, '+00:00' ),
|
||||
array( '0', '+00:00' ),
|
||||
array( 0.5, '+00:30' ),
|
||||
array( 1, '+01:00' ),
|
||||
array( 1.5, '+01:30' ),
|
||||
array( '1.5', '+01:30' ),
|
||||
array( 2, '+02:00' ),
|
||||
array( 2.5, '+02:30' ),
|
||||
array( 3, '+03:00' ),
|
||||
array( 3.5, '+03:30' ),
|
||||
array( 4, '+04:00' ),
|
||||
array( 4.5, '+04:30' ),
|
||||
array( 5, '+05:00' ),
|
||||
array( 5.5, '+05:30' ),
|
||||
array( 5.75, '+05:45' ),
|
||||
array( 6, '+06:00' ),
|
||||
array( 6.5, '+06:30' ),
|
||||
array( 7, '+07:00' ),
|
||||
array( 7.5, '+07:30' ),
|
||||
array( 8, '+08:00' ),
|
||||
array( 8.5, '+08:30' ),
|
||||
array( 8.75, '+08:45' ),
|
||||
array( 9, '+09:00' ),
|
||||
array( 9.5, '+09:30' ),
|
||||
array( 10, '+10:00' ),
|
||||
array( 10.5, '+10:30' ),
|
||||
array( 11, '+11:00' ),
|
||||
array( 11.5, '+11:30' ),
|
||||
array( 12, '+12:00' ),
|
||||
array( 12.75, '+12:45' ),
|
||||
array( 13, '+13:00' ),
|
||||
array( 13.75, '+13:45' ),
|
||||
array( 14, '+14:00' ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user