original_string: public function getNames()
      {
          $names = array_keys($this->getServices());
          $len = strlen(self::METHOD_PREFIX);
          foreach (get_class_methods($this) as $method) {
              if (Text::startsWith($method, self::METHOD_PREFIX)) {
                  $name = lcfirst(substr($method, $len));
                  if ($name) {
                      $names[] = $name;
                  }
              }
          }
          return $names;
      }
code: public function getNames()
      {
          $names = array_keys($this->getServices());
          $len = strlen(self::METHOD_PREFIX);
          foreach (get_class_methods($this) as $method) {
              if (Text::startsWith($method, self::METHOD_PREFIX)) {
                  $name = lcfirst(substr($method, $len));
                  if ($name) {
                      $names[] = $name;
                  }
              }
          }
          return $names;
      }
code_tokens: public function getNames ( ) { $ names = array_keys ( $ this -> getServices ( ) ) ; $ len = strlen ( self :: METHOD_PREFIX ) ; foreach ( get_class_methods ( $ this ) as $ method ) { if ( Text :: startsWith ( $ method , self :: METHOD_PREFIX ) ) { $ name = lcfirst ( substr ( $ method , $ len ) ) ; if ( $ name ) { $ names [ ] = $ name ; } } } return $ names ; }
docstring: Gets all service names
docstring_tokens: Gets all service names