Completed
Push — master ( cf78d1...094b15 )
by Daniel
10s
created
code/formfields/ForumCountryDropdownField.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@
 block discarded – undo
32 32
         return i18n::get_locale();
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $name
37
+     * @param string $title
38
+     */
35 39
     public function __construct($name, $title = null, $source = null, $value = "", $form = null)
36 40
     {
37 41
         if (!is_array($source)) {
Please login to merge, or discard this patch.
code/model/ForumThread.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * Check if they have visited this thread before. If they haven't increment
170 170
      * the NumViews value by 1 and set visited to true.
171 171
      *
172
-     * @return void
172
+     * @return false|null
173 173
      */
174 174
     public function incNumViews()
175 175
     {
Please login to merge, or discard this patch.
code/pagetypes/Forum.php 1 patch
Doc Comments   +12 added lines, -7 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     /**
391 391
      * Get the number of total topics (threads) in this Forum
392 392
      *
393
-     * @return int Returns the number of topics (threads)
393
+     * @return string Returns the number of topics (threads)
394 394
      */
395 395
     public function getNumTopics()
396 396
     {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
     /**
407 407
      * Get the number of total posts
408 408
      *
409
-     * @return int Returns the number of posts
409
+     * @return string Returns the number of posts
410 410
      */
411 411
     public function getNumPosts()
412 412
     {
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     /**
424 424
      * Get the number of distinct Authors
425 425
      *
426
-     * @return int
426
+     * @return string
427 427
      */
428 428
     public function getNumAuthors()
429 429
     {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 
439 439
     /**
440 440
      * Returns the Topics (the first Post of each Thread) for this Forum
441
-     * @return DataList
441
+     * @return PaginatedList|null
442 442
      */
443 443
     public function getTopics()
444 444
     {
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
      *
646 646
      * Designed to be called via AJAX so return true / false
647 647
      *
648
-     * @return bool
648
+     * @return null|false
649 649
      */
650 650
     public function unsubscribe(SS_HTTPRequest $request)
651 651
     {
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
     /**
791 791
      * Get posts to display. This method assumes an URL parameter "ID" which contains the thread ID.
792 792
      * @param string sortDirection The sort order direction, either ASC for ascending (default) or DESC for descending
793
-     * @return DataObjectSet Posts
793
+     * @return PaginatedList Posts
794 794
      */
795 795
     public function Posts($sortDirection = "ASC")
796 796
     {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
     /**
845 845
      * Get the usable BB codes
846 846
      *
847
-     * @return DataObjectSet Returns the usable BB codes
847
+     * @return ArrayList Returns the usable BB codes
848 848
      * @see BBCodeParser::usable_tags()
849 849
      */
850 850
     public function BBTags()
@@ -1144,6 +1144,8 @@  discard block
 block discarded – undo
1144 1144
 
1145 1145
     /**
1146 1146
      * Send email to moderators notifying them the thread has been created or post added/edited.
1147
+     * @param DataObject $post
1148
+     * @param DataObject $thread
1147 1149
      */
1148 1150
     public function notifyModerators($post, $thread, $starting_thread = false)
1149 1151
     {
@@ -1485,6 +1487,9 @@  discard block
 block discarded – undo
1485 1487
  */
1486 1488
 class Forum_DataQuery extends DataQuery
1487 1489
 {
1490
+    /**
1491
+     * @param string $dataClass
1492
+     */
1488 1493
     public function __construct($dataClass, $query)
1489 1494
     {
1490 1495
         parent::__construct($dataClass);
Please login to merge, or discard this patch.
code/pagetypes/ForumHolder.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     /**
242 242
      * Get the number of total posts
243 243
      *
244
-     * @return int Returns the number of posts
244
+     * @return string Returns the number of posts
245 245
      */
246 246
     public function getNumPosts()
247 247
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Get the number of total topics (threads)
261 261
      *
262
-     * @return int Returns the number of topics (threads)
262
+     * @return string Returns the number of topics (threads)
263 263
      */
264 264
     public function getNumTopics()
265 265
     {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      * Get the number of distinct authors
279 279
      *
280
-     * @return int Returns the number of distinct authors
280
+     * @return string Returns the number of distinct authors
281 281
      */
282 282
     public function getNumAuthors()
283 283
     {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 
378 378
     /**
379 379
      * Get a list of Forum Categories
380
-     * @return DataList
380
+     * @return boolean
381 381
      */
382 382
     public function getShowInCategories()
383 383
     {
@@ -542,8 +542,9 @@  discard block
 block discarded – undo
542 542
      *                    it (keys: 'last_id', 'last_created')
543 543
      * @param int $lastVisit Unix timestamp of the last visit (GMT)
544 544
      * @param int $lastPostID ID of the last read post
545
-     * @param int $thread ID of the relevant topic (set to NULL for all
545
+     * @param integer $threadID ID of the relevant topic (set to NULL for all
546 546
      *                     topics)
547
+     * @param integer $forumID
547 548
      * @return bool Returns TRUE if there are new posts available, otherwise
548 549
      *              FALSE.
549 550
      */
Please login to merge, or discard this patch.
code/controllers/ForumMemberProfile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -601,7 +601,7 @@
 block discarded – undo
601 601
     /**
602 602
      * Return the with the passed ID (via URL parameters) or the current user
603 603
      *
604
-     * @return null|Member Returns the member object or NULL if the member
604
+     * @return DataObject|null Returns the member object or NULL if the member
605 605
      *                     was not found
606 606
      */
607 607
     function Member()
Please login to merge, or discard this patch.