Completed
Push — master ( a03f6b...75451a )
by Daniel
02:19
created
code/Controllers/CMSPageEditController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @param array $data
45 45
      * @param Form $form
46
-     * @return DBHTMLText|HTTPResponse
46
+     * @return null|HTTPResponse
47 47
      */
48 48
     public function addtocampaign($data, $form)
49 49
     {
Please login to merge, or discard this patch.
code/Controllers/SilverStripeNavigatorItem.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     protected $recordLink;
26 26
 
27 27
     /**
28
-     * @param DataObject|CMSPreviewable $record
28
+     * @param CMSPreviewable $record
29 29
      */
30 30
     public function __construct(CMSPreviewable $record)
31 31
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @return DataObject
79
+     * @return CMSPreviewable
80 80
      */
81 81
     public function getRecord()
82 82
     {
Please login to merge, or discard this patch.
code/Forms/SiteTreeURLSegmentField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@
 block discarded – undo
137 137
         return $this->defaultUrl;
138 138
     }
139 139
 
140
+    /**
141
+     * @param string $url
142
+     */
140 143
     public function setDefaultURL($url)
141 144
     {
142 145
         $this->defaultUrl = $url;
Please login to merge, or discard this patch.
code/Model/SiteTreeFileExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     /**
62 62
      * Generate an HTML list which provides links to where a file is used.
63 63
      *
64
-     * @return string
64
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
65 65
      */
66 66
     public function BackLinkHTMLList()
67 67
     {
Please login to merge, or discard this patch.
code/Model/VirtualPage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -379,6 +379,9 @@
 block discarded – undo
379 379
         return null;
380 380
     }
381 381
 
382
+    /**
383
+     * @param string $field
384
+     */
382 385
     public function getField($field)
383 386
     {
384 387
         if ($this->isFieldVirtualised($field)) {
Please login to merge, or discard this patch.
code/Controllers/SilverStripeNavigator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     protected $record;
29 29
 
30 30
     /**
31
-     * @param DataObject|\SilverStripe\ORM\CMSPreviewable $record
31
+     * @param CMSPreviewable $record
32 32
      */
33 33
     public function __construct(CMSPreviewable $record)
34 34
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @param DataObject|CMSPreviewable $record
82
+     * @param DataObject $record
83 83
      * @return array template data
84 84
      */
85 85
     public static function get_for_record($record)
Please login to merge, or discard this patch.
code/Model/SiteTree.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -811,7 +811,7 @@
 block discarded – undo
811 811
      * @param boolean $unlinked Whether to link page titles.
812 812
      * @param boolean|string $stopAtPageType ClassName of a page to stop the upwards traversal.
813 813
      * @param boolean $showHidden Include pages marked with the attribute ShowInMenus = 0
814
-     * @return string The breadcrumb trail.
814
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText The breadcrumb trail.
815 815
      */
816 816
     public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false, $delimiter = '»')
817 817
     {
Please login to merge, or discard this patch.
code/Controllers/CMSMain.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -382,6 +382,9 @@  discard block
 block discarded – undo
382 382
         return 'edit';
383 383
     }
384 384
 
385
+    /**
386
+     * @param string $link
387
+     */
385 388
     public function LinkWithSearch($link)
386 389
     {
387 390
         // Whitelist to avoid side effects
@@ -522,7 +525,7 @@  discard block
 block discarded – undo
522 525
     /**
523 526
      * Get callback to determine template customisations for nodes
524 527
      *
525
-     * @return callable
528
+     * @return \Closure
526 529
      */
527 530
     protected function getTreeNodeCustomisations()
528 531
     {
@@ -1310,7 +1313,7 @@  discard block
 block discarded – undo
1310 1313
      * pages tree deferred handler (no pjax-fragment)
1311 1314
      *
1312 1315
      * @param HTTPRequest $request
1313
-     * @return string HTML
1316
+     * @return DBHTMLText HTML
1314 1317
      */
1315 1318
     public function treeview($request)
1316 1319
     {
@@ -1324,7 +1327,7 @@  discard block
 block discarded – undo
1324 1327
      * Note: This method exclusively handles top level view of list view
1325 1328
      *
1326 1329
      * @param HTTPRequest $request
1327
-     * @return string HTML
1330
+     * @return HTTPResponse HTML
1328 1331
      */
1329 1332
     public function listview($request)
1330 1333
     {
@@ -1677,7 +1680,7 @@  discard block
 block discarded – undo
1677 1680
      * Actually perform the publication step
1678 1681
      *
1679 1682
      * @param Versioned|DataObject $record
1680
-     * @return mixed
1683
+     * @return HTTPResponse|null
1681 1684
      */
1682 1685
     public function performPublish($record)
1683 1686
     {
Please login to merge, or discard this patch.