PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]

Class: MySource_Sniffs_Commenting_FunctionCommentSniff

Source Location: /PHP_CodeSniffer-1.5.2/CodeSniffer/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php

Class Overview

Squiz_Sniffs_Commenting_FunctionCommentSniff
   |
   --MySource_Sniffs_Commenting_FunctionCommentSniff

Parses and verifies the doc comments for functions.


Author(s):

Version:

  • Release: 1.5.2

Copyright:

  • 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)

Methods


Inherited Variables

Inherited Methods

Class: Squiz_Sniffs_Commenting_FunctionCommentSniff

Squiz_Sniffs_Commenting_FunctionCommentSniff::process()
Processes this test, when one of its tokens is encountered.
Squiz_Sniffs_Commenting_FunctionCommentSniff::processParams()
Process the function parameter comments.
Squiz_Sniffs_Commenting_FunctionCommentSniff::processReturn()
Process the return comment of this function comment.
Squiz_Sniffs_Commenting_FunctionCommentSniff::processSees()
Process the see tags.
Squiz_Sniffs_Commenting_FunctionCommentSniff::processThrows()
Process any throw tags that this function comment has.
Squiz_Sniffs_Commenting_FunctionCommentSniff::processUnknownTags()
Process a list of unknown tags.
Squiz_Sniffs_Commenting_FunctionCommentSniff::register()
Returns an array of tokens this test wants to listen for.

Class Details

[line 34]
Parses and verifies the doc comments for functions.

Same as the Squiz standard, but adds support for API tags.



[ Top ]


Method Detail

processUnknownTags   [line 46]

void processUnknownTags( int $commentStart, int $commentEnd)

Process a list of unknown tags.
  • Access: protected

Overrides Squiz_Sniffs_Commenting_FunctionCommentSniff::processUnknownTags() (Process a list of unknown tags.)

Parameters:

int   $commentStart   —  The position in the stack where the comment started.
int   $commentEnd   —  The position in the stack where the comment ended.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.