Completed
Push — ss3-php74 ( f30a6a )
by Sam
05:37
created
forms/Form.php 1 patch
Doc Comments   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
 	/**
533 533
 	 * Fields can have action to, let's check if anyone of the responds to $funcname them
534 534
 	 *
535
-	 * @param SS_List|array $fields
535
+	 * @param FieldList|null $fields
536 536
 	 * @param callable $funcName
537 537
 	 * @return FormField
538 538
 	 */
@@ -791,6 +791,7 @@  discard block
 block discarded – undo
791 791
 	}
792 792
 
793 793
 	/**
794
+	 * @param string $name
794 795
 	 * @return string $name
795 796
 	 */
796 797
 	public function getAttribute($name) {
@@ -825,6 +826,7 @@  discard block
 block discarded – undo
825 826
 	 *
826 827
 	 * @param array Custom attributes to process. Falls back to {@link getAttributes()}.
827 828
 	 * If at least one argument is passed as a string, all arguments act as excludes by name.
829
+	 * @param string $attrs
828 830
 	 *
829 831
 	 * @return string HTML attributes, ready for insertion into an HTML tag
830 832
 	 */
@@ -1032,7 +1034,7 @@  discard block
 block discarded – undo
1032 1034
 	 * If set to false (the default), then the form method is only used to construct the default
1033 1035
 	 * form.
1034 1036
 	 *
1035
-	 * @param $bool boolean
1037
+	 * @param boolean $bool boolean
1036 1038
 	 * @return $this
1037 1039
 	 */
1038 1040
 	public function setStrictFormMethodCheck($bool) {
@@ -1541,7 +1543,7 @@  discard block
 block discarded – undo
1541 1543
 	 * This is returned when you access a form as $FormObject rather
1542 1544
 	 * than <% with FormObject %>
1543 1545
 	 *
1544
-	 * @return HTML
1546
+	 * @return HTMLText
1545 1547
 	 */
1546 1548
 	public function forTemplate() {
1547 1549
 		$return = $this->renderWith(array_merge(
@@ -1561,7 +1563,7 @@  discard block
 block discarded – undo
1561 1563
 	 * It triggers slightly different behaviour, such as disabling the rewriting
1562 1564
 	 * of # links.
1563 1565
 	 *
1564
-	 * @return HTML
1566
+	 * @return HTMLText
1565 1567
 	 */
1566 1568
 	public function forAjaxTemplate() {
1567 1569
 		$view = new SSViewer(array(
@@ -1584,7 +1586,7 @@  discard block
 block discarded – undo
1584 1586
 	 * and _form_enctype.  These are the attributes of the form.  These fields
1585 1587
 	 * can be used to send the form to Ajax.
1586 1588
 	 *
1587
-	 * @return HTML
1589
+	 * @return string
1588 1590
 	 */
1589 1591
 	public function formHtmlContent() {
1590 1592
 		$this->IncludeFormTag = false;
@@ -1842,6 +1844,9 @@  discard block
 block discarded – undo
1842 1844
 
1843 1845
 	protected $form;
1844 1846
 
1847
+	/**
1848
+	 * @param Form $form
1849
+	 */
1845 1850
 	public function __construct($form) {
1846 1851
 		$this->form = $form;
1847 1852
 		parent::__construct();
Please login to merge, or discard this patch.
forms/gridfield/GridFieldDetailForm.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -164,6 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
 	/**
166 166
 	 * @param String
167
+	 * @param string $class
167 168
 	 */
168 169
 	public function setItemRequestClass($class) {
169 170
 		$this->itemRequestClass = $class;
@@ -271,6 +272,9 @@  discard block
 block discarded – undo
271 272
 		parent::__construct();
272 273
 	}
273 274
 
275
+	/**
276
+	 * @param string $action
277
+	 */
274 278
 	public function Link($action = null) {
275 279
 		return Controller::join_links($this->gridField->Link('item'),
276 280
 			$this->record->ID ? $this->record->ID : 'new', $action);
@@ -299,6 +303,9 @@  discard block
 block discarded – undo
299 303
 		}
300 304
 	}
301 305
 
306
+	/**
307
+	 * @param SS_HTTPRequest $request
308
+	 */
302 309
 	public function edit($request) {
303 310
 		$controller = $this->getToplevelController();
304 311
 		$form = $this->ItemEditForm($this->gridField, $request);
Please login to merge, or discard this patch.
forms/gridfield/GridFieldEditButton.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * Which columns are handled by this component
56 56
 	 *
57 57
 	 * @param GridField $gridField
58
-	 * @return array
58
+	 * @return string[]
59 59
 	 */
60 60
 	public function getColumnsHandled($gridField) {
61 61
 		return array('Actions');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * @param DataObject $record
77 77
 	 * @param string $columnName
78 78
 	 *
79
-	 * @return string - the HTML for the column
79
+	 * @return HTMLText - the HTML for the column
80 80
 	 */
81 81
 	public function getColumnContent($gridField, $record, $columnName) {
82 82
 		// No permission checks, handled through GridFieldDetailForm,
Please login to merge, or discard this patch.
forms/InlineFormAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 	/**
16 16
 	 * Create a new action button.
17
-	 * @param action The method to call when the button is clicked
17
+	 * @param action string method to call when the button is clicked
18 18
 	 * @param title The label on the button
19 19
 	 * @param extraClass A CSS class to apply to the button in addition to 'action'
20 20
 	 */
Please login to merge, or discard this patch.
i18n/i18nTextCollector.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -709,7 +709,8 @@  discard block
 block discarded – undo
709 709
 	 * Input for langArrayCodeForEntitySpec() should be suitable for insertion
710 710
 	 * into single-quoted strings, so needs to be escaped already.
711 711
 	 *
712
-	 * @param string $entity The entity name, e.g. CMSMain.BUTTONSAVE
712
+	 * @param string $entitySpec The entity name, e.g. CMSMain.BUTTONSAVE
713
+	 * @param string $locale
713 714
 	 */
714 715
 	public function langArrayCodeForEntitySpec($entityFullName, $entitySpec, $locale) {
715 716
 		$php = '';
@@ -772,6 +773,11 @@  discard block
 block discarded – undo
772 773
 		return true;
773 774
 	}
774 775
 
776
+	/**
777
+	 * @param string $locale
778
+	 *
779
+	 * @return string
780
+	 */
775 781
 	public function getYaml($entities, $locale) {
776 782
 		// Use the Zend copy of this script to prevent class conflicts when RailsYaml is included
777 783
 		require_once 'thirdparty/zend_translate_railsyaml/library/Translate/Adapter/thirdparty/sfYaml/lib'
@@ -846,6 +852,7 @@  discard block
 block discarded – undo
846 852
 
847 853
 	/**
848 854
 	 * Parses a template and returns any translatable entities
855
+	 * @param string $template
849 856
 	 */
850 857
 	public static function GetTranslatables($template) {
851 858
 		self::$entities = array();
Please login to merge, or discard this patch.
model/Aggregate.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,7 @@  discard block
 block discarded – undo
47 47
 	/**
48 48
 	 * Clear the aggregate cache for a given type, or pass nothing to clear all aggregate caches.
49 49
 	 * {@link $class} is just effective if the cache backend supports tags.
50
+	 * @param string $class
50 51
 	 */
51 52
 	public static function flushCache($class=null) {
52 53
 		$cache = self::cache();
@@ -85,7 +86,7 @@  discard block
 block discarded – undo
85 86
 	 * Build the SQLSelect to calculate the aggregate
86 87
 	 * This is a seperate function so that subtypes of Aggregate can change just this bit
87 88
 	 * @param string $attr - the SQL field statement for selection (i.e. "MAX(LastUpdated)")
88
-	 * @return SQLSelect
89
+	 * @return DataList
89 90
 	 */
90 91
 	protected function query($attr) {
91 92
 		$query = DataList::create($this->type)->where($this->filter);
Please login to merge, or discard this patch.
model/DatabaseAdmin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 	/**
153 153
 	 * Returns the timestamp of the time that the database was last built
154 154
 	 *
155
-	 * @return string Returns the timestamp of the time that the database was
155
+	 * @return integer|null Returns the timestamp of the time that the database was
156 156
 	 *                last built
157 157
 	 */
158 158
 	public static function lastBuilt() {
Please login to merge, or discard this patch.
model/DataList.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * Returns a new DataList instance with the specified query parameter assigned
158 158
 	 *
159 159
 	 * @param string|array $keyOrArray Either the single key to set, or an array of key value pairs to set
160
-	 * @param mixed $val If $keyOrArray is not an array, this is the value to set
160
+	 * @param string $val If $keyOrArray is not an array, this is the value to set
161 161
 	 * @return DataList
162 162
 	 */
163 163
 	public function setDataQueryParam($keyOrArray, $val = null) {
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
 	 * @param int $order A numerical index to control the order that joins are added to the query; lower order values
617 617
 	 * will cause the query to appear first. The default is 20, and joins created automatically by the
618 618
 	 * ORM have a value of 10.
619
-	 * @param array $parameters Any additional parameters if the join is a parameterised subquery
619
+	 * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
620 620
 	 * @return DataList
621 621
 	 */
622 622
 	public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) {
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
 	 * @param int $order A numerical index to control the order that joins are added to the query; lower order values
635 635
 	 * will cause the query to appear first. The default is 20, and joins created automatically by the
636 636
 	 * ORM have a value of 10.
637
-	 * @param array $parameters Any additional parameters if the join is a parameterised subquery
637
+	 * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
638 638
 	 * @return DataList
639 639
 	 */
640 640
 	public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) {
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 	 * Return the maximum value of the given field in this DataList
762 762
 	 *
763 763
 	 * @param string $fieldName
764
-	 * @return mixed
764
+	 * @return string
765 765
 	 */
766 766
 	public function max($fieldName) {
767 767
 		return $this->dataQuery->max($fieldName);
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
 	 * Return the minimum value of the given field in this DataList
772 772
 	 *
773 773
 	 * @param string $fieldName
774
-	 * @return mixed
774
+	 * @return string
775 775
 	 */
776 776
 	public function min($fieldName) {
777 777
 		return $this->dataQuery->min($fieldName);
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 	 * Return the average value of the given field in this DataList
782 782
 	 *
783 783
 	 * @param string $fieldName
784
-	 * @return mixed
784
+	 * @return string
785 785
 	 */
786 786
 	public function avg($fieldName) {
787 787
 		return $this->dataQuery->avg($fieldName);
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 	 * Return the sum of the values of the given field in this DataList
792 792
 	 *
793 793
 	 * @param string $fieldName
794
-	 * @return mixed
794
+	 * @return string
795 795
 	 */
796 796
 	public function sum($fieldName) {
797 797
 		return $this->dataQuery->sum($fieldName);
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
 	/**
844 844
 	 * Restrict the columns to fetch into this DataList
845 845
 	 *
846
-	 * @param array $queriedColumns
846
+	 * @param string[] $queriedColumns
847 847
 	 * @return DataList
848 848
 	 */
849 849
 	public function setQueriedColumns($queriedColumns) {
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
 	/**
1117 1117
 	 * Returns item stored in list with index $key
1118 1118
 	 *
1119
-	 * @param mixed $key
1119
+	 * @param integer $key
1120 1120
 	 * @return DataObject
1121 1121
 	 */
1122 1122
 	public function offsetGet($key) {
Please login to merge, or discard this patch.
model/DB.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -217,9 +217,8 @@  discard block
 block discarded – undo
217 217
 	 * Given the database configuration, this method will create the correct
218 218
 	 * subclass of {@link SS_Database}.
219 219
 	 *
220
-	 * @param array $database A map of options. The 'type' is the name of the subclass of SS_Database to use. For the
220
+	 * @param array $databaseConfig A map of options. The 'type' is the name of the subclass of SS_Database to use. For the
221 221
 	 *                        rest of the options, see the specific class.
222
-	 * @param string $name identifier for the connection
223 222
 	 *
224 223
 	 * @return SS_Database
225 224
 	 */
@@ -413,7 +412,7 @@  discard block
 block discarded – undo
413 412
 
414 413
 	/**
415 414
 	 * Create a new table.
416
-	 * @param string $tableName The name of the table
415
+	 * @param string $table The name of the table
417 416
 	 * @param array$fields A map of field names to field types
418 417
 	 * @param array $indexes A map of indexes
419 418
 	 * @param array $options An map of additional options.  The available keys are as follows:
@@ -500,6 +499,8 @@  discard block
 block discarded – undo
500 499
 
501 500
 	/**
502 501
 	 * @deprecated since version 4.0 Use DB::require_field instead
502
+	 * @param string $field
503
+	 * @param string $spec
503 504
 	 */
504 505
 	public static function requireField($table, $field, $spec) {
505 506
 		Deprecation::notice('4.0', 'Use DB::require_field instead');
@@ -563,7 +564,7 @@  discard block
 block discarded – undo
563 564
 	/**
564 565
 	 * Checks a table's integrity and repairs it if necessary.
565 566
 	 *
566
-	 * @param string $tableName The name of the table.
567
+	 * @param string $table The name of the table.
567 568
 	 * @return boolean Return true if the table has integrity after the method is complete.
568 569
 	 */
569 570
 	public static function check_and_repair_table($table) {
Please login to merge, or discard this patch.