code: protected function getMethodComment(\ReflectionMethod $method)
      {
          $lines = preg_split("/((\r?\n)|(\r\n?))/", $method->getDocComment());
          $count = count($lines);
          foreach ($lines as $i => $line) {
              $line = preg_replace('/^\s*(\/\*\*|\*\/?)\s*/', '', $line);
              $line = trim($line);
              $lines[$i] = $line;
              if (!$line && ($i == 0 || $i == $count - 1)) { // If first or last lines are blank
                  unset($lines[$i]);
              }
          }
  
          return array_values($lines);
  
      }
docs: Get a cleaned up version of the method comment.
  
  Reflection methods return the doc block with the surrounding stars still
  in the string. This method breaks the continuous string into individual
  lines, removes the starting asterisks, and trims the line. Finally the
  first and last lines of the comment are removed if they are empty.
  
  @param \ReflectionMethod $method
  @return string[]