Completed
Push — webpack ( 87b834...fbc7ef )
by Sam
07:47
created
ORM/DataObject.php 2 patches
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2197,7 +2197,7 @@  discard block
 block discarded – undo
2197 2197
 	 *
2198 2198
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2199 2199
 	 *
2200
-	 * @param $class
2200
+	 * @param string $class
2201 2201
 	 * @return array or false
2202 2202
 	 */
2203 2203
 	public function database_extensions($class){
@@ -2677,6 +2677,7 @@  discard block
 block discarded – undo
2677 2677
 
2678 2678
 	/**
2679 2679
 	 * {@inheritdoc}
2680
+	 * @param string $field
2680 2681
 	 */
2681 2682
 	public function castingHelper($field) {
2682 2683
 		if ($fieldSpec = $this->db($field)) {
@@ -2880,7 +2881,7 @@  discard block
 block discarded – undo
2880 2881
 
2881 2882
 	/**
2882 2883
 	 * @param Member $member
2883
-	 * @return boolean
2884
+	 * @return boolean|string
2884 2885
 	 */
2885 2886
 	public function canView($member = null) {
2886 2887
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2892,7 +2893,7 @@  discard block
 block discarded – undo
2892 2893
 
2893 2894
 	/**
2894 2895
 	 * @param Member $member
2895
-	 * @return boolean
2896
+	 * @return boolean|string
2896 2897
 	 */
2897 2898
 	public function canEdit($member = null) {
2898 2899
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2904,7 +2905,7 @@  discard block
 block discarded – undo
2904 2905
 
2905 2906
 	/**
2906 2907
 	 * @param Member $member
2907
-	 * @return boolean
2908
+	 * @return boolean|string
2908 2909
 	 */
2909 2910
 	public function canDelete($member = null) {
2910 2911
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2918,7 +2919,7 @@  discard block
 block discarded – undo
2918 2919
 	 * @param Member $member
2919 2920
 	 * @param array $context Additional context-specific data which might
2920 2921
 	 * affect whether (or where) this object could be created.
2921
-	 * @return boolean
2922
+	 * @return boolean|string
2922 2923
 	 */
2923 2924
 	public function canCreate($member = null, $context = array()) {
2924 2925
 		$extended = $this->extendedCan(__FUNCTION__, $member, $context);
@@ -3018,7 +3019,7 @@  discard block
 block discarded – undo
3018 3019
 	 * Traverses to a field referenced by relationships between data objects, returning the value
3019 3020
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3020 3021
 	 *
3021
-	 * @param $fieldName string
3022
+	 * @param string $fieldName string
3022 3023
 	 * @return string | null - will return null on a missing value
3023 3024
 	 */
3024 3025
 	public function relField($fieldName) {
@@ -3088,7 +3089,7 @@  discard block
 block discarded – undo
3088 3089
 	 * @param string $callerClass The class of objects to be returned
3089 3090
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3090 3091
 	 * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
3091
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3092
+	 * @param string $sort A sort expression to be inserted into the ORDER
3092 3093
 	 * BY clause.  If omitted, self::$default_sort will be used.
3093 3094
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3094 3095
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Deprecation;
6 6
 use SQLExpression;
7
-
8 7
 use InvalidArgumentException;
9 8
 use Config;
10 9
 use LogicException;
11
-
12 10
 use Injector;
13 11
 use SilverStripe\Model\Connect\Database;
14 12
 use SilverStripe\Control\Director;
Please login to merge, or discard this patch.
ORM/FieldType/DBClassName.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -186,6 +186,9 @@
 block discarded – undo
186 186
 		return $classNames;
187 187
 	}
188 188
 
189
+	/**
190
+	 * @param \DBClassNameTest_ObjectSubClass $record
191
+	 */
189 192
 	public function setValue($value, $record = null, $markChanged = true) {
190 193
 		parent::setValue($value, $record, $markChanged);
191 194
 
Please login to merge, or discard this patch.
ORM/FieldType/DBComposite.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -208,6 +208,9 @@
 block discarded – undo
208 208
 		return null;
209 209
 	}
210 210
 
211
+	/**
212
+	 * @param string $field
213
+	 */
211 214
 	public function hasField($field) {
212 215
 		$fields = $this->compositeDatabaseFields();
213 216
 		return isset($fields[$field]);
Please login to merge, or discard this patch.
ORM/FieldType/DBCurrency.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	private static $currency_symbol = '$';
30 30
 
31
+	/**
32
+	 * @param string $name
33
+	 */
31 34
 	public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) {
32 35
 		parent::__construct($name, $wholeSize, $decimalSize, $defaultValue);
33 36
 	}
@@ -51,6 +54,9 @@  discard block
 block discarded – undo
51 54
 		else return $val;
52 55
 	}
53 56
 
57
+	/**
58
+	 * @param string $value
59
+	 */
54 60
 	public function setValue($value, $record = null, $markChanged = true) {
55 61
 		$matches = null;
56 62
 		if(is_numeric($value)) {
Please login to merge, or discard this patch.
ORM/FieldType/DBDate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
 	 */
41 41
 	private static $nice_format = 'd/m/Y';
42 42
 
43
+	/**
44
+	 * @param string $value
45
+	 */
43 46
 	public function setValue($value, $record = null, $markChanged = true) {
44 47
 		if($value === false || $value === null || (is_string($value) && !strlen($value))) {
45 48
 			// don't try to evaluate empty values with strtotime() below, as it returns "1970-01-01" when it should be
Please login to merge, or discard this patch.
ORM/FieldType/DBDatetime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 	 * Return a date and time formatted as per a CMS user's settings.
109 109
 	 *
110 110
 	 * @param Member $member
111
-	 * @return boolean | string A time and date pair formatted as per user-defined settings.
111
+	 * @return false|string | string A time and date pair formatted as per user-defined settings.
112 112
 	 */
113 113
 	public function FormatFromSettings($member = null) {
114 114
 		require_once 'Zend/Date.php';
Please login to merge, or discard this patch.
ORM/FieldType/DBDecimal.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * @param string $name
23 23
 	 * @param int $wholeSize
24 24
 	 * @param int $decimalSize
25
-	 * @param float|int $defaultValue
25
+	 * @param integer $defaultValue
26 26
 	 */
27 27
 	public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) {
28 28
 		$this->wholeSize = is_int($wholeSize) ? $wholeSize : 9;
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 	}
35 35
 
36 36
 	/**
37
-	 * @return float
37
+	 * @return string
38 38
 	 */
39 39
 	public function Nice() {
40 40
 		return number_format($this->value, $this->decimalSize);
41 41
 	}
42 42
 
43 43
 	/**
44
-	 * @return int
44
+	 * @return double
45 45
 	 */
46 46
 	public function Int() {
47 47
 		return floor($this->value);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	}
88 88
 
89 89
 	/**
90
-	 * @return float
90
+	 * @return integer
91 91
 	 */
92 92
 	public function nullValue() {
93 93
 		return 0;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use SilverStripe\ORM\DataObject;
4 3
 use SilverStripe\Security\Member;
5 4
 use SilverStripe\Security\Permission;
6 5
 use SilverStripe\Security\Security;
Please login to merge, or discard this patch.
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.