Completed
Push — no-default-error-email ( 8a5804 )
by Sam
10:15
created
model/Image.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 	/**
590 590
 	 * Resize this image for the CMS. Use in templates with $CMSThumbnail
591 591
 	 *
592
-	 * @return Image_Cached|null
592
+	 * @return Image|null
593 593
 	 */
594 594
 	public function CMSThumbnail() {
595 595
 		return $this->Pad($this->stat('cms_thumbnail_width'),$this->stat('cms_thumbnail_height'));
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
 	/**
632 632
 	 * Resize this image for use as a thumbnail in a strip. Use in templates with $StripThumbnail.
633 633
 	 *
634
-	 * @return Image_Cached|null
634
+	 * @return Image|null
635 635
 	 */
636 636
 	public function StripThumbnail() {
637 637
 		return $this->Fill($this->stat('strip_thumbnail_width'),$this->stat('strip_thumbnail_height'));
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
 	/**
869 869
 	 * Generate patterns that will help to match filenames of cached images
870 870
 	 * @param string $filename Filename of source image
871
-	 * @return array
871
+	 * @return string
872 872
 	 */
873 873
 	private function getFilenamePatterns($filename) {
874 874
 		$methodNames = $this->allMethodNames(true);
@@ -1024,7 +1024,7 @@  discard block
 block discarded – undo
1024 1024
 
1025 1025
 	/**
1026 1026
 	 * Get the orientation of this image.
1027
-	 * @return ORIENTATION_SQUARE | ORIENTATION_PORTRAIT | ORIENTATION_LANDSCAPE
1027
+	 * @return integer | ORIENTATION_PORTRAIT | ORIENTATION_LANDSCAPE
1028 1028
 	 */
1029 1029
 	public function getOrientation() {
1030 1030
 		$width = $this->getWidth();
Please login to merge, or discard this patch.
model/Versioned.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 	 * Extend permissions to include additional security for objects that are not published to live.
759 759
 	 *
760 760
 	 * @param Member $member
761
-	 * @return bool|null
761
+	 * @return false|null
762 762
 	 */
763 763
 	public function canView($member = null) {
764 764
 		// Invoke default version-gnostic canView
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
 	 *
833 833
 	 * @param string $stage
834 834
 	 * @param Member $member
835
-	 * @return bool
835
+	 * @return boolean|string
836 836
 	 */
837 837
 	public function canViewStage($stage = 'Live', $member = null) {
838 838
 		$oldMode = Versioned::get_reading_mode();
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
 	/**
899 899
 	 * Get the latest published version of this object.
900 900
 	 *
901
-	 * @return DataObject
901
+	 * @return string
902 902
 	 */
903 903
 	public function latestPublished() {
904 904
 		// Get the root data object class - this will have the version field
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
 	 * @param string $limit
1023 1023
 	 * @param string $join Deprecated, use leftJoin($table, $joinClause) instead
1024 1024
 	 * @param string $having
1025
-	 * @return DataList
1025
+	 * @return ArrayList
1026 1026
 	 */
1027 1027
 	public function Versions($filter = "", $sort = "", $limit = "", $join = "", $having = "") {
1028 1028
 		return $this->allVersions($filter, $sort, $limit, $join, $having);
@@ -1036,7 +1036,7 @@  discard block
 block discarded – undo
1036 1036
 	 * @param  string $limit
1037 1037
 	 * @param  string $join Deprecated, use leftJoin($table, $joinClause) instead
1038 1038
 	 * @param  string $having
1039
-	 * @return DataList
1039
+	 * @return ArrayList
1040 1040
 	 */
1041 1041
 	public function allVersions($filter = "", $sort = "", $limit = "", $join = "", $having = "") {
1042 1042
 		// Make sure the table names are not postfixed (e.g. _Live)
@@ -1144,7 +1144,6 @@  discard block
 block discarded – undo
1144 1144
 	 * - If $_GET['archiveDate'] is set, it will use that date, and store it in the session.
1145 1145
 	 * - If neither of these are set, it checks the session, otherwise the stage is set to 'Live'.
1146 1146
 	 *
1147
-	 * @param Session $session Optional session within which to store the resulting stage
1148 1147
 	 */
1149 1148
 	public static function choose_site_stage() {
1150 1149
 		// Check any pre-existing session mode
@@ -1356,7 +1355,7 @@  discard block
 block discarded – undo
1356 1355
 	 * @param string     $filter         A filter to be inserted into the WHERE clause.
1357 1356
 	 * @param string     $sort           A sort expression to be inserted into the ORDER BY clause.
1358 1357
 	 * @param string     $join           Deprecated, use leftJoin($table, $joinClause) instead
1359
-	 * @param string|int $limit          A limit on the number of records returned from the database.
1358
+	 * @param integer $limit          A limit on the number of records returned from the database.
1360 1359
 	 * @param string     $containerClass The container class for the result set (default is DataList)
1361 1360
 	 *
1362 1361
 	 * @return DataList A modified DataList designated to the specified stage
Please login to merge, or discard this patch.
features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\Framework\Test\Behaviour;
4 4
 
5
-use Behat\Behat\Context\BehatContext,
6
-	Behat\Behat\Context\Step,
7
-	Behat\Behat\Event\StepEvent,
8
-	Behat\Mink\Element\NodeElement,
9
-	Behat\Mink\Session,
10
-	WebDriver\Exception\UnexpectedAlertOpen;
5
+use Behat\Behat\Context\BehatContext;
6
+use Behat\Behat\Context\Step;
7
+use Behat\Behat\Event\StepEvent;
8
+use Behat\Mink\Element\NodeElement;
9
+use Behat\Mink\Session;
11 10
 
12 11
 
13 12
 // PHPUnit
Please login to merge, or discard this patch.
model/Hierarchy.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 	/**
380 380
 	 * Return the IDs of all the marked nodes.
381 381
 	 *
382
-	 * @return array
382
+	 * @return integer[]
383 383
 	 */
384 384
 	public function markedNodeIDs() {
385 385
 		return array_keys($this->markedNodes);
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
 	 * Get the next node in the tree of the type. If there is no instance of the className descended from this node,
757 757
 	 * then search the parents.
758 758
 	 * @param string     $className Class name of the node to find.
759
-	 * @param string|int $root      ID/ClassName of the node to limit the search to
759
+	 * @param integer $root      ID/ClassName of the node to limit the search to
760 760
 	 * @param DataObject $afterNode Used for recursive calls to this function
761 761
 	 * @return DataObject
762 762
 	 */
Please login to merge, or discard this patch.
core/startup/ErrorControlChain.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	/**
101 101
 	 * Get value of display_errors ini value
102 102
 	 *
103
-	 * @return mixed
103
+	 * @return string
104 104
 	 */
105 105
 	protected function getDisplayErrors() {
106 106
 		return ini_get('display_errors');
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * Add this callback to the chain of callbacks to call along with the state
111 111
 	 * that $error must be in this point in the chain for the callback to be called
112 112
 	 *
113
-	 * @param $callback - The callback to call
113
+	 * @param callable $callback - The callback to call
114 114
 	 * @param $onErrorState - false if only call if no errors yet, true if only call if already errors, null for either
115 115
 	 * @return $this
116 116
 	 */
Please login to merge, or discard this patch.
tests/core/startup/ErrorControlChainTest.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	/**
25 25
 	 * Modify method visibility to public for testing
26 26
 	 *
27
-	 * @param mixed $errors
27
+	 * @param string $errors
28 28
 	 */
29 29
 	public function setDisplayErrors($errors)
30 30
 	{
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
 	}
34 34
 
35 35
 	// Change function visibility to be testable directly
36
+
37
+	/**
38
+	 * @param string $memstring
39
+	 */
36 40
 	public function translateMemstring($memstring) {
37 41
 		return parent::translateMemstring($memstring);
38 42
 	}
Please login to merge, or discard this patch.
api/RSSFeed.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -219,6 +219,7 @@  discard block
 block discarded – undo
219 219
 	 * via the standard template inclusion process.
220 220
 	 *
221 221
 	 * @param string
222
+	 * @param string $template
222 223
 	 */
223 224
 	public function setTemplate($template) {
224 225
 		$this->template = $template;
@@ -315,6 +316,7 @@  discard block
 block discarded – undo
315 316
 	/**
316 317
 	 * Return the named field as an obj() call from $this->failover.
317 318
 	 * Default to the given class if there's no casting information.
319
+	 * @param string $fieldName
318 320
 	 */
319 321
 	public function rssField($fieldName, $defaultClass = 'Varchar') {
320 322
 		if($fieldName) {
Please login to merge, or discard this patch.
dev/DebugView.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -126,6 +126,7 @@
 block discarded – undo
126 126
 	 *
127 127
 	 * @param string $title
128 128
 	 * @param string $title
129
+	 * @param string|false $subtitle
129 130
 	 */
130 131
 	public function writeInfo($title, $subtitle, $description=false) {
131 132
 		echo '<div class="info">';
Please login to merge, or discard this patch.
model/DataObject.php 1 patch
Doc Comments   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 	 * The destinationObject must be written to the database already and have an ID. Writing is performed
550 550
 	 * automatically when adding the new relations.
551 551
 	 *
552
-	 * @param $sourceObject the source object to duplicate from
552
+	 * @param DataObject $sourceObject the source object to duplicate from
553 553
 	 * @param $destinationObject the destination object to populate with the duplicated relations
554 554
 	 * @return DataObject with the new many_many relations copied in
555 555
 	 */
@@ -956,6 +956,7 @@  discard block
 block discarded – undo
956 956
 	 * @param $includeRelations Boolean Merge any existing relations (optional)
957 957
 	 * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values.
958 958
 	 *                            Only applicable with $priority='right'. (optional)
959
+	 * @param DataObject|null $rightObj
959 960
 	 * @return Boolean
960 961
 	 */
961 962
 	public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) {
@@ -1579,10 +1580,10 @@  discard block
 block discarded – undo
1579 1580
 	 *
1580 1581
 	 * @param string $componentName Name of the component
1581 1582
 	 * @param string|null $filter Deprecated. A filter to be inserted into the WHERE clause
1582
-	 * @param string|null|array $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted,
1583
+	 * @param string $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted,
1583 1584
 	 *                                the static field $default_sort on the component class will be used.
1584 1585
 	 * @param string $join Deprecated, use leftJoin($table, $joinClause) instead
1585
-	 * @param string|null|array $limit Deprecated. A limit expression to be inserted into the LIMIT clause
1586
+	 * @param string $limit Deprecated. A limit expression to be inserted into the LIMIT clause
1586 1587
 	 *
1587 1588
 	 * @return HasManyList The components of the one-to-many relationship.
1588 1589
 	 */
@@ -1642,7 +1643,7 @@  discard block
 block discarded – undo
1642 1643
 	/**
1643 1644
 	 * Find the foreign class of a relation on this DataObject, regardless of the relation type.
1644 1645
 	 *
1645
-	 * @param $relationName Relation name.
1646
+	 * @param string $relationName Relation name.
1646 1647
 	 * @return string Class name, or null if not found.
1647 1648
 	 */
1648 1649
 	public function getRelationClass($relationName) {
@@ -2208,6 +2209,7 @@  discard block
 block discarded – undo
2208 2209
 	 *
2209 2210
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2210 2211
 	 *
2212
+	 * @param string $class
2211 2213
 	 * @return array or false
2212 2214
 	 */
2213 2215
 	public function database_extensions($class){
@@ -2675,7 +2677,7 @@  discard block
 block discarded – undo
2675 2677
 	 * can be saved into the Image table.
2676 2678
 	 *
2677 2679
 	 * @param string $fieldName Name of the field
2678
-	 * @param mixed $value New field value
2680
+	 * @param mixed $val New field value
2679 2681
 	 * @return DataObject $this
2680 2682
 	 */
2681 2683
 	public function setCastedField($fieldName, $val) {
@@ -2695,6 +2697,7 @@  discard block
 block discarded – undo
2695 2697
 
2696 2698
 	/**
2697 2699
 	 * {@inheritdoc}
2700
+	 * @param string $field
2698 2701
 	 */
2699 2702
 	public function castingHelper($field) {
2700 2703
 		if ($fieldSpec = $this->db($field)) {
@@ -3059,6 +3062,7 @@  discard block
 block discarded – undo
3059 3062
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3060 3063
 	 *
3061 3064
 	 * @param $fieldPath string
3065
+	 * @param string $fieldName
3062 3066
 	 * @return string | null - will return null on a missing value
3063 3067
 	 */
3064 3068
 	public function relField($fieldName) {
@@ -3127,7 +3131,7 @@  discard block
 block discarded – undo
3127 3131
 	 * @param string $callerClass The class of objects to be returned
3128 3132
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3129 3133
 	 * Supports parameterised queries. See SQLQuery::addWhere() for syntax examples.
3130
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3134
+	 * @param string $sort A sort expression to be inserted into the ORDER
3131 3135
 	 * BY clause.  If omitted, self::$default_sort will be used.
3132 3136
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3133 3137
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
@@ -3178,6 +3182,7 @@  discard block
 block discarded – undo
3178 3182
 
3179 3183
 	/**
3180 3184
 	 * @deprecated
3185
+	 * @param string $class
3181 3186
 	 */
3182 3187
 	public function Aggregate($class = null) {
3183 3188
 		Deprecation::notice('4.0', 'Call aggregate methods on a DataList directly instead. In templates'
@@ -3199,6 +3204,7 @@  discard block
 block discarded – undo
3199 3204
 
3200 3205
 	/**
3201 3206
 	 * @deprecated
3207
+	 * @param string $relationship
3202 3208
 	 */
3203 3209
 	public function RelationshipAggregate($relationship) {
3204 3210
 		Deprecation::notice('4.0', 'Call aggregate methods on a relationship directly instead.');
@@ -3367,6 +3373,7 @@  discard block
 block discarded – undo
3367 3373
 
3368 3374
 	/**
3369 3375
 	 * @see $sourceQueryParams
3376
+	 * @param string $key
3370 3377
 	 * @return Mixed
3371 3378
 	 */
3372 3379
 	public function getSourceQueryParam($key) {
Please login to merge, or discard this patch.