Test Setup Failed
Push — developer ( 146495...b127ed )
by Mariusz
18:34
created
modules/Assets/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	'SHOW_RELATION_IN_MODAL' => [
17 17
 		'default' => ['relationField' => 'parent_id', 'module' => 'Accounts', 'relatedModule' => ['FInvoice', 'ModComments', 'Calendar', 'Documents']],
18 18
 		'description' => 'Show relations in the modal',
19
-		'validation' => function () {
19
+		'validation' => function() {
20 20
 			return false;
21 21
 		}
22 22
 	],
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	'SHOW_HIERARCHY_IN_MODAL' => [
29 29
 		'default' => [],
30 30
 		'description' => 'false, [] - inherit fields, [ label => column name, .. ]',
31
-		'validation' => function () {
31
+		'validation' => function() {
32 32
 			$args = func_get_arg(0);
33 33
 			$moduleModel = Vtiger_Module_Model::getInstance('Assets');
34 34
 			$fields = $moduleModel->getFields();
Please login to merge, or discard this patch.
modules/Settings/Companies/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 		$columnNames = self::getColumnNames();
135 135
 		unset($columnNames[array_search('id', $columnNames)]);
136 136
 		$editFields = array_keys(self::$formFields);
137
-		usort($columnNames, function ($a, $b) use ($editFields) {
137
+		usort($columnNames, function($a, $b) use ($editFields) {
138 138
 			return array_search($a, $editFields) < array_search($b, $editFields) ? -1 : 1;
139 139
 		});
140 140
 		return $columnNames;
Please login to merge, or discard this patch.
modules/Project/ConfigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 		'default' => 50,
15 15
 		'description' => 'Max depth of hierarchy',
16 16
 		'validation' => '\App\Validator::naturalNumber',
17
-		'sanitization' => function () {
17
+		'sanitization' => function() {
18 18
 			return (int) func_get_arg(0);
19 19
 		}
20 20
 	],
Please login to merge, or discard this patch.
app/Automatic/RecordFlowUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
 		if (false === $returnedValue) {
329 329
 			\App\Log::warning(
330 330
 				"There is no rule defined for this case recordId: {$recordId} module: {$this->sourceModuleName}. Statuses:" .
331
-				implode(',', array_map(function ($item) {
331
+				implode(',', array_map(function($item) {
332 332
 					return $item['status'];
333 333
 				}, $itmes))
334 334
 			);
Please login to merge, or discard this patch.
app/Log/Profiling.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 		$timings = [];
37 37
 		$stack = [];
38 38
 		foreach ($this->messages as $i => $log) {
39
-			[$token, $level, , $timestamp] = $log;
39
+			[$token, $level,, $timestamp] = $log;
40 40
 			$log[5] = $i;
41 41
 			if (Logger::LEVEL_PROFILE_BEGIN == $level) {
42 42
 				$stack[] = $log;
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.