original_string: private function formatPoints($points)
      {
          $ipoints = [];
          $count = 1;
  
          foreach ($points as $key => $value) {
              if ($count%2 === 0) {
                  $y = $value;
                  $ipoints[] = ['x' => $x, 'y' => $y];
              } else {
                  $x = $value;
              }
              $count++;
          }
  
          return $ipoints;
      }
code: private function formatPoints($points)
      {
          $ipoints = [];
          $count = 1;
  
          foreach ($points as $key => $value) {
              if ($count%2 === 0) {
                  $y = $value;
                  $ipoints[] = ['x' => $x, 'y' => $y];
              } else {
                  $x = $value;
              }
              $count++;
          }
  
          return $ipoints;
      }
code_tokens: private function formatPoints ( $ points ) { $ ipoints = [ ] ; $ count = 1 ; foreach ( $ points as $ key => $ value ) { if ( $ count % 2 === 0 ) { $ y = $ value ; $ ipoints [ ] = [ 'x' => $ x , 'y' => $ y ] ; } else { $ x = $ value ; } $ count ++ ; } return $ ipoints ; }
docstring: Format polygon points to Imagick format
  
  @param  Array $points
  @return Array
docstring_tokens: Format polygon points to Imagick format