protected function parseTags($tags) {
		$tags = trim($tags);
		if (!empty($tags)) {
			
			// sanitize lines
			$result = [];
			foreach (explode("\n", $tags) as $line) {
				if ($this->isTagLine($line) || count($result) == 0) {
					$result[] = $line;
				} else {
					$result[count($result) - 1] .= PHP_EOL . $line;
				}
			}

			// create proper Tag objects
			if (count($result)) {
				$this->tags->clear();
				foreach ($result as $line) {
					$this->tags->add($this->parseTag($line)); 
				}
			}
		}
		
		
	}
protected function parseTags($tags) {
		$tags = trim($tags);
		if (!empty($tags)) {
			
			// sanitize lines
			$result = [];
			foreach (explode("\n", $tags) as $line) {
				if ($this->isTagLine($line) || count($result) == 0) {
					$result[] = $line;
				} else {
					$result[count($result) - 1] .= PHP_EOL . $line;
				}
			}

			// create proper Tag objects
			if (count($result)) {
				$this->tags->clear();
				foreach ($result as $line) {
					$this->tags->add($this->parseTag($line)); 
				}
			}
		}
		
		
	}
protected function parseTags ( $ tags ) { $ tags = trim ( $ tags ) ; if ( ! empty ( $ tags ) ) { // sanitize lines $ result = [ ] ; foreach ( explode ( "\n" , $ tags ) as $ line ) { if ( $ this -> isTagLine ( $ line ) || count ( $ result ) == 0 ) { $ result [ ] = $ line ; } else { $ result [ count ( $ result ) - 1 ] .= PHP_EOL . $ line ; } } // create proper Tag objects if ( count ( $ result ) ) { $ this -> tags -> clear ( ) ; foreach ( $ result as $ line ) { $ this -> tags -> add ( $ this -> parseTag ( $ line ) ) ; } } } }
Parses the tags

@see https://github.com/phpDocumentor/ReflectionDocBlock/blob/master/src/phpDocumentor/Reflection/DocBlock.php Original Method
@param string $tags
@throws \LogicException
@throws \InvalidArgumentException
Parses the tags