Passed
Push — developer ( 8b3d0c...489e91 )
by Mariusz
27:21
created
app/Fields/File.php 1 patch
Spacing   +2 added lines, -10 removed lines patch added patch discarded remove patch
@@ -552,15 +552,7 @@  discard block
 block discarded – undo
552 552
 			$tokens = token_get_all($this->getContents(), TOKEN_PARSE);
553 553
 			foreach ($tokens as $token) {
554 554
 				switch (\is_array($token) ? $token[0] : $token) {
555
-						case T_COMMENT:
556
-						case T_DOC_COMMENT:
557
-						case T_WHITESPACE:
558
-						case T_CURLY_OPEN:
559
-						case T_OPEN_TAG:
560
-						case T_CLOSE_TAG:
561
-						case T_INLINE_HTML:
562
-						case T_DOLLAR_OPEN_CURLY_BRACES:
563
-							continue 2;
555
+						case T_COMMENT : case T_DOC_COMMENT : case T_WHITESPACE : case T_CURLY_OPEN : case T_OPEN_TAG : case T_CLOSE_TAG : case T_INLINE_HTML : case T_DOLLAR_OPEN_CURLY_BRACES : continue 2;
564 556
 						case T_DOUBLE_COLON:
565 557
 						case T_ABSTRACT:
566 558
 						case T_ARRAY:
@@ -1361,7 +1353,7 @@  discard block
 block discarded – undo
1361 1353
 	 */
1362 1354
 	public static function parse(array $value)
1363 1355
 	{
1364
-		return array_reduce($value, function ($result, $item) {
1356
+		return array_reduce($value, function($result, $item) {
1365 1357
 			if (isset($item['key'])) {
1366 1358
 				$result[$item['key']] = $item;
1367 1359
 			}
Please login to merge, or discard this patch.
api/webservice/WebserviceStandard/Users/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 				$rawData[$fieldModel->getName() . '_info'] = \Vtiger_Taxes_UIType::getValues($rawData[$fieldModel->getName()]);
153 153
 			}
154 154
 		}
155
-		unset($fieldsLabel['user_password'],$fieldsLabel['confirm_password'],$fieldsLabel['accesskey'],$displayData['user_password'],$displayData['confirm_password'],$displayData['accesskey'],$rawData['user_password'],$rawData['confirm_password'],$rawData['accesskey']);
155
+		unset($fieldsLabel['user_password'], $fieldsLabel['confirm_password'], $fieldsLabel['accesskey'], $displayData['user_password'], $displayData['confirm_password'], $displayData['accesskey'], $rawData['user_password'], $rawData['confirm_password'], $rawData['accesskey']);
156 156
 		$response = [
157 157
 			'name' => \App\Purifier::decodeHtml($this->recordModel->getName()),
158 158
 			'id' => $this->recordModel->getId(),
Please login to merge, or discard this patch.
api/webservice/WebservicePremium/BaseModule/Pdf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 			$fileName .= ($increment[$fileName]++ > 0 ? '_' . $increment[$fileName] : '') . '.pdf';
66 66
 
67 67
 			$filePath = $template->getPath();
68
-			$pdfFiles[] = ['path' => $filePath,	'name' => $fileName];
68
+			$pdfFiles[] = ['path' => $filePath, 'name' => $fileName];
69 69
 			$pdf->output($filePath, 'F');
70 70
 		}
71 71
 		if (\count($pdfFiles) > 1) {
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/MultiReferenceValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	public static function setRecordToCron($moduleName, $destModule, $recordId, $type = 1)
136 136
 	{
137 137
 		$data = ['source_module' => $moduleName, 'dest_module' => $destModule, 'lastid' => $recordId, 'type' => $type];
138
-		if(!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()){
138
+		if (!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()) {
139 139
 			\App\Db::getInstance()->createCommand()->insert('s_#__multireference', $data)->execute();
140 140
 		}
141 141
 	}
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		$tabIds = (new \App\Db\Query())
227 227
 			->select(['fieldid', 'tabid'])
228 228
 			->from('vtiger_field')
229
-			->where(['and',	['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()],	['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']]
229
+			->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']]
230 230
 			])->createCommand()->queryAllByGroup();
231 231
 		foreach ($tabIds as $fieldId => $tabId) {
232 232
 			$sourceModule = \App\Module::getModuleName($tabId);
Please login to merge, or discard this patch.
app/UserPrivilegesFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 			$userFocus->id = $userid;
49 49
 			foreach ($userFocus->column_fields as $field => $value) {
50 50
 				if (isset($userFocus->{$field})) {
51
-					if ('currency_symbol' === $field || $field === 'imagename'|| $field === 'othereventduration') {
51
+					if ('currency_symbol' === $field || $field === 'imagename' || $field === 'othereventduration') {
52 52
 						$userInfo[$field] = $userFocus->{$field};
53 53
 					} else {
54 54
 						$userInfo[$field] = is_numeric($userFocus->{$field}) ? $userFocus->{$field} : \App\Purifier::encodeHtml($userFocus->{$field});
Please login to merge, or discard this patch.
app/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 		if (static::$clearOpcache) {
192 192
 			return false;
193 193
 		}
194
-		register_shutdown_function(function () {
194
+		register_shutdown_function(function() {
195 195
 			try {
196 196
 				static::resetOpcache();
197 197
 			} catch (\Throwable $e) {
Please login to merge, or discard this patch.
app/Utils/Benchmarks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 				'time' => (int) ($readOperations / (microtime(true) - $timeStart)),
194 194
 			];
195 195
 		}
196
-		register_shutdown_function(function () {
196
+		register_shutdown_function(function() {
197 197
 			try {
198 198
 				\vtlib\Functions::recurseDelete('cache/speed');
199 199
 			} catch (\Throwable $e) {
Please login to merge, or discard this patch.
modules/OSSMail/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
 					->execute();
179 179
 			}
180 180
 			\App\Log::trace('Exit OSSMail_Record_Model::imapConnect() method ...');
181
-			register_shutdown_function(function () use ($mbox, $user) {
181
+			register_shutdown_function(function() use ($mbox, $user) {
182 182
 				try {
183 183
 					\App\Log::beginProfile('OSSMail_Record_Model|imap_close|' . $user, 'Mail|IMAP');
184 184
 					imap_close($mbox);
Please login to merge, or discard this patch.
modules/OSSMail/models/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class OSSMail_Mail_Model extends \App\Base
17 17
 {
18 18
 	/** @var string[] Ignored mail addresses */
19
-	public const IGNORED_MAILS = ['@', 'undisclosed-recipients',  'Undisclosed-recipients', 'undisclosed-recipients@', 'Undisclosed-recipients@', 'Undisclosed recipients@,@', 'undisclosed recipients@,@'];
19
+	public const IGNORED_MAILS = ['@', 'undisclosed-recipients', 'Undisclosed-recipients', 'undisclosed-recipients@', 'Undisclosed-recipients@', 'Undisclosed recipients@,@', 'undisclosed recipients@,@'];
20 20
 
21 21
 	/** @var array Mail account. */
22 22
 	protected $mailAccount = [];
Please login to merge, or discard this patch.