Completed
Pull Request — developer (#8838)
by Sławomir
546:25 queued 528:51
created
modules/Vtiger/models/Field.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	/**
94 94
 	 * Get field label.
95 95
 	 *
96
-	 * @return string
96
+	 * @return boolean
97 97
 	 */
98 98
 	public function getFieldLabel()
99 99
 	{
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * Get table name.
105 105
 	 *
106
-	 * @return string
106
+	 * @return boolean
107 107
 	 */
108 108
 	public function getTableName()
109 109
 	{
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	/**
114 114
 	 * Get column label.
115 115
 	 *
116
-	 * @return string
116
+	 * @return boolean
117 117
 	 */
118 118
 	public function getColumnName()
119 119
 	{
@@ -159,6 +159,9 @@  discard block
 block discarded – undo
159 159
 		return $this->module;
160 160
 	}
161 161
 
162
+	/**
163
+	 * @param Vtiger_Module_Model $moduleInstance
164
+	 */
162 165
 	public function setModule($moduleInstance)
163 166
 	{
164 167
 		$this->module = $moduleInstance;
@@ -169,11 +172,10 @@  discard block
 block discarded – undo
169 172
 	 *
170 173
 	 * @param mixed                    $value          value which need to be converted to display value
171 174
 	 * @param bool|int                 $record
172
-	 * @param bool|Vtiger_Record_Model $recordInstance
173 175
 	 * @param bool                     $rawText
174
-	 * @param int|bool                 $length         Length of the text
176
+	 * @param boolean                 $length         Length of the text
175 177
 	 *
176
-	 * @return mixed converted display value
178
+	 * @return string converted display value
177 179
 	 */
178 180
 	public function getDisplayValue($value, $record = false, $recordModel = false, $rawText = false, $length = false)
179 181
 	{
@@ -907,7 +909,6 @@  discard block
 block discarded – undo
907 909
 	/**
908 910
 	 * Function to retrieve field model for specific block and module.
909 911
 	 *
910
-	 * @param Vtiger_Module_Model $blockModel - block instance
911 912
 	 *
912 913
 	 * @return <array> List of field model
913 914
 	 */
@@ -1070,7 +1071,7 @@  discard block
 block discarded – undo
1070 1071
 	 * @param mixed               $value
1071 1072
 	 * @param Vtiger_Record_Model $recordModel
1072 1073
 	 *
1073
-	 * @return mixed
1074
+	 * @return string
1074 1075
 	 */
1075 1076
 	public function getEditViewDisplayValue($value, $recordModel = false)
1076 1077
 	{
Please login to merge, or discard this patch.
modules/Vtiger/models/Inventory.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,9 +125,8 @@
 block discarded – undo
125 125
 	/**
126 126
 	 * Get discount from the account.
127 127
 	 *
128
-	 * @param string $moduleName Module name
129
-	 * @param int    $record     Record ID
130 128
 	 *
129
+	 * @param integer $relatedRecord
131 130
 	 * @return array
132 131
 	 */
133 132
 	public function getAccountDiscount($relatedRecord)
Please login to merge, or discard this patch.
modules/Vtiger/models/Link.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 * Function to set the value of a given property.
38 38
 	 *
39 39
 	 * @param string   $propertyName
40
-	 * @param <Object> $propertyValue
40
+	 * @param boolean $propertyValue
41 41
 	 *
42 42
 	 * @return Vtiger_Link_Model instance
43 43
 	 */
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	/**
201 201
 	 * Function to check whether the link model has any child links.
202 202
 	 *
203
-	 * @return bool true/false
203
+	 * @return boolean|null true/false
204 204
 	 */
205 205
 	public function hasChild()
206 206
 	{
Please login to merge, or discard this patch.
modules/Vtiger/models/MappedFields.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
 		return $this->get('id');
26 26
 	}
27 27
 
28
+	/**
29
+	 * @param string $key
30
+	 */
28 31
 	public function get($key)
29 32
 	{
30 33
 		if (in_array($key, ['conditions', 'params']) && !is_array(parent::get($key))) {
@@ -34,6 +37,9 @@  discard block
 block discarded – undo
34 37
 		}
35 38
 	}
36 39
 
40
+	/**
41
+	 * @param string $key
42
+	 */
37 43
 	public function getRaw($key)
38 44
 	{
39 45
 		return parent::get($key);
@@ -69,6 +75,10 @@  discard block
 block discarded – undo
69 75
 		}
70 76
 	}
71 77
 
78
+	/**
79
+	 * @param integer $recordId
80
+	 * @param string $view
81
+	 */
72 82
 	public function getActiveTemplatesForRecord($recordId, $view, $moduleName = false)
73 83
 	{
74 84
 		\App\Log::trace('Entering ' . __METHOD__ . '(' . $recordId . ',' . $view . ',' . $moduleName . ') method ...');
Please login to merge, or discard this patch.
modules/Vtiger/models/Module.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -932,6 +932,9 @@  discard block
 block discarded – undo
932 932
 		return $modulesModelsList;
933 933
 	}
934 934
 
935
+	/**
936
+	 * @param string $moduleName
937
+	 */
935 938
 	public static function getCleanInstance($moduleName)
936 939
 	{
937 940
 		$modelClassName = Vtiger_Loader::getComponentClassName('Model', 'Module', $moduleName);
@@ -1024,7 +1027,7 @@  discard block
 block discarded – undo
1024 1027
 	/**
1025 1028
 	 * Function returns comments and recent activities across module.
1026 1029
 	 *
1027
-	 * @param <Vtiger_Paging_Model> $pagingModel
1030
+	 * @param Vtiger_Paging_Model $pagingModel
1028 1031
 	 * @param string                $type        - comments, updates or all
1029 1032
 	 *
1030 1033
 	 * @return <Array>
Please login to merge, or discard this patch.
modules/Vtiger/models/Notebook.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 	 *
47 47
 	 * @param int $widgetId
48 48
 	 *
49
-	 * @return \self
49
+	 * @return Vtiger_Notebook_Model
50 50
 	 */
51 51
 	public static function getUserInstance($widgetId)
52 52
 	{
Please login to merge, or discard this patch.
modules/Vtiger/models/RecordStructure.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * Function to get the record.
43 43
 	 *
44
-	 * @return Vtiger_Record_Model
44
+	 * @return boolean
45 45
 	 */
46 46
 	public function getRecord()
47 47
 	{
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	/**
57 57
 	 * Function to get the module.
58 58
 	 *
59
-	 * @return Vtiger_Module_Model
59
+	 * @return boolean
60 60
 	 */
61 61
 	public function getModule()
62 62
 	{
Please login to merge, or discard this patch.
modules/Vtiger/models/RelatedCommentModal.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -9,6 +9,10 @@
 block discarded – undo
9 9
  */
10 10
 class Vtiger_RelatedCommentModal_Model extends \App\Base
11 11
 {
12
+	/**
13
+	 * @param integer $record
14
+	 * @param string $moduleName
15
+	 */
12 16
 	public static function getInstance($record, $moduleName, $relatedRecord, $relatedModuleName)
13 17
 	{
14 18
 		$modelClassName = Vtiger_Loader::getComponentClassName('Model', 'RelatedCommentModal', $moduleName);
Please login to merge, or discard this patch.
modules/Vtiger/models/RelationListView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
 	/**
300 300
 	 * Get tree view model.
301 301
 	 *
302
-	 * @return Vtiger_TreeCategoryModal_Model
302
+	 * @return Vtiger_TreeView_Model
303 303
 	 */
304 304
 	public function getTreeViewModel()
305 305
 	{
Please login to merge, or discard this patch.