Completed
Push — remove-admin ( 9fdeda )
by Sam
09:47
created
ORM/FieldType/DBPrimaryKey.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
 	 */
28 28
 	protected $autoIncrement = true;
29 29
 
30
+	/**
31
+	 * @param boolean $autoIncrement
32
+	 */
30 33
 	public function setAutoIncrement($autoIncrement) {
31 34
 		$this->autoIncrement = $autoIncrement;
32 35
 		return $this;
Please login to merge, or discard this patch.
ORM/FieldType/DBTime.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@
 block discarded – undo
64 64
 		if($this->value) return date($format, strtotime($this->value));
65 65
 	}
66 66
 
67
+	/**
68
+	 * @param string[] $parts
69
+	 */
67 70
 	public function TwelveHour( $parts ) {
68 71
 		$hour = $parts[1];
69 72
 		$min = $parts[2];
Please login to merge, or discard this patch.
ORM/FieldType/DBYear.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
 		DB::require_field($this->tableName, $this->name, $values);
25 25
 	}
26 26
 
27
+	/**
28
+	 * @param string $title
29
+	 */
27 30
 	public function scaffoldFormField($title = null, $params = null) {
28 31
 		$selectBox = new DropdownField($this->name, $title);
29 32
 		$selectBox->setSource($this->getDefaultOptions());
Please login to merge, or discard this patch.
ORM/Map.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Set the key field for this map.
42 42
 	 *
43 43
 	 * @var string $keyField
44
+	 * @param string $keyField
44 45
 	 */
45 46
 	public function setKeyField($keyField) {
46 47
 		$this->keyField = $keyField;
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
 	 * Set the value field for this map.
51 52
 	 *
52 53
 	 * @var string $valueField
54
+	 * @param string $valueField
53 55
 	 */
54 56
 	public function setValueField($valueField) {
55 57
 		$this->valueField = $valueField;
@@ -95,6 +97,7 @@  discard block
 block discarded – undo
95 97
 	 *
96 98
 	 * @var string $key
97 99
 	 * @var mixed $value
100
+	 * @param string $value
98 101
 	 */
99 102
 	public function unshift($key, $value) {
100 103
 		$oldItems = $this->firstItems;
@@ -114,6 +117,7 @@  discard block
 block discarded – undo
114 117
 	 *
115 118
 	 * @var string $key
116 119
 	 * @var mixed $value
120
+	 * @param string $value
117 121
 	 */
118 122
 	public function push($key, $value) {
119 123
 		$oldItems = $this->lastItems;
Please login to merge, or discard this patch.
ORM/Queries/SQLConditionalExpression.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -374,7 +374,6 @@  discard block
 block discarded – undo
374 374
 	 * @see SQLConditionalExpression::addWhere() for syntax examples
375 375
 	 *
376 376
 	 * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries
377
-	 * @param mixed $where,... Unlimited additional predicates
378 377
 	 * @return self Self reference
379 378
 	 */
380 379
 	public function setWhere($where) {
@@ -460,7 +459,6 @@  discard block
 block discarded – undo
460 459
 	 * </code>
461 460
 	 *
462 461
 	 * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries
463
-	 * @param mixed $where,... Unlimited additional predicates
464 462
 	 * @return self Self reference
465 463
 	 */
466 464
 	public function addWhere($where) {
@@ -476,7 +474,6 @@  discard block
 block discarded – undo
476 474
 	 * @see SQLConditionalExpression::addWhere()
477 475
 	 *
478 476
 	 * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries
479
-	 * @param mixed $filters,... Unlimited additional predicates
480 477
 	 * @return self Self reference
481 478
 	 */
482 479
 	public function setWhereAny($filters) {
@@ -490,7 +487,6 @@  discard block
 block discarded – undo
490 487
 	 * @see SQLConditionalExpression::addWhere()
491 488
 	 *
492 489
 	 * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries
493
-	 * @param mixed $filters,... Unlimited additional predicates
494 490
 	 * @return self Self reference
495 491
 	 */
496 492
 	public function addWhereAny($filters) {
Please login to merge, or discard this patch.
ORM/Versioning/ChangeSetItem.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 * Find version of this object in the given stage
131 131
 	 *
132 132
 	 * @param string $stage
133
-	 * @return Versioned|DataObject
133
+	 * @return DataObject|null
134 134
 	 */
135 135
 	protected function getObjectInStage($stage) {
136 136
 		return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	/**
140 140
 	 * Find latest version of this object
141 141
 	 *
142
-	 * @return Versioned|DataObject
142
+	 * @return DataObject|null
143 143
 	 */
144 144
 	protected function getObjectLatestVersion() {
145 145
 		return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID);
Please login to merge, or discard this patch.
Security/Authenticator.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * Remove a previously registered authenticator
129 129
 	 *
130 130
 	 * @param string $authenticator Name of the authenticator class to register
131
-	 * @return bool Returns TRUE on success, FALSE otherwise.
131
+	 * @return boolean|null Returns TRUE on success, FALSE otherwise.
132 132
 	 */
133 133
 	public static function unregister_authenticator($authenticator) {
134 134
 		if(call_user_func(array($authenticator, 'on_unregister')) === true) {
@@ -171,6 +171,7 @@  discard block
 block discarded – undo
171 171
 	 * Set a default authenticator (shows first in tabs)
172 172
 	 *
173 173
 	 * @param string
174
+	 * @param string $authenticator
174 175
 	 */
175 176
 	public static function set_default_authenticator($authenticator) {
176 177
 		self::$default_authenticator = $authenticator;
Please login to merge, or discard this patch.
Security/Group.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -331,6 +331,7 @@
 block discarded – undo
331 331
 	 * Overloaded to ensure the code is always descent.
332 332
 	 *
333 333
 	 * @param string
334
+	 * @param string $val
334 335
 	 */
335 336
 	public function setCode($val){
336 337
 		$this->setField("Code", Convert::raw2url($val));
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use SilverStripe\ORM\SS_List;
8 8
 use SilverStripe\ORM\ArrayList;
9 9
 use SilverStripe\ORM\DataObjectInterface;
10
-use SilverStripe\View\Requirements;
11 10
 use InvalidArgumentException;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
Security/Member.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1561,7 +1561,7 @@  discard block
 block discarded – undo
1561 1561
 	 * This is likely to be customized for social sites etc. with a looser permission model.
1562 1562
 	 *
1563 1563
 	 * @param Member $member
1564
-	 * @return bool
1564
+	 * @return boolean|string
1565 1565
 	 */
1566 1566
     public function canView($member = null) {
1567 1567
         //get member
@@ -1591,7 +1591,7 @@  discard block
 block discarded – undo
1591 1591
 	 * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions
1592 1592
 	 *
1593 1593
 	 * @param Member $member
1594
-	 * @return bool
1594
+	 * @return boolean|string
1595 1595
 	 */
1596 1596
     public function canEdit($member = null) {
1597 1597
         //get member
@@ -1625,7 +1625,7 @@  discard block
 block discarded – undo
1625 1625
      * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions
1626 1626
 	 *
1627 1627
 	 * @param Member $member
1628
-	 * @return bool
1628
+	 * @return boolean|string
1629 1629
      */
1630 1630
     public function canDelete($member = null) {
1631 1631
         if(!($member instanceof Member)) {
Please login to merge, or discard this patch.