Joomla/Sniffs/Commenting/FileCommentSniff.php
protected function processSubpackage(PHP_CodeSniffer_File $phpcsFile, array $tags)
	{
		$tokens = $phpcsFile->getTokens();

		foreach ($tags as $tag)
		{
			if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING)
			{
				// No content.
				continue;
			}

			$content = $tokens[($tag + 2)]['content'];

			// Is the subpackage included and empty.
			if (empty($content) || $content == '')
			{
				$error     = 'if included, @subpackage tag must contain a name';
				$phpcsFile->addError($error, $tag, 'EmptySubpackage');
			}
		}//end foreach
	}
protected function processSubpackage(PHP_CodeSniffer_File $phpcsFile, array $tags)
	{
		$tokens = $phpcsFile->getTokens();

		foreach ($tags as $tag)
		{
			if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING)
			{
				// No content.
				continue;
			}

			$content = $tokens[($tag + 2)]['content'];

			// Is the subpackage included and empty.
			if (empty($content) || $content == '')
			{
				$error     = 'if included, @subpackage tag must contain a name';
				$phpcsFile->addError($error, $tag, 'EmptySubpackage');
			}
		}//end foreach
	}
protected function processSubpackage ( PHP_CodeSniffer_File $ phpcsFile , array $ tags ) { $ tokens = $ phpcsFile -> getTokens ( ) ; foreach ( $ tags as $ tag ) { if ( $ tokens [ ( $ tag + 2 ) ] [ 'code' ] !== T_DOC_COMMENT_STRING ) { // No content. continue ; } $ content = $ tokens [ ( $ tag + 2 ) ] [ 'content' ] ; // Is the subpackage included and empty. if ( empty ( $ content ) || $ content == '' ) { $ error = 'if included, @subpackage tag must contain a name' ; $ phpcsFile -> addError ( $ error , $ tag , 'EmptySubpackage' ) ; } } //end foreach }
Process the subpackage tag.

@param   PHP_CodeSniffer_File  $phpcsFile  The file being scanned.
@param   array                 $tags       The tokens for these tags.

@return  void
Process the subpackage tag .