Completed
Push — src-folder ( e05626...8b780d )
by Damian
11:23
created
src/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.
src/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.
src/ORM/FieldType/DBDecimal.php 1 patch
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.
src/ORM/FieldType/DBField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@
 block discarded – undo
477 477
 	}
478 478
 
479 479
 	/**
480
-	 * @param array $value
480
+	 * @param string $value
481 481
 	 * @return $this
482 482
 	 */
483 483
 	public function setArrayValue($value) {
Please login to merge, or discard this patch.
src/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.
src/ORM/FieldType/DBText.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\Core\Config\Config;
6 6
 use SilverStripe\Core\Convert;
7
-use SilverStripe\Core\Injector\Injector;
8 7
 use SilverStripe\Forms\TextareaField;
9 8
 use SilverStripe\Forms\NullableField;
10 9
 use SilverStripe\Forms\TextField;
Please login to merge, or discard this patch.
src/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.
src/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.
src/ORM/Filters/PartialMatchFilter.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\ORM\DataQuery;
6 6
 use SilverStripe\ORM\DB;
7
-use InvalidArgumentException;
8 7
 
9 8
 /**
10 9
  * Matches textual content with a LIKE '%keyword%' construct.
Please login to merge, or discard this patch.