Completed
Push — master ( 9dab44...8bd79e )
by Robbie
02:00
created
src/Controllers/CommentingController.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * Get the commenting option for the current state
183 183
      *
184 184
      * @param string $key
185
-     * @return mixed Result if the setting is available, or null otherwise
185
+     * @return integer Result if the setting is available, or null otherwise
186 186
      */
187 187
     public function getOption($key)
188 188
     {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * Outputs the RSS feed of comments
218 218
      *
219
-     * @return HTMLText
219
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
220 220
      */
221 221
     public function rss()
222 222
     {
@@ -365,6 +365,7 @@  discard block
 block discarded – undo
365 365
      * Redirect back to referer if available, ensuring that only site URLs
366 366
      * are allowed to avoid phishing.  If it's an AJAX request render the
367 367
      * comment in it's new state
368
+     * @param DataObject $comment
368 369
      */
369 370
     private function renderChangedCommentState($comment)
370 371
     {
Please login to merge, or discard this patch.
src/Extensions/CommentsExtension.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     /**
276 276
      * Returns the root level comments, with spam and unmoderated items excluded, for use in the frontend
277 277
      *
278
-     * @return DataList
278
+     * @return \SilverStripe\ORM\SS_List
279 279
      */
280 280
     public function Comments()
281 281
     {
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      *
390 390
      * @param Member $member
391 391
      *
392
-     * @return boolean
392
+     * @return boolean|string
393 393
      */
394 394
     public function canModerateComments($member = null)
395 395
     {
Please login to merge, or discard this patch.
src/Model/Comment/SecurityToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/CommentsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1282,6 +1282,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Model/Comment.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
     /**
843 843
      * Generate a reply form for this comment
844 844
      *
845
-     * @return Form
845
+     * @return null|\SilverStripe\Comments\Controllers\Form
846 846
      */
847 847
     public function ReplyForm()
848 848
     {
Please login to merge, or discard this patch.