Completed
Branch #338-Save_posting_before_movin... (90c6c5)
by Schlaefer
02:36
created
src/Controller/PreviewController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Generate posting preview for JSON frontend.
34 34
      *
35
-     * @return \Cake\Network\Response|void
35
+     * @return null|\Cake\Http\Response
36 36
      */
37 37
     public function preview()
38 38
     {
Please login to merge, or discard this patch.
src/Model/Table/EntriesTable.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
     /**
563 563
      * trees for multiple tids
564 564
      *
565
-     * @param array $ids ids
565
+     * @param integer[] $ids ids
566 566
      * @param array $order order
567 567
      * @param array $fieldlist fieldlist
568 568
      * @return array|null array of Postings, null if nothing found
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
      * @param array $params params
616 616
      * - 'fields' array of thread-ids: [1, 2, 5]
617 617
      * - 'order' sort order for threads ['time' => 'ASC'],
618
-     * @return mixed unhydrated result set
618
+     * @return Query unhydrated result set
619 619
      */
620 620
     protected function _getThreadEntries(array $tid, array $params = [])
621 621
     {
@@ -669,6 +669,8 @@  discard block
 block discarded – undo
669 669
 
670 670
     /**
671 671
      * {@inheritDoc}
672
+     * @param integer $id
673
+     * @param string $key
672 674
      */
673 675
     public function toggle($id, $key)
674 676
     {
@@ -853,7 +855,7 @@  discard block
 block discarded – undo
853 855
      * Check if posting is thread-root.
854 856
      *
855 857
      * @param array $id posting-ID or posting data
856
-     * @return mixed
858
+     * @return boolean
857 859
      */
858 860
     protected function _isRoot(array $id)
859 861
     {
Please login to merge, or discard this patch.
src/Controller/Component/PostingComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 throw new \InvalidArgumentException(
67 67
                     'Parent posting for creating a new answer not found.',
68 68
                     1564756571
69
-                ) ;
69
+                );
70 70
             }
71 71
             $parentId = $parent->get('id');
72 72
             $categoryId = $parent->get('category_id');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 throw new \InvalidArgumentException(
82 82
                     'New root posting requires a category.',
83 83
                     1564756571
84
-                ) ;
84
+                );
85 85
             }
86 86
             $categoryId = (int)$data['category_id'];
87 87
         }
Please login to merge, or discard this patch.