2
class PHP_CodeSniffer_File
6
* A simple function comment.
10
* @param int $stackPtr The position in @ @unknown the stack of the token
11
* that opened the scope
12
* @param int $detph How many scope levels down we are.
13
* @param int $index The index
17
private function _functionCall($stackPtr, $depth=1, $index)
21
}//end _functionCall()
24
// Sample function comment
28
public function invalidCommentStyle()
31
}//end invalidCommentStyle()
37
* A simple function comment
40
* Long description with extra blank line before and after
45
public function extraDescriptionNewlines()
48
}//end extraDescriptionNewlines()
52
* A simple function comment
55
public function missingNewlinesBeforeTags()
58
}//end missingNewlinesBeforeTags()
62
* Access tag should not be treated as a long description
67
public function accessTag()
77
function PHP_CodeSniffer_File()
88
function _PHP_CodeSniffer_File()
103
function missingComment()
113
public function noReturn($one)
120
* Param not immediate
123
* @param int $threeSpaces
124
* @param int $superfluous
128
public function missingDescroption($threeSpaces)
131
}//end missingDescroption()
135
* Param not immediate
137
* @param int $one comment
138
* @param int $two comment
139
* @param string $three comment
143
public function oneSpaceAfterLongestVar($one, $two, $three)
146
}//end oneSpaceAfterLongestVar()
153
* A simple function comment
155
* @param string $str The string passed in by reference
159
public function functionOutsideClass(&$str)
162
}//end functionOutsideClass()
165
function missingCommentOutsideClass()
168
}//end missingCommentOutsideClass()
172
function tagBeforeComment()
175
}//end tagBeforeComment()
184
public function noReturnOutsideClass()
187
}//end noReturnOutsideClass()
191
* Missing param comment
193
* @param int $one comment
198
public function missingTwoParamComment($one, $two, $three)
201
}//end missingTwoParamComment()
207
function emptyFunctionDocComment()
209
}//end emptyFunctionDocComment()
215
* @param string $arg1 An argument
220
function myFunction($arg1) {}
226
* @param string $arg1 An argument
234
function myFunction($arg1) {}
241
* @throws MyException
242
* @throws MyException When I feel like it
244
function myFunction() {}
248
* An abstract function.
250
* @return array(string)
252
abstract final protected function myFunction();