mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
Ignore specific phpcs warnings
This commit is contained in:
+3
-3
@@ -103,10 +103,10 @@ class Polyline {
|
||||
*/
|
||||
final public static function decode( $string ) {
|
||||
$points = array();
|
||||
$index = $i = 0;
|
||||
$index = $i = 0; // phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
|
||||
$previous = array( 0, 0 );
|
||||
while ( $i < strlen( $string ) ) {
|
||||
$shift = $result = 0x00;
|
||||
while ( $i < strlen( $string ) ) { // phpcs:ignore Squiz.PHP.DisallowSizeFunctionsInLoops.Found
|
||||
$shift = $result = 0x00; // phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
|
||||
do {
|
||||
$bit = ord( substr( $string, $i++ ) ) - 63;
|
||||
$result |= ( $bit & 0x1f ) << $shift;
|
||||
|
||||
Reference in New Issue
Block a user