Ignore specific phpcs warnings

This commit is contained in:
Justin Foell
2018-03-28 09:03:52 -05:00
parent 7a8e0f170f
commit bcaaff6754
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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;