Passed
Pull Request — developer (#15972)
by Arkadiusz
18:48
created
app/Encryption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
 	 */
187 187
 	public static function getMethods()
188 188
 	{
189
-		return array_filter(openssl_get_cipher_methods(), function ($methodName) {
189
+		return array_filter(openssl_get_cipher_methods(), function($methodName) {
190 190
 			return false === stripos($methodName, 'gcm') && false === stripos($methodName, 'ccm');
191 191
 		});
192 192
 	}
Please login to merge, or discard this patch.
modules/Faq/Faq.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	public $table_index = 'id';
29 29
 	//fix for Custom Field for FAQ
30 30
 	public $tab_name = ['vtiger_crmentity', 'vtiger_faq', 'vtiger_faqcf'];
31
-	public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_faq' => 'id',  'vtiger_faqcf' => 'faqid'];
31
+	public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_faq' => 'id', 'vtiger_faqcf' => 'faqid'];
32 32
 	public $customFieldTable = ['vtiger_faqcf', 'faqid'];
33 33
 	public $entity_table = 'vtiger_crmentity';
34 34
 	public $column_fields = [];
Please login to merge, or discard this patch.
modules/KnowledgeBase/actions/KnowledgeBaseAjax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
 			return [];
229 229
 		}
230 230
 		$queryGenerator = new \App\QueryGenerator('ModComments');
231
-		$queryGenerator->setFields(['modifiedtime', 'id',	'assigned_user_id', 'commentcontent']);
231
+		$queryGenerator->setFields(['modifiedtime', 'id', 'assigned_user_id', 'commentcontent']);
232 232
 		$queryGenerator->setSourceRecord($recordId);
233 233
 		$queryGenerator->addNativeCondition(['related_to' => $recordId]);
234 234
 		$query = $queryGenerator->createQuery()->orderBy(['id' => SORT_DESC]);
Please login to merge, or discard this patch.
modules/KnowledgeBase/ConfigTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'DEFAULT_VIEW_RECORD' => [
10 10
 		'default' => 'LBL_RECORD_PREVIEW',
11 11
 		'description' => 'Default view for record detail view. Values: LBL_RECORD_DETAILS or LBL_RECORD_SUMMARY',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \in_array($arg, ['LBL_RECORD_PREVIEW', 'LBL_RECORD_SUMMARY', 'LBL_RECORD_DETAILS']);
15 15
 		}
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	'defaultViewName' => [
18 18
 		'default' => 'KnowledgeBase',
19 19
 		'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value',
20
-		'validation' => function () {
20
+		'validation' => function() {
21 21
 			$arg = func_get_arg(0);
22 22
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg;
23 23
 		}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	'knowledgeBaseArticleLimit' => [
59 59
 		'default' => 50,
60 60
 		'description' => 'Article limit in the knowledge base window',
61
-		'validation' => function () {
61
+		'validation' => function() {
62 62
 			$arg = func_get_arg(0);
63 63
 			return $arg && \App\Validator::naturalNumber($arg);
64 64
 		}
Please login to merge, or discard this patch.
modules/Faq/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'knowledgeBaseArticleLimit' => [
10 10
 		'default' => 50,
11 11
 		'description' => 'Article limit in the knowledge base window',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return $arg && \App\Validator::naturalNumber($arg);
15 15
 		}
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	'defaultViewName' => [
18 18
 		'default' => 'KnowledgeBase',
19 19
 		'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value',
20
-		'validation' => function () {
20
+		'validation' => function() {
21 21
 			$arg = func_get_arg(0);
22 22
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg;
23 23
 		}
Please login to merge, or discard this patch.
app/Fields/TimePeriod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 */
26 26
 	public static function convertToMinutes(string $value): int
27 27
 	{
28
-		[$number,$timePeriod] = explode(':', $value);
28
+		[$number, $timePeriod] = explode(':', $value);
29 29
 		$multiplier = 1;
30 30
 		switch ($timePeriod) {
31 31
 			case 'H':
Please login to merge, or discard this patch.
app/Utils/ServiceContracts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -543,9 +543,9 @@
 block discarded – undo
543 543
 			}
544 544
 			$date->modify('+1 day')->setTime(0, 0, 0);
545 545
 		}
546
-		[$sh,$sm,$ss] = explode(':', $startHour);
547
-		[$eh,$em,$es] = explode(':', $endHour);
548
-		return array_reduce($dates, function ($carry, $item) use ($sh, $sm, $ss, $eh, $em, $es) {
546
+		[$sh, $sm, $ss] = explode(':', $startHour);
547
+		[$eh, $em, $es] = explode(':', $endHour);
548
+		return array_reduce($dates, function($carry, $item) use ($sh, $sm, $ss, $eh, $em, $es) {
549 549
 			$businessStart = (clone $item['start'])->setTime($sh, $sm, $ss);
550 550
 			$businessEnd = (clone $item['end'])->setTime($eh, $em, $es);
551 551
 			$start = ($item['start'] < $businessStart) ? $businessStart : $item['start'];
Please login to merge, or discard this patch.
modules/SMSNotifier/workflow/VTSMSTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 			$recepients = explode(',', $recepient);
33 33
 			$toNumbers = [];
34 34
 			foreach ($recepients as $toNumber) {
35
-				$parseNumber = preg_replace_callback('/[^\d]/s', function ($m) {
35
+				$parseNumber = preg_replace_callback('/[^\d]/s', function($m) {
36 36
 					return '';
37 37
 				}, $toNumber);
38 38
 				if (!empty($parseNumber) && !\in_array($parseNumber, $toNumbers)) {
Please login to merge, or discard this patch.
vtlib/Vtiger/LanguageImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 			$custom => $custom,
80 80
 			$languages => $languages,
81 81
 		]);
82
-		self::register($prefix, $label, null, true, (int)$this->_modulexml->progress);
82
+		self::register($prefix, $label, null, true, (int) $this->_modulexml->progress);
83 83
 		\App\Cache::clear();
84 84
 		\App\Log::trace("Importing $label [$prefix] ... DONE", __METHOD__);
85 85
 	}
Please login to merge, or discard this patch.