Completed
Pull Request — developer (#8962)
by Sławomir
102:25 queued 87:50
created
modules/Settings/CurrencyUpdate/models/Module.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@  discard block
 block discarded – undo
47 47
 	 * @return boolean - true if fetched new exchange rates, false otherwise
48 48
 	 */
49 49
 
50
+	/**
51
+	 * @param string $dateCur
52
+	 */
50 53
 	public function fetchCurrencyRates($dateCur, $cron = false)
51 54
 	{
52 55
 		if (!\App\RequestUtil::isNetConnection()) {
@@ -123,6 +126,9 @@  discard block
 block discarded – undo
123 126
 	 * @param <Float> $exchange - exchange rate
124 127
 	 */
125 128
 
129
+	/**
130
+	 * @param string|false $id
131
+	 */
126 132
 	public function updateCurrencyRate($id, $exchange)
127 133
 	{
128 134
 		\App\Db::getInstance()->createCommand()
@@ -172,6 +178,9 @@  discard block
 block discarded – undo
172 178
 	 * @return <Array> - array containing currency rates
173 179
 	 */
174 180
 
181
+	/**
182
+	 * @param string $dateCur
183
+	 */
175 184
 	public function getRatesHistory($bankId, $dateCur, \App\Request $request)
176 185
 	{
177 186
 		$query = (new App\Db\Query())->select(['exchange', 'currency_name', 'currency_code', 'currency_symbol', 'fetch_date', 'exchange_date'])
@@ -366,6 +375,9 @@  discard block
 block discarded – undo
366 375
 	 * @return boolean - true on success or false
367 376
 	 */
368 377
 
378
+	/**
379
+	 * @param integer $bankId
380
+	 */
369 381
 	public function setActiveBankById($bankId)
370 382
 	{
371 383
 		$db = \App\Db::getInstance();
Please login to merge, or discard this patch.
modules/Vtiger/models/Relation.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -1031,6 +1031,9 @@  discard block
 block discarded – undo
1031 1031
 		\App\Cache::clear();
1032 1032
 	}
1033 1033
 
1034
+	/**
1035
+	 * @param integer $relationId
1036
+	 */
1034 1037
 	public static function updateModuleRelatedInventoryFields($relationId, $fields)
1035 1038
 	{
1036 1039
 		$db = \App\Db::getInstance('admin');
@@ -1077,6 +1080,9 @@  discard block
 block discarded – undo
1077 1080
 		return $fields;
1078 1081
 	}
1079 1082
 
1083
+	/**
1084
+	 * @param string|boolean $refModuleName
1085
+	 */
1080 1086
 	public static function getReferenceTableInfo($moduleName, $refModuleName)
1081 1087
 	{
1082 1088
 		$temp = [$moduleName, $refModuleName];
@@ -1119,6 +1125,9 @@  discard block
 block discarded – undo
1119 1125
 		return $result;
1120 1126
 	}
1121 1127
 
1128
+	/**
1129
+	 * @param integer $relationId
1130
+	 */
1122 1131
 	public static function updateStateFavorites($relationId, $status)
1123 1132
 	{
1124 1133
 		\App\Db::getInstance()->createCommand()->update('vtiger_relatedlists', ['favorites' => $status], ['relation_id' => $relationId])->execute();
Please login to merge, or discard this patch.
app/Fields/Currency.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 	/**
53 53
 	 * Get currency by module name.
54 54
 	 *
55
-	 * @param bool|string $type
56 55
 	 *
57
-	 * @return array
56
+	 * @param integer $record
57
+	 * @return integer
58 58
 	 */
59 59
 	public static function getCurrencyByModule($record, $moduleName)
60 60
 	{
Please login to merge, or discard this patch.
app/PrivilegeUtil.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 * Get list of users based on group id.
280 280
 	 *
281 281
 	 * @param int        $groupId
282
-	 * @param bool|array $subGroups
282
+	 * @param boolean $subGroups
283 283
 	 * @param int        $i
284 284
 	 *
285 285
 	 * @return array
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
 	 * Get data share.
659 659
 	 *
660 660
 	 * @param int $tabId
661
-	 * @param int $roleId
661
+	 * @param string $type
662 662
 	 *
663 663
 	 * @return array
664 664
 	 */
Please login to merge, or discard this patch.
modules/Settings/HideBlocks/models/Record.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@  discard block
 block discarded – undo
165 165
 		return false;
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string $qualifiedModuleName
170
+	 */
168 171
 	public static function getCleanInstance($qualifiedModuleName)
169 172
 	{
170 173
 		$className = Vtiger_Loader::getComponentClassName('Model', 'Record', $qualifiedModuleName);
@@ -208,6 +211,9 @@  discard block
 block discarded – undo
208 211
 		return $fieldValue;
209 212
 	}
210 213
 
214
+	/**
215
+	 * @param integer $blockId
216
+	 */
211 217
 	public static function getModuleInstanceByBlockId($blockId)
212 218
 	{
213 219
 		$tabid = (new \App\Db\Query())->select(['tabid'])
Please login to merge, or discard this patch.
modules/Vtiger/models/Multifilter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	/**
84 84
 	 * Set widget model to show.
85 85
 	 *
86
-	 * @param $widgetModel
86
+	 * @param Vtiger_Widget_Model $widgetModel
87 87
 	 *
88 88
 	 * @throws \App\Exceptions\AppException
89 89
 	 */
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	/**
100 100
 	 * Set filter id to show.
101 101
 	 *
102
-	 * @param $filterId
102
+	 * @param integer $filterId
103 103
 	 */
104 104
 	public function setFilterId($filterId)
105 105
 	{
Please login to merge, or discard this patch.
app/Mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$this->mailer = new \PHPMailer\PHPMailer\PHPMailer(false);
39 39
 		if (\AppConfig::debug('MAILER_DEBUG')) {
40 40
 			$this->mailer->SMTPDebug = 2;
41
-			$this->mailer->Debugoutput = function ($str, $level) {
41
+			$this->mailer->Debugoutput = function($str, $level) {
42 42
 				if (strpos(strtolower($str), 'error') !== false || strpos(strtolower($str), 'failed') !== false) {
43 43
 					Log::error(trim($str), 'Mailer');
44 44
 				} else {
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 	{
406 406
 		$this->mailer->SMTPDebug = 2;
407 407
 		static::$error = [];
408
-		$this->mailer->Debugoutput = function ($str, $level) {
408
+		$this->mailer->Debugoutput = function($str, $level) {
409 409
 			if (strpos(strtolower($str), 'error') !== false || strpos(strtolower($str), 'failed') !== false) {
410 410
 				static::$error[] = trim($str);
411 411
 				Log::error(trim($str), 'Mailer');
Please login to merge, or discard this patch.
modules/Settings/TreesManager/models/ListView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 	/**
97 97
 	 * Load list view conditions.
98 98
 	 *
99
-	 * @return object
99
+	 * @return App\Db\Query
100 100
 	 */
101 101
 	public function loadListViewCondition()
102 102
 	{
Please login to merge, or discard this patch.
modules/ModTracker/models/Field.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@
 block discarded – undo
36 36
 	 * Function to set Field instance.
37 37
 	 *
38 38
 	 * @param Vtiger_Field_Model
39
+	 * @param Vtiger_Field_Model $fieldModel
39 40
 	 */
40 41
 	public function setFieldInstance($fieldModel)
41 42
 	{
Please login to merge, or discard this patch.