original_string: protected function moveMiddleware($middlewares, $from, $to)
      {
          array_splice($middlewares, $to, 0, $middlewares[$from]);
  
          unset($middlewares[$from + 1]);
  
          return $middlewares;
      }
code: protected function moveMiddleware($middlewares, $from, $to)
      {
          array_splice($middlewares, $to, 0, $middlewares[$from]);
  
          unset($middlewares[$from + 1]);
  
          return $middlewares;
      }
code_tokens: protected function moveMiddleware ( $ middlewares , $ from , $ to ) { array_splice ( $ middlewares , $ to , 0 , $ middlewares [ $ from ] ) ; unset ( $ middlewares [ $ from + 1 ] ) ; return $ middlewares ; }
docstring: Splice a middleware into a new position and remove the old entry.
  
  @param  array  $middlewares
  @param  int  $from
  @param  int  $to
  @return array
docstring_tokens: Splice a middleware into a new position and remove the old entry .