original_string: protected function processRoute(): bool
      {
          $uri = $this->getCleanUri();
          $uri = trim($uri, '/');
          $raw = explode('/', $uri);
  
          // rewrite module from request
          if (\count($raw)) {
              $this->setParam('_module', array_shift($raw));
          }
          // rewrite module from controller
          if (\count($raw)) {
              $this->setParam('_controller', array_shift($raw));
          }
          if ($size = \count($raw)) {
              // save raw
              $this->rawParams = $raw;
  
              // save as index params
              foreach ($raw as $i => $value) {
                  $this->setParam($i, $value);
              }
  
              // remove tail
              if ($size % 2 === 1) {
                  array_pop($raw);
                  $size = \count($raw);
              }
              // or use array_chunk and run another loop?
              for ($i = 0; $i < $size; $i += 2) {
                  $this->setParam($raw[$i], $raw[$i + 1]);
              }
          }
          return true;
      }
code: protected function processRoute(): bool
      {
          $uri = $this->getCleanUri();
          $uri = trim($uri, '/');
          $raw = explode('/', $uri);
  
          // rewrite module from request
          if (\count($raw)) {
              $this->setParam('_module', array_shift($raw));
          }
          // rewrite module from controller
          if (\count($raw)) {
              $this->setParam('_controller', array_shift($raw));
          }
          if ($size = \count($raw)) {
              // save raw
              $this->rawParams = $raw;
  
              // save as index params
              foreach ($raw as $i => $value) {
                  $this->setParam($i, $value);
              }
  
              // remove tail
              if ($size % 2 === 1) {
                  array_pop($raw);
                  $size = \count($raw);
              }
              // or use array_chunk and run another loop?
              for ($i = 0; $i < $size; $i += 2) {
                  $this->setParam($raw[$i], $raw[$i + 1]);
              }
          }
          return true;
      }
code_tokens: protected function processRoute ( ) : bool { $ uri = $ this -> getCleanUri ( ) ; $ uri = trim ( $ uri , '/' ) ; $ raw = explode ( '/' , $ uri ) ; // rewrite module from request if ( \ count ( $ raw ) ) { $ this -> setParam ( '_module' , array_shift ( $ raw ) ) ; } // rewrite module from controller if ( \ count ( $ raw ) ) { $ this -> setParam ( '_controller' , array_shift ( $ raw ) ) ; } if ( $ size = \ count ( $ raw ) ) { // save raw $ this -> rawParams = $ raw ; // save as index params foreach ( $ raw as $ i => $ value ) { $ this -> setParam ( $ i , $ value ) ; } // remove tail if ( $ size % 2 === 1 ) { array_pop ( $ raw ) ; $ size = \ count ( $ raw ) ; } // or use array_chunk and run another loop? for ( $ i = 0 ; $ i < $ size ; $ i += 2 ) { $ this -> setParam ( $ raw [ $ i ] , $ raw [ $ i + 1 ] ) ; } } return true ; }
docstring: Process router by default rules
  
  Default routers examples
  /
  /:module/
  /:module/:controller/
  /:module/:controller/:key1/:value1/:key2/:value2...
  
  @return bool
docstring_tokens: Process router by default rules