original_string: protected function parseFilters($filters)
      {
          $beforeFilter = array();
          $afterFilter = array();
  
          if (isset($filters[Route::BEFORE])) {
              $beforeFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::BEFORE]));
          }
  
          if (isset($filters[Route::AFTER])) {
              $afterFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::AFTER]));
          }
  
          return array($beforeFilter, $afterFilter);
      }
code: protected function parseFilters($filters)
      {
          $beforeFilter = array();
          $afterFilter = array();
  
          if (isset($filters[Route::BEFORE])) {
              $beforeFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::BEFORE]));
          }
  
          if (isset($filters[Route::AFTER])) {
              $afterFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::AFTER]));
          }
  
          return array($beforeFilter, $afterFilter);
      }
code_tokens: protected function parseFilters ( $ filters ) { $ beforeFilter = array ( ) ; $ afterFilter = array ( ) ; if ( isset ( $ filters [ Route :: BEFORE ] ) ) { $ beforeFilter = array_intersect_key ( $ this -> filters , array_flip ( ( array ) $ filters [ Route :: BEFORE ] ) ) ; } if ( isset ( $ filters [ Route :: AFTER ] ) ) { $ afterFilter = array_intersect_key ( $ this -> filters , array_flip ( ( array ) $ filters [ Route :: AFTER ] ) ) ; } return array ( $ beforeFilter , $ afterFilter ) ; }
docstring: Normalise the array filters attached to the route and merge with any global filters.
  
  @param $filters
  @return array
docstring_tokens: Normalise the array filters attached to the route and merge with any global filters .