original_string: protected function findExtensionName($name)
      {
          if ($name == 'foundation') {
              return $name;
          }
          $extensions = app('antares.memory')->make('component')->get('extensions.active');
          foreach ($extensions as $keyname => $extension) {
              if ($name == $extension['name']) {
                  return $keyname;
              }
          }
          return false;
      }
code: protected function findExtensionName($name)
      {
          if ($name == 'foundation') {
              return $name;
          }
          $extensions = app('antares.memory')->make('component')->get('extensions.active');
          foreach ($extensions as $keyname => $extension) {
              if ($name == $extension['name']) {
                  return $keyname;
              }
          }
          return false;
      }
code_tokens: protected function findExtensionName ( $ name ) { if ( $ name == 'foundation' ) { return $ name ; } $ extensions = app ( 'antares.memory' ) -> make ( 'component' ) -> get ( 'extensions.active' ) ; foreach ( $ extensions as $ keyname => $ extension ) { if ( $ name == $ extension [ 'name' ] ) { return $ keyname ; } } return false ; }
docstring: get extension key name by name from manifest
  
  @param type $name
  @return boolean|String
docstring_tokens: get extension key name by name from manifest