protected function hasAtLeastOneMethod(string $contents)
    {
        preg_match("/[ ]function[ ]/", $contents, $matches);
        if (isset($matches[0])) {
            $this->score++;
        }
    }
protected function hasAtLeastOneMethod(string $contents)
    {
        preg_match("/[ ]function[ ]/", $contents, $matches);
        if (isset($matches[0])) {
            $this->score++;
        }
    }
protected function hasAtLeastOneMethod ( string $ contents ) { preg_match ( "/[ ]function[ ]/" , $ contents , $ matches ) ; if ( isset ( $ matches [ 0 ] ) ) { $ this -> score ++ ; } }
Does the class have at least one method?
@param  string $contents File contents.
@return void
Does the class have at least one method?