src/Mouf/Reflection/MoufPhpDocComment.php
private static function getDocLinesFromComment($docComment) {
		if (strpos($docComment, "/**") === 0) {
			$docComment = substr($docComment, 3);
		}
		
		// Let's remove all the \r...
		$docComment = str_replace("\r", "", $docComment);
			
		$commentLines = explode("\n", $docComment);
		$commentLinesWithoutStars = array();
		
		// For each line, let's remove the first spaces, and the first *
		foreach ($commentLines as $commentLine) {
			$length = strlen($commentLine);
			for ($i=0; $i<$length; $i++) {
				if ($commentLine{$i} != ' ' && $commentLine{$i} != '*' && $commentLine{$i} != "\t") {
					break;
				}
			}
			$commentLinesWithoutStars[] = substr($commentLine, $i);
		}
		
		// Let's remove the trailing /:
		$lastComment = $commentLinesWithoutStars[count($commentLinesWithoutStars)-1];
		$commentLinesWithoutStars[count($commentLinesWithoutStars)-1] = substr($lastComment, 0, strlen($lastComment)-1);
		
		if ($commentLinesWithoutStars[count($commentLinesWithoutStars)-1] == "")
			array_pop($commentLinesWithoutStars);
			
		if (isset($commentLinesWithoutStars[0]) && $commentLinesWithoutStars[0] == "") {
			$commentLinesWithoutStars = array_slice($commentLinesWithoutStars, 1);
		}
		
		return $commentLinesWithoutStars;
	}
private static function getDocLinesFromComment($docComment) {
		if (strpos($docComment, "/**") === 0) {
			$docComment = substr($docComment, 3);
		}
		
		// Let's remove all the \r...
		$docComment = str_replace("\r", "", $docComment);
			
		$commentLines = explode("\n", $docComment);
		$commentLinesWithoutStars = array();
		
		// For each line, let's remove the first spaces, and the first *
		foreach ($commentLines as $commentLine) {
			$length = strlen($commentLine);
			for ($i=0; $i<$length; $i++) {
				if ($commentLine{$i} != ' ' && $commentLine{$i} != '*' && $commentLine{$i} != "\t") {
					break;
				}
			}
			$commentLinesWithoutStars[] = substr($commentLine, $i);
		}
		
		// Let's remove the trailing /:
		$lastComment = $commentLinesWithoutStars[count($commentLinesWithoutStars)-1];
		$commentLinesWithoutStars[count($commentLinesWithoutStars)-1] = substr($lastComment, 0, strlen($lastComment)-1);
		
		if ($commentLinesWithoutStars[count($commentLinesWithoutStars)-1] == "")
			array_pop($commentLinesWithoutStars);
			
		if (isset($commentLinesWithoutStars[0]) && $commentLinesWithoutStars[0] == "") {
			$commentLinesWithoutStars = array_slice($commentLinesWithoutStars, 1);
		}
		
		return $commentLinesWithoutStars;
	}
private static function getDocLinesFromComment ( $ docComment ) { if ( strpos ( $ docComment , "/**" ) === 0 ) { $ docComment = substr ( $ docComment , 3 ) ; } // Let's remove all the \r...
 $ docComment = str_replace ( "\r" , "" , $ docComment ) ; $ commentLines = explode ( "\n" , $ docComment ) ; $ commentLinesWithoutStars = array ( ) ; // For each line, let's remove the first spaces, and the first *
 foreach ( $ commentLines as $ commentLine ) { $ length = strlen ( $ commentLine ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { if ( $ commentLine { $ i } != ' ' && $ commentLine { $ i } != '*' && $ commentLine { $ i } != "\t" ) { break ; } } $ commentLinesWithoutStars [ ] = substr ( $ commentLine , $ i ) ; } // Let's remove the trailing /:
 $ lastComment = $ commentLinesWithoutStars [ count ( $ commentLinesWithoutStars ) - 1 ] ; $ commentLinesWithoutStars [ count ( $ commentLinesWithoutStars ) - 1 ] = substr ( $ lastComment , 0 , strlen ( $ lastComment ) - 1 ) ; if ( $ commentLinesWithoutStars [ count ( $ commentLinesWithoutStars ) - 1 ] == "" ) array_pop ( $ commentLinesWithoutStars ) ; if ( isset ( $ commentLinesWithoutStars [ 0 ] ) && $ commentLinesWithoutStars [ 0 ] == "" ) { $ commentLinesWithoutStars = array_slice ( $ commentLinesWithoutStars , 1 ) ; } return $ commentLinesWithoutStars ; }
Returns an array of lines of the comments.

@param string $docComment
@return array
Returns an array of lines of the comments .