original_string: private function prepareUrl(array $url): array
      {
          // collect the pass parameters of the url under "pass" key for router.js compatibility
          $pass = [];
          foreach ($url as $key => $value) {
              if (is_int($key)) {
                  $pass[$key] = $value;
                  unset($url[$key]);
              }
          }
          $url['pass'] = $pass;
  
          return $url;
      }
code: private function prepareUrl(array $url): array
      {
          // collect the pass parameters of the url under "pass" key for router.js compatibility
          $pass = [];
          foreach ($url as $key => $value) {
              if (is_int($key)) {
                  $pass[$key] = $value;
                  unset($url[$key]);
              }
          }
          $url['pass'] = $pass;
  
          return $url;
      }
code_tokens: private function prepareUrl ( array $ url ) : array { // collect the pass parameters of the url under "pass" key for router.js compatibility $ pass = [ ] ; foreach ( $ url as $ key => $ value ) { if ( is_int ( $ key ) ) { $ pass [ $ key ] = $ value ; unset ( $ url [ $ key ] ) ; } } $ url [ 'pass' ] = $ pass ; return $ url ; }
docstring: Prepare a url array for the JS router
  
  @param  array $url a standard CakePHP url array
  @return array
docstring_tokens: Prepare a url array for the JS router