Completed
Pull Request — 1.2 (#227)
by
unknown
03:16
created
code/extensions/LeftAndMainSubsites.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -169,6 +169,7 @@
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * Helper for testing if the subsite should be adjusted.
172
+     * @param integer $currentSubsiteID
172 173
      */
173 174
     public function shouldChangeSubsite($adminClass, $recordSubsiteID, $currentSubsiteID)
174 175
     {
Please login to merge, or discard this patch.
code/extensions/SiteTreeSubsites.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * - Is in a group which has access to the subsite this page belongs to
143 143
      * - Is in a group with edit permissions on the "main site"
144 144
      * 
145
-     * @return boolean
145
+     * @return false|null
146 146
      */
147 147
     public function canEdit($member = null)
148 148
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     }
172 172
     
173 173
     /**
174
-     * @return boolean
174
+     * @return false|null
175 175
      */
176 176
     public function canDelete($member = null)
177 177
     {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     }
184 184
     
185 185
     /**
186
-     * @return boolean
186
+     * @return false|null
187 187
      */
188 188
     public function canAddChildren($member = null)
189 189
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     }
196 196
     
197 197
     /**
198
-     * @return boolean
198
+     * @return false|null
199 199
      */
200 200
     public function canPublish($member = null)
201 201
     {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     
337 337
     /**
338 338
      * @param Member
339
-     * @return boolean|null
339
+     * @return false|null
340 340
      */
341 341
     public function canCreate($member = null)
342 342
     {
Please login to merge, or discard this patch.
code/model/Subsite.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,6 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @todo Pass $request object from controller so we don't have to rely on $_GET
101 101
      *
102
-     * @param boolean $cache
103 102
      * @return int ID of the current subsite instance
104 103
      */
105 104
     public static function currentSubsiteID()
@@ -158,7 +157,7 @@  discard block
 block discarded – undo
158 157
      * for example matching all subdomains on *.example.com with one subsite,
159 158
      * and all subdomains on *.example.org on another.
160 159
      * 
161
-     * @param $host The host to find the subsite for.  If not specified, $_SERVER['HTTP_HOST'] is used.
160
+     * @param string $host The host to find the subsite for.  If not specified, $_SERVER['HTTP_HOST'] is used.
162 161
      * @return int Subsite ID
163 162
      */
164 163
     public static function getSubsiteIDForDomain($host = null, $checkPermissions = true)
Please login to merge, or discard this patch.
code/tasks/SubsiteCopyPagesTask.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         }
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $msg
75
+     */
73 76
     public function log($msg)
74 77
     {
75 78
         echo $msg . "\n";
Please login to merge, or discard this patch.