@@ -17,7 +17,7 @@ |
||
| 17 | 17 | private $secret = null; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param Comment $comment Comment to generate this token for |
|
| 20 | + * @param \SilverStripe\ORM\DataObject|null $comment Comment to generate this token for |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct($comment) |
| 23 | 23 | { |
@@ -1282,6 +1282,9 @@ |
||
| 1282 | 1282 | $this->markTestSkipped('TODO'); |
| 1283 | 1283 | } |
| 1284 | 1284 | |
| 1285 | + /** |
|
| 1286 | + * @param string $name |
|
| 1287 | + */ |
|
| 1285 | 1288 | protected static function getMethod($name) |
| 1286 | 1289 | { |
| 1287 | 1290 | $class = new ReflectionClass(Comment::class); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * Get the commenting option for the current state |
| 174 | 174 | * |
| 175 | 175 | * @param string $key |
| 176 | - * @return mixed Result if the setting is available, or null otherwise |
|
| 176 | + * @return integer Result if the setting is available, or null otherwise |
|
| 177 | 177 | */ |
| 178 | 178 | public function getOption($key) |
| 179 | 179 | { |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | * Returns the comment referenced in the URL (by ID). Permission checking |
| 411 | 411 | * should be done in the callee. |
| 412 | 412 | * |
| 413 | - * @return Comment|false |
|
| 413 | + * @return Comment |
|
| 414 | 414 | */ |
| 415 | 415 | public function getComment() |
| 416 | 416 | { |
@@ -409,7 +409,7 @@ |
||
| 409 | 409 | * |
| 410 | 410 | * @param Member $member |
| 411 | 411 | * |
| 412 | - * @return boolean |
|
| 412 | + * @return boolean|string |
|
| 413 | 413 | */ |
| 414 | 414 | public function canModerateComments($member = null) |
| 415 | 415 | { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | * |
| 237 | 237 | * @param string $key |
| 238 | 238 | * |
| 239 | - * @return mixed Result if the setting is available, or null otherwise |
|
| 239 | + * @return integer Result if the setting is available, or null otherwise |
|
| 240 | 240 | */ |
| 241 | 241 | public function getOption($key) |
| 242 | 242 | { |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | /** |
| 369 | 369 | * Checks if the comment can be edited. |
| 370 | 370 | * |
| 371 | - * @param null|int|Member $member |
|
| 371 | + * @param DataObject|null $member |
|
| 372 | 372 | * @return Boolean |
| 373 | 373 | */ |
| 374 | 374 | public function canEdit($member = null) |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | /** |
| 399 | 399 | * Checks if the comment can be deleted. |
| 400 | 400 | * |
| 401 | - * @param null|int|Member $member |
|
| 401 | + * @param Member|null $member |
|
| 402 | 402 | * @return Boolean |
| 403 | 403 | */ |
| 404 | 404 | public function canDelete($member = null) |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | * Resolves Member object. |
| 422 | 422 | * |
| 423 | 423 | * @param Member|int|null $member |
| 424 | - * @return Member|null |
|
| 424 | + * @return DataObject|null |
|
| 425 | 425 | */ |
| 426 | 426 | protected function getMember($member = null) |
| 427 | 427 | { |