Completed
Push — master ( a03f6b...75451a )
by Daniel
02:19
created
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.
code/Controllers/CMSPageAddController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@  discard block
 block discarded – undo
4 4
 
5 5
 use SilverStripe\CMS\Model\SiteTree;
6 6
 use SilverStripe\Control\Controller;
7
-use SilverStripe\Control\Session;
8 7
 use SilverStripe\Control\HTTPResponse;
9 8
 use SilverStripe\Core\Convert;
10 9
 use SilverStripe\Forms\FieldList;
@@ -18,7 +17,6 @@  discard block
 block discarded – undo
18 17
 use SilverStripe\ORM\DataObject;
19 18
 use SilverStripe\ORM\FieldType\DBField;
20 19
 use SilverStripe\ORM\ValidationResult;
21
-use SilverStripe\Security\Member;
22 20
 use SilverStripe\Security\Security;
23 21
 
24 22
 class CMSPageAddController extends CMSPageEditController
Please login to merge, or discard this patch.