original_string: private static function autoResolve($arsUrlValueList)
      {
          $sController = 'Index';
          $sAction = 'index';
          $arsParamList = array();
          foreach ($arsUrlValueList as $nIndexValue => $sUrlValue) {
              if ($nIndexValue == 0) {
                  $sController = $sUrlValue;
              } elseif ($nIndexValue == 1) {
                  $sAction = $sUrlValue;
              } else {
                  if (isset($arsUrlValueList[$nIndexValue]) && $nIndexValue % 2 == 0) {
                      $sParamName = $arsUrlValueList[$nIndexValue];
                      $sParamValue = null;
                      if (isset($arsUrlValueList[$nIndexValue + 1])) {
                          $sParamValue = $arsUrlValueList[$nIndexValue + 1];
                      }
                      $arsParamList[$sParamName] = $sParamValue;
                  }
              }
          }
          // Set controller
          self::setController($sController);
          // Set action to route action
          self::setAction($sAction);
          // Set param list
          self::setParameter($arsParamList);
      }
code: private static function autoResolve($arsUrlValueList)
      {
          $sController = 'Index';
          $sAction = 'index';
          $arsParamList = array();
          foreach ($arsUrlValueList as $nIndexValue => $sUrlValue) {
              if ($nIndexValue == 0) {
                  $sController = $sUrlValue;
              } elseif ($nIndexValue == 1) {
                  $sAction = $sUrlValue;
              } else {
                  if (isset($arsUrlValueList[$nIndexValue]) && $nIndexValue % 2 == 0) {
                      $sParamName = $arsUrlValueList[$nIndexValue];
                      $sParamValue = null;
                      if (isset($arsUrlValueList[$nIndexValue + 1])) {
                          $sParamValue = $arsUrlValueList[$nIndexValue + 1];
                      }
                      $arsParamList[$sParamName] = $sParamValue;
                  }
              }
          }
          // Set controller
          self::setController($sController);
          // Set action to route action
          self::setAction($sAction);
          // Set param list
          self::setParameter($arsParamList);
      }
code_tokens: private static function autoResolve ( $ arsUrlValueList ) { $ sController = 'Index' ; $ sAction = 'index' ; $ arsParamList = array ( ) ; foreach ( $ arsUrlValueList as $ nIndexValue => $ sUrlValue ) { if ( $ nIndexValue == 0 ) { $ sController = $ sUrlValue ; } elseif ( $ nIndexValue == 1 ) { $ sAction = $ sUrlValue ; } else { if ( isset ( $ arsUrlValueList [ $ nIndexValue ] ) && $ nIndexValue % 2 == 0 ) { $ sParamName = $ arsUrlValueList [ $ nIndexValue ] ; $ sParamValue = null ; if ( isset ( $ arsUrlValueList [ $ nIndexValue + 1 ] ) ) { $ sParamValue = $ arsUrlValueList [ $ nIndexValue + 1 ] ; } $ arsParamList [ $ sParamName ] = $ sParamValue ; } } } // Set controller self :: setController ( $ sController ) ; // Set action to route action self :: setAction ( $ sAction ) ; // Set param list self :: setParameter ( $ arsParamList ) ; }
docstring: Auto resolve a Route from URL by separator
  
  @since   1.0
  @param   string $arsUrlValueList Liste of url part.
  @return  void
docstring_tokens: Auto resolve a Route from URL by separator