original_string: protected static function checkAlias($module) {
          // $module alias not called
          if (array_key_exists($module, static::getConfig('modules')))
              return $module;
  
          // check module alias
          foreach (static::getConfig('modules') as $cModule => $moduleOptions) {
              if (!array_key_exists('alias', $moduleOptions))
                  continue;
  
              if ($moduleOptions['alias'] === Util::camelToHyphen($module))
                  return $cModule;
          }
  
          // module nor alias found
          return $module;
      }
code: protected static function checkAlias($module) {
          // $module alias not called
          if (array_key_exists($module, static::getConfig('modules')))
              return $module;
  
          // check module alias
          foreach (static::getConfig('modules') as $cModule => $moduleOptions) {
              if (!array_key_exists('alias', $moduleOptions))
                  continue;
  
              if ($moduleOptions['alias'] === Util::camelToHyphen($module))
                  return $cModule;
          }
  
          // module nor alias found
          return $module;
      }
code_tokens: protected static function checkAlias ( $ module ) { // $module alias not called if ( array_key_exists ( $ module , static :: getConfig ( 'modules' ) ) ) return $ module ; // check module alias foreach ( static :: getConfig ( 'modules' ) as $ cModule => $ moduleOptions ) { if ( ! array_key_exists ( 'alias' , $ moduleOptions ) ) continue ; if ( $ moduleOptions [ 'alias' ] === Util :: camelToHyphen ( $ module ) ) return $ cModule ; } // module nor alias found return $ module ; }
docstring: Checks if the module is an alias and returns the ModuleName
  @param string $module
  @return string
docstring_tokens: Checks if the module is an alias and returns the ModuleName