Completed
Pull Request — master (#6830)
by Sam
15:00
created
src/Control/Email/Email.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 
136 136
     /**
137 137
      * Email constructor.
138
-     * @param string|array|null $from
139
-     * @param string|array|null $to
138
+     * @param string $from
139
+     * @param string $to
140 140
      * @param string|null $subject
141 141
      * @param string|null $body
142
-     * @param string|array|null $cc
143
-     * @param string|array|null $bcc
142
+     * @param string $cc
143
+     * @param string $bcc
144 144
      * @param string|null $returnPath
145 145
      */
146 146
     public function __construct(
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     }
227 227
 
228 228
     /**
229
-     * @param string|array $address
229
+     * @param string $address
230 230
      * @param string|null $name
231 231
      * @return $this
232 232
      */
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     }
239 239
 
240 240
     /**
241
-     * @return array
241
+     * @return string
242 242
      */
243 243
     public function getSender()
244 244
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-     * @param string|array $address
306
+     * @param string $address
307 307
      * @param string|null $name
308 308
      * @return $this
309 309
      */
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     }
336 336
 
337 337
     /**
338
-     * @param string|array $address
338
+     * @param string $address
339 339
      * @param string|null $name
340 340
      * @return $this
341 341
      */
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     }
368 368
 
369 369
     /**
370
-     * @param string|array $address
370
+     * @param string $address
371 371
      * @param string|null $name
372 372
      * @return $this
373 373
      */
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-     * @param string|array $address
387
+     * @param string $address
388 388
      * @param string|null $name
389 389
      * @return $this
390 390
      */
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     }
397 397
 
398 398
     /**
399
-     * @param string|array $address
399
+     * @param string $address
400 400
      * @param string|null $name
401 401
      * @return $this
402 402
      */
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
     }
503 503
 
504 504
     /**
505
-     * @param string|array $name The data name to add or array to names => value
505
+     * @param string $name The data name to add or array to names => value
506 506
      * @param string|null $value The value of the data to add
507 507
      * @return $this
508 508
      */
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
     }
729 729
 
730 730
     /**
731
-     * @return Swift_MimePart|false
731
+     * @return \Swift_Mime_MimeEntity
732 732
      */
733 733
     public function findPlainPart()
734 734
     {
Please login to merge, or discard this patch.
src/Control/Session.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -330,6 +330,9 @@  discard block
 block discarded – undo
330 330
         }
331 331
     }
332 332
 
333
+    /**
334
+     * @param string $name
335
+     */
333 336
     public function inst_set($name, $val)
334 337
     {
335 338
         // Quicker execution path for "."-free names
@@ -379,6 +382,11 @@  discard block
 block discarded – undo
379 382
         $diffVar[sizeof($var)-1] = $val;
380 383
     }
381 384
 
385
+    /**
386
+     * @param string $name
387
+     *
388
+     * @return string
389
+     */
382 390
     public function inst_get($name)
383 391
     {
384 392
         // Quicker execution path for "."-free names
Please login to merge, or discard this patch.
src/Core/Manifest/ClassManifest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * Returns a lowercase array of all the class names in the manifest.
227 227
      *
228
-     * @return array
228
+     * @return string[]
229 229
      */
230 230
     public function getClassNames()
231 231
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * Returns an array containing all the descendants (direct and indirect)
257 257
      * of a class.
258 258
      *
259
-     * @param  string|object $class
259
+     * @param  string $class
260 260
      * @return array
261 261
      */
262 262
     public function getDescendantsOf($class)
Please login to merge, or discard this patch.
src/ORM/DataObject.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2176,7 +2176,7 @@  discard block
 block discarded – undo
2176 2176
      * Called by {@link __get()} and any getFieldName() methods you might create.
2177 2177
      *
2178 2178
      * @param string $field The name of the field
2179
-     * @return mixed The field value
2179
+     * @return string|null The field value
2180 2180
      */
2181 2181
     public function getField($field)
2182 2182
     {
@@ -2458,6 +2458,7 @@  discard block
 block discarded – undo
2458 2458
 
2459 2459
     /**
2460 2460
      * {@inheritdoc}
2461
+     * @param string $field
2461 2462
      */
2462 2463
     public function castingHelper($field)
2463 2464
     {
@@ -2586,7 +2587,7 @@  discard block
 block discarded – undo
2586 2587
 
2587 2588
     /**
2588 2589
      * @param Member $member
2589
-     * @return boolean
2590
+     * @return boolean|string
2590 2591
      */
2591 2592
     public function canView($member = null)
2592 2593
     {
@@ -2599,7 +2600,7 @@  discard block
 block discarded – undo
2599 2600
 
2600 2601
     /**
2601 2602
      * @param Member $member
2602
-     * @return boolean
2603
+     * @return boolean|string
2603 2604
      */
2604 2605
     public function canEdit($member = null)
2605 2606
     {
@@ -2612,7 +2613,7 @@  discard block
 block discarded – undo
2612 2613
 
2613 2614
     /**
2614 2615
      * @param Member $member
2615
-     * @return boolean
2616
+     * @return boolean|string
2616 2617
      */
2617 2618
     public function canDelete($member = null)
2618 2619
     {
@@ -2627,7 +2628,7 @@  discard block
 block discarded – undo
2627 2628
      * @param Member $member
2628 2629
      * @param array $context Additional context-specific data which might
2629 2630
      * affect whether (or where) this object could be created.
2630
-     * @return boolean
2631
+     * @return boolean|string
2631 2632
      */
2632 2633
     public function canCreate($member = null, $context = array())
2633 2634
     {
@@ -2742,7 +2743,7 @@  discard block
 block discarded – undo
2742 2743
      * Traverses to a field referenced by relationships between data objects, returning the value
2743 2744
      * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
2744 2745
      *
2745
-     * @param $fieldName string
2746
+     * @param string $fieldName string
2746 2747
      * @return string | null - will return null on a missing value
2747 2748
      */
2748 2749
     public function relField($fieldName)
@@ -2820,7 +2821,7 @@  discard block
 block discarded – undo
2820 2821
      * @param string $callerClass The class of objects to be returned
2821 2822
      * @param string|array $filter A filter to be inserted into the WHERE clause.
2822 2823
      * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
2823
-     * @param string|array $sort A sort expression to be inserted into the ORDER
2824
+     * @param string $sort A sort expression to be inserted into the ORDER
2824 2825
      * BY clause.  If omitted, self::$default_sort will be used.
2825 2826
      * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
2826 2827
      * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
src/ORM/FieldType/DBField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Returns the value of this field.
177 177
      *
178
-     * @return mixed
178
+     * @return string
179 179
      */
180 180
     public function getValue()
181 181
     {
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     }
534 534
 
535 535
     /**
536
-     * @param array $value
536
+     * @param string $value
537 537
      * @return $this
538 538
      */
539 539
     public function setArrayValue($value)
Please login to merge, or discard this patch.
tests/php/Core/Manifest/ManifestFileFinderTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -19,6 +19,10 @@
 block discarded – undo
19 19
         parent::__construct();
20 20
     }
21 21
 
22
+    /**
23
+     * @param ManifestFileFinder $finder
24
+     * @param string[] $expect
25
+     */
22 26
     public function assertFinderFinds($finder, $expect, $message = null)
23 27
     {
24 28
         $found = $finder->find($this->base);
Please login to merge, or discard this patch.
tests/php/Core/Manifest/ThemeResourceLoaderTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -279,6 +279,9 @@  discard block
 block discarded – undo
279 279
         );
280 280
     }
281 281
 
282
+    /**
283
+     * @param string[] $templates
284
+     */
282 285
     protected function createTestTemplates($templates)
283 286
     {
284 287
         foreach ($templates as $template) {
@@ -286,6 +289,9 @@  discard block
 block discarded – undo
286 289
         }
287 290
     }
288 291
 
292
+    /**
293
+     * @param string[] $templates
294
+     */
289 295
     protected function removeTestTemplates($templates)
290 296
     {
291 297
         foreach ($templates as $template) {
Please login to merge, or discard this patch.
tests/php/Core/Startup/ParameterConfirmationTokenTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
 class ParameterConfirmationTokenTest extends SapphireTest
11 11
 {
12 12
 
13
+    /**
14
+     * @param string $part
15
+     */
13 16
     private function addPart($answer, $slash, $part)
14 17
     {
15 18
         $bare = str_replace('/', '', $part);
Please login to merge, or discard this patch.
tests/php/Dev/DevAdminControllerTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 
60 60
 
61 61
 
62
+    /**
63
+     * @param string $url
64
+     */
62 65
     protected function getCapture($url)
63 66
     {
64 67
         $this->logInWithPermission('ADMIN');
@@ -71,6 +74,9 @@  discard block
 block discarded – undo
71 74
         return $r;
72 75
     }
73 76
 
77
+    /**
78
+     * @param string $url
79
+     */
74 80
     protected function getAndCheckForError($url)
75 81
     {
76 82
         $this->logInWithPermission('ADMIN');
Please login to merge, or discard this patch.