Completed
Push — director-middleware ( 059969...3cff84 )
by Sam
08:52
created
src/Core/Startup/ParameterConfirmationToken.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected $token = null;
49 49
 
50
+    /**
51
+     * @param string $token
52
+     */
50 53
     protected function pathForToken($token)
51 54
     {
52 55
         return TEMP_FOLDER.'/token_'.preg_replace('/[^a-z0-9]+/', '', $token);
@@ -222,7 +225,7 @@  discard block
 block discarded – undo
222 225
      * Given a list of token names, suppress all tokens that have not been validated, and
223 226
      * return the non-validated token with the highest priority
224 227
      *
225
-     * @param array $keys List of token keys in ascending priority (low to high)
228
+     * @param string[] $keys List of token keys in ascending priority (low to high)
226 229
      * @param HTTPRequest $request
227 230
      * @return ParameterConfirmationToken The token container for the unvalidated $key given with the highest priority
228 231
      */
Please login to merge, or discard this patch.
src/Dev/BulkLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -141,6 +141,10 @@
 block discarded – undo
141 141
 	 *
142 142
 	 * @return BulkLoader_Result See {@link self::processAll()}
143 143
 	 */
144
+
145
+    /**
146
+     * @param string $filepath
147
+     */
144 148
     public function load($filepath)
145 149
     {
146 150
         Environment::increaseTimeLimitTo(3600);
Please login to merge, or discard this patch.
src/Dev/Install/Installer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -274,6 +274,9 @@
 block discarded – undo
274 274
         return $this->errors;
275 275
     }
276 276
 
277
+    /**
278
+     * @param string $filename
279
+     */
277 280
     public function writeToFile($filename, $content)
278 281
     {
279 282
         $base = $this->getBaseDir();
Please login to merge, or discard this patch.
src/Dev/Install/InstallRequirements.php 1 patch
Doc Comments   +72 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
     /**
161 161
      * Find the webserver software running on the PHP host.
162
-     * @return string|boolean Server software or boolean FALSE
162
+     * @return false|string Server software or boolean FALSE
163 163
      */
164 164
     public function findWebserver()
165 165
     {
@@ -469,6 +469,10 @@  discard block
 block discarded – undo
469 469
         return ini_get($settingName);
470 470
     }
471 471
 
472
+    /**
473
+     * @param string $settingName
474
+     * @param string[] $testDetails
475
+     */
472 476
     public function suggestPHPSetting($settingName, $settingValues, $testDetails)
473 477
     {
474 478
         $this->testing($testDetails);
@@ -482,6 +486,11 @@  discard block
 block discarded – undo
482 486
         }
483 487
     }
484 488
 
489
+    /**
490
+     * @param string $settingName
491
+     * @param false[] $settingValues
492
+     * @param string[] $testDetails
493
+     */
485 494
     public function requirePHPSetting($settingName, $settingValues, $testDetails)
486 495
     {
487 496
         $this->testing($testDetails);
@@ -492,6 +501,10 @@  discard block
 block discarded – undo
492 501
         }
493 502
     }
494 503
 
504
+    /**
505
+     * @param string $class
506
+     * @param string[] $testDetails
507
+     */
495 508
     public function suggestClass($class, $testDetails)
496 509
     {
497 510
         $this->testing($testDetails);
@@ -501,6 +514,10 @@  discard block
 block discarded – undo
501 514
         }
502 515
     }
503 516
 
517
+    /**
518
+     * @param string $class
519
+     * @param string[] $testDetails
520
+     */
504 521
     public function suggestFunction($class, $testDetails)
505 522
     {
506 523
         $this->testing($testDetails);
@@ -520,6 +537,10 @@  discard block
 block discarded – undo
520 537
         }
521 538
     }
522 539
 
540
+    /**
541
+     * @param integer $min
542
+     * @param integer $recommended
543
+     */
523 544
     public function requireMemory($min, $recommended, $testDetails)
524 545
     {
525 546
         $_SESSION['forcemem'] = false;
@@ -635,6 +656,10 @@  discard block
 block discarded – undo
635 656
         }
636 657
     }
637 658
 
659
+    /**
660
+     * @param string $funcName
661
+     * @param string[] $testDetails
662
+     */
638 663
     public function requireFunction($funcName, $testDetails)
639 664
     {
640 665
         $this->testing($testDetails);
@@ -646,6 +671,10 @@  discard block
 block discarded – undo
646 671
         return true;
647 672
     }
648 673
 
674
+    /**
675
+     * @param string $className
676
+     * @param string[] $testDetails
677
+     */
649 678
     public function requireClass($className, $testDetails)
650 679
     {
651 680
         $this->testing($testDetails);
@@ -692,6 +721,10 @@  discard block
 block discarded – undo
692 721
         return true;
693 722
     }
694 723
 
724
+    /**
725
+     * @param string $recommendedVersion
726
+     * @param string $requiredVersion
727
+     */
695 728
     public function requirePHPVersion($recommendedVersion, $requiredVersion, $testDetails)
696 729
     {
697 730
         $this->testing($testDetails);
@@ -735,7 +768,7 @@  discard block
 block discarded – undo
735 768
      * to ensure the module directory is intact.
736 769
      *
737 770
      * @param string $dirname
738
-     * @param array $testDetails
771
+     * @param string[] $testDetails
739 772
      */
740 773
     public function requireModule($dirname, $testDetails)
741 774
     {
@@ -751,6 +784,10 @@  discard block
 block discarded – undo
751 784
         }
752 785
     }
753 786
 
787
+    /**
788
+     * @param string $filename
789
+     * @param string[] $testDetails
790
+     */
754 791
     public function requireFile($filename, $testDetails)
755 792
     {
756 793
         $this->testing($testDetails);
@@ -761,6 +798,9 @@  discard block
 block discarded – undo
761 798
         }
762 799
     }
763 800
 
801
+    /**
802
+     * @param string $filename
803
+     */
764 804
     public function requireWriteable($filename, $testDetails, $absolute = false)
765 805
     {
766 806
         $this->testing($testDetails);
@@ -869,6 +909,10 @@  discard block
 block discarded – undo
869 909
         }
870 910
     }
871 911
 
912
+    /**
913
+     * @param string $moduleName
914
+     * @param string[] $testDetails
915
+     */
872 916
     public function requireApacheRewriteModule($moduleName, $testDetails)
873 917
     {
874 918
         $this->testing($testDetails);
@@ -889,6 +933,10 @@  discard block
 block discarded – undo
889 933
         return ($this->testApacheRewriteExists() || $this->testIISRewriteModuleExists());
890 934
     }
891 935
 
936
+    /**
937
+     * @param string $moduleName
938
+     * @param string[] $testDetails
939
+     */
892 940
     public function requireIISRewriteModule($moduleName, $testDetails)
893 941
     {
894 942
         $this->testing($testDetails);
@@ -916,6 +964,9 @@  discard block
 block discarded – undo
916 964
         return DatabaseAdapterRegistry::getDatabaseConfigurationHelper($databaseClass);
917 965
     }
918 966
 
967
+    /**
968
+     * @param string[] $testDetails
969
+     */
919 970
     public function requireDatabaseFunctions($databaseConfig, $testDetails)
920 971
     {
921 972
         $this->testing($testDetails);
@@ -933,6 +984,9 @@  discard block
 block discarded – undo
933 984
         }
934 985
     }
935 986
 
987
+    /**
988
+     * @param string[] $testDetails
989
+     */
936 990
     public function requireDatabaseConnection($databaseConfig, $testDetails)
937 991
     {
938 992
         $this->testing($testDetails);
@@ -947,6 +1001,9 @@  discard block
 block discarded – undo
947 1001
         }
948 1002
     }
949 1003
 
1004
+    /**
1005
+     * @param string[] $testDetails
1006
+     */
950 1007
     public function requireDatabaseVersion($databaseConfig, $testDetails)
951 1008
     {
952 1009
         $this->testing($testDetails);
@@ -979,6 +1036,9 @@  discard block
 block discarded – undo
979 1036
         }
980 1037
     }
981 1038
 
1039
+    /**
1040
+     * @param string[] $testDetails
1041
+     */
982 1042
     public function requireDatabaseOrCreatePermissions($databaseConfig, $testDetails)
983 1043
     {
984 1044
         $this->testing($testDetails);
@@ -1004,6 +1064,9 @@  discard block
 block discarded – undo
1004 1064
         }
1005 1065
     }
1006 1066
 
1067
+    /**
1068
+     * @param string[] $testDetails
1069
+     */
1007 1070
     public function requireDatabaseAlterPermissions($databaseConfig, $testDetails)
1008 1071
     {
1009 1072
         $this->testing($testDetails);
@@ -1019,6 +1082,10 @@  discard block
 block discarded – undo
1019 1082
         }
1020 1083
     }
1021 1084
 
1085
+    /**
1086
+     * @param string[] $varNames
1087
+     * @param string[] $testDetails
1088
+     */
1022 1089
     public function requireServerVariables($varNames, $testDetails)
1023 1090
     {
1024 1091
         $this->testing($testDetails);
@@ -1040,6 +1107,9 @@  discard block
 block discarded – undo
1040 1107
     }
1041 1108
 
1042 1109
 
1110
+    /**
1111
+     * @param string[] $testDetails
1112
+     */
1043 1113
     public function requirePostSupport($testDetails)
1044 1114
     {
1045 1115
         $this->testing($testDetails);
Please login to merge, or discard this patch.
src/Dev/SapphireTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
      * @param string $expectedSQL
788 788
      * @param string $actualSQL
789 789
      * @param string $message
790
-     * @param float|int $delta
790
+     * @param integer $delta
791 791
      * @param integer $maxDepth
792 792
      * @param boolean $canonicalize
793 793
      * @param boolean $ignoreCase
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
      * Create a member and group with the given permission code, and log in with it.
953 953
      * Returns the member ID.
954 954
      *
955
-     * @param string|array $permCode Either a permission, or list of permissions
955
+     * @param string $permCode Either a permission, or list of permissions
956 956
      * @return int Member ID
957 957
      */
958 958
     public function logInWithPermission($permCode = "ADMIN")
Please login to merge, or discard this patch.
src/includes/functions.php 1 patch
Doc Comments   -6 removed lines patch added patch discarded remove patch
@@ -53,12 +53,6 @@
 block discarded – undo
53 53
  * @param string $entity Entity that identifies the string. It must be in the form
54 54
  * "Namespace.Entity" where Namespace will be usually the class name where this
55 55
  * string is used and Entity identifies the string inside the namespace.
56
- * @param mixed $arg,... Additional arguments are parsed as such:
57
- *  - Next string argument is a default. Pass in a `|` pipe-delimeted value with `{count}`
58
- *    to do pluralisation.
59
- *  - Any other string argument after default is context for i18nTextCollector
60
- *  - Any array argument in any order is an injection parameter list. Pass in a `count`
61
- *    injection parameter to pluralise.
62 56
  * @return string
63 57
  */
64 58
 function _t($entity, $arg = null)
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
@@ -2397,6 +2397,7 @@  discard block
 block discarded – undo
2397 2397
 
2398 2398
     /**
2399 2399
      * {@inheritdoc}
2400
+     * @param string $field
2400 2401
      */
2401 2402
     public function castingHelper($field)
2402 2403
     {
@@ -2502,7 +2503,7 @@  discard block
 block discarded – undo
2502 2503
      * </code>
2503 2504
      *
2504 2505
      * @param string $methodName Method on the same object, e.g. {@link canEdit()}
2505
-     * @param Member|int $member
2506
+     * @param null|Member $member
2506 2507
      * @param array $context Optional context
2507 2508
      * @return boolean|null
2508 2509
      */
@@ -2525,7 +2526,7 @@  discard block
 block discarded – undo
2525 2526
 
2526 2527
     /**
2527 2528
      * @param Member $member
2528
-     * @return boolean
2529
+     * @return boolean|string
2529 2530
      */
2530 2531
     public function canView($member = null)
2531 2532
     {
@@ -2538,7 +2539,7 @@  discard block
 block discarded – undo
2538 2539
 
2539 2540
     /**
2540 2541
      * @param Member $member
2541
-     * @return boolean
2542
+     * @return boolean|string
2542 2543
      */
2543 2544
     public function canEdit($member = null)
2544 2545
     {
@@ -2551,7 +2552,7 @@  discard block
 block discarded – undo
2551 2552
 
2552 2553
     /**
2553 2554
      * @param Member $member
2554
-     * @return boolean
2555
+     * @return boolean|string
2555 2556
      */
2556 2557
     public function canDelete($member = null)
2557 2558
     {
@@ -2566,7 +2567,7 @@  discard block
 block discarded – undo
2566 2567
      * @param Member $member
2567 2568
      * @param array $context Additional context-specific data which might
2568 2569
      * affect whether (or where) this object could be created.
2569
-     * @return boolean
2570
+     * @return boolean|string
2570 2571
      */
2571 2572
     public function canCreate($member = null, $context = array())
2572 2573
     {
@@ -2683,7 +2684,7 @@  discard block
 block discarded – undo
2683 2684
      * Traverses to a field referenced by relationships between data objects, returning the value
2684 2685
      * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
2685 2686
      *
2686
-     * @param $fieldName string
2687
+     * @param string $fieldName string
2687 2688
      * @return string | null - will return null on a missing value
2688 2689
      */
2689 2690
     public function relField($fieldName)
@@ -2762,7 +2763,7 @@  discard block
 block discarded – undo
2762 2763
      * @param string $callerClass The class of objects to be returned
2763 2764
      * @param string|array $filter A filter to be inserted into the WHERE clause.
2764 2765
      * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
2765
-     * @param string|array $sort A sort expression to be inserted into the ORDER
2766
+     * @param string $sort A sort expression to be inserted into the ORDER
2766 2767
      * BY clause.  If omitted, self::$default_sort will be used.
2767 2768
      * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
2768 2769
      * @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/DBHTMLText.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SilverStripe\ORM\FieldType;
4 4
 
5 5
 use SilverStripe\Core\Convert;
6
-use SilverStripe\Core\Injector\Injector;
7 6
 use SilverStripe\Control\HTTP;
8 7
 use SilverStripe\Forms\TextField;
9 8
 use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
Please login to merge, or discard this patch.
src/Security/LogoutForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SilverStripe\Control\Director;
6 6
 use SilverStripe\Control\RequestHandler;
7
-use SilverStripe\Control\Session;
8 7
 use SilverStripe\Forms\FieldList;
9 8
 use SilverStripe\Forms\Form;
10 9
 use SilverStripe\Forms\FormAction;
Please login to merge, or discard this patch.