Completed
Push — developer ( f53b91...475c9e )
by Błażej
386:14 queued 360:35
created
modules/Vtiger/models/Relation.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -809,6 +809,9 @@  discard block
 block discarded – undo
809 809
 		\App\Cache::clear();
810 810
 	}
811 811
 
812
+	/**
813
+	 * @param integer $relationId
814
+	 */
812 815
 	public static function updateModuleRelatedFields($relationId, $fields)
813 816
 	{
814 817
 		$db = \App\Db::getInstance();
@@ -826,6 +829,9 @@  discard block
 block discarded – undo
826 829
 		\App\Cache::clear();
827 830
 	}
828 831
 
832
+	/**
833
+	 * @param integer $relationId
834
+	 */
829 835
 	public static function updateModuleRelatedInventoryFields($relationId, $fields)
830 836
 	{
831 837
 		$db = \App\Db::getInstance('admin');
@@ -872,6 +878,9 @@  discard block
 block discarded – undo
872 878
 		return $fields;
873 879
 	}
874 880
 
881
+	/**
882
+	 * @param string|boolean $refModuleName
883
+	 */
875 884
 	public static function getReferenceTableInfo($moduleName, $refModuleName)
876 885
 	{
877 886
 		$temp = [$moduleName, $refModuleName];
@@ -914,6 +923,9 @@  discard block
 block discarded – undo
914 923
 		return $result;
915 924
 	}
916 925
 
926
+	/**
927
+	 * @param integer $relationId
928
+	 */
917 929
 	public static function updateStateFavorites($relationId, $status)
918 930
 	{
919 931
 		\App\Db::getInstance()->createCommand()->update('vtiger_relatedlists', ['favorites' => $status], ['relation_id' => $relationId])->execute();
Please login to merge, or discard this patch.
modules/Calendar/actions/GetFreeTime.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
 		}
26 26
 	}
27 27
 
28
+	/**
29
+	 * @param string $day
30
+	 */
28 31
 	public function getFreeTimeInDay($day)
29 32
 	{
30 33
 		$currentUser = Users_Record_Model::getCurrentUserModel();
Please login to merge, or discard this patch.
webservice.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 require_once 'include/main/WebUI.php';
7 7
 \App\Config::$requestMode = 'API';
8 8
 try {
9
-    if (!in_array('webservice', $enabledServices)) {
10
-        throw new \App\Exceptions\NoPermittedToApi('Webservice - Service is not active', 403);
11
-    }
12
-    $controller = Api\Controller::getInstance();
13
-    $process = $controller->preProcess();
14
-    if ($process) {
15
-        $controller->process();
16
-    }
17
-    $controller->postProcess();
9
+	if (!in_array('webservice', $enabledServices)) {
10
+		throw new \App\Exceptions\NoPermittedToApi('Webservice - Service is not active', 403);
11
+	}
12
+	$controller = Api\Controller::getInstance();
13
+	$process = $controller->preProcess();
14
+	if ($process) {
15
+		$controller->process();
16
+	}
17
+	$controller->postProcess();
18 18
 } catch (\Api\Core\Exception $e) {
19
-    $e->handleError();
19
+	$e->handleError();
20 20
 } catch (\App\Exceptions\NoPermittedToApi $e) {
21
-    echo json_encode([
22
-        'status' => 0,
23
-        'error' => [
24
-            'message' => $e->getMessage(),
25
-        ],
26
-    ]);
21
+	echo json_encode([
22
+		'status' => 0,
23
+		'error' => [
24
+			'message' => $e->getMessage(),
25
+		],
26
+	]);
27 27
 }
Please login to merge, or discard this patch.
config/debug.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -6,91 +6,91 @@
 block discarded – undo
6 6
  * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
7 7
  */
8 8
 $DEBUG_CONFIG = [
9
-    /* +***************************************************************
9
+	/* +***************************************************************
10 10
      * 	Logger
11 11
      * ************************************************************** */
12
-    // Enable saving logs to file. Values: false/true
13
-    'LOG_TO_FILE' => false,
14
-    // Enable displaying logs in debug console. Values: false/true
15
-    'LOG_TO_CONSOLE' => false,
16
-    // Enable saving logs profiling.  Values: false/true
17
-    'LOG_TO_PROFILE' => false,
18
-    // Level of saved/displayed logs
19
-    // Values: false = All / 3 = error and warning / ['error', 'warning', 'info', 'trace', 'profile'],
20
-    'LOG_LEVELS' => false,
21
-    // Level of saved/displayed tracerts. // Values: int
22
-    'LOG_TRACE_LEVEL' => 0,
23
-    // Display Main Debug Console
24
-    'DISPLAY_DEBUG_CONSOLE' => false,
25
-    // List of IP addresses allowed to display debug console
26
-    // Values: false = All IPS / '192.168.1.10' / ['192.168.1.10','192.168.1.11']
27
-    'DEBUG_CONSOLE_ALLOWED_IPS' => false,
28
-    // Stop the running process of the system if there is and error in sql query
29
-    'SQL_DIE_ON_ERROR' => false,
30
-    // Debug Viewer => cache/logs/viewer-debug.log
31
-    'DEBUG_VIEWER' => false,
32
-    // Display Smarty Debug Console
33
-    'DISPLAY_DEBUG_VIEWER' => false,
34
-    // migoi
35
-    // Don't show Smarty Notice in phpError.log
36
-    'SMARTY_ERROR_REPORTING' => E_ALL & ~E_NOTICE,
37
-    // / mogoi
38
-    /* +***************************************************************
12
+	// Enable saving logs to file. Values: false/true
13
+	'LOG_TO_FILE' => false,
14
+	// Enable displaying logs in debug console. Values: false/true
15
+	'LOG_TO_CONSOLE' => false,
16
+	// Enable saving logs profiling.  Values: false/true
17
+	'LOG_TO_PROFILE' => false,
18
+	// Level of saved/displayed logs
19
+	// Values: false = All / 3 = error and warning / ['error', 'warning', 'info', 'trace', 'profile'],
20
+	'LOG_LEVELS' => false,
21
+	// Level of saved/displayed tracerts. // Values: int
22
+	'LOG_TRACE_LEVEL' => 0,
23
+	// Display Main Debug Console
24
+	'DISPLAY_DEBUG_CONSOLE' => false,
25
+	// List of IP addresses allowed to display debug console
26
+	// Values: false = All IPS / '192.168.1.10' / ['192.168.1.10','192.168.1.11']
27
+	'DEBUG_CONSOLE_ALLOWED_IPS' => false,
28
+	// Stop the running process of the system if there is and error in sql query
29
+	'SQL_DIE_ON_ERROR' => false,
30
+	// Debug Viewer => cache/logs/viewer-debug.log
31
+	'DEBUG_VIEWER' => false,
32
+	// Display Smarty Debug Console
33
+	'DISPLAY_DEBUG_VIEWER' => false,
34
+	// migoi
35
+	// Don't show Smarty Notice in phpError.log
36
+	'SMARTY_ERROR_REPORTING' => E_ALL & ~E_NOTICE,
37
+	// / mogoi
38
+	/* +***************************************************************
39 39
      * Configure a user-defined error handler function
40 40
      * ************************************************************** */
41
-    // Displays information about the tracking code when an error occurs. Available only with the active SQL_DIE_ON_ERROR = true
42
-    'DISPLAY_EXCEPTION_BACKTRACE' => false,
43
-    // Display logs when error exception occurs
44
-    'DISPLAY_EXCEPTION_LOGS' => false,
45
-    // Turn on the error handler
46
-    'EXCEPTION_ERROR_HANDLER' => false,
47
-    // Save logs to file (cache/logs/errors.log)
48
-    'EXCEPTION_ERROR_TO_FILE' => false,
49
-    // Display errors
50
-    'EXCEPTION_ERROR_TO_SHOW' => false,
51
-    // Set the error reporting level. The parameter is either an integer representing a bit field, or named constants.
52
-    // https://secure.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
53
-    // All errors - E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
54
-    // Critical errors - E_ERROR | E_WARNING | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR
55
-    'EXCEPTION_ERROR_LEVEL' => E_ALL & ~E_NOTICE,
56
-    /* +***************************************************************
41
+	// Displays information about the tracking code when an error occurs. Available only with the active SQL_DIE_ON_ERROR = true
42
+	'DISPLAY_EXCEPTION_BACKTRACE' => false,
43
+	// Display logs when error exception occurs
44
+	'DISPLAY_EXCEPTION_LOGS' => false,
45
+	// Turn on the error handler
46
+	'EXCEPTION_ERROR_HANDLER' => false,
47
+	// Save logs to file (cache/logs/errors.log)
48
+	'EXCEPTION_ERROR_TO_FILE' => false,
49
+	// Display errors
50
+	'EXCEPTION_ERROR_TO_SHOW' => false,
51
+	// Set the error reporting level. The parameter is either an integer representing a bit field, or named constants.
52
+	// https://secure.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
53
+	// All errors - E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
54
+	// Critical errors - E_ERROR | E_WARNING | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR
55
+	'EXCEPTION_ERROR_LEVEL' => E_ALL & ~E_NOTICE,
56
+	/* +***************************************************************
57 57
      * 	API
58 58
      * ************************************************************** */
59
-    // Sabre dav - This is a flag that allow or not showing file, line and code of the exception in the returned XML
60
-    'DAV_DEBUG_EXCEPTIONS' => false,
61
-    // Activate the plugin recording log in DAV
62
-    'DAV_DEBUG_PLUGIN' => false,
63
-    // Show errors messages in web service
64
-    'WEBSERVICE_SHOW_ERROR' => false,
65
-    // web service logs
66
-    'WEBSERVICE_DEBUG' => false,
67
-    /* +***************************************************************
59
+	// Sabre dav - This is a flag that allow or not showing file, line and code of the exception in the returned XML
60
+	'DAV_DEBUG_EXCEPTIONS' => false,
61
+	// Activate the plugin recording log in DAV
62
+	'DAV_DEBUG_PLUGIN' => false,
63
+	// Show errors messages in web service
64
+	'WEBSERVICE_SHOW_ERROR' => false,
65
+	// web service logs
66
+	'WEBSERVICE_DEBUG' => false,
67
+	/* +***************************************************************
68 68
      * 	Mailer
69 69
      * ************************************************************** */
70
-    // Mailer debug
71
-    'MAILER_DEBUG' => false,
72
-    /* +***************************************************************
70
+	// Mailer debug
71
+	'MAILER_DEBUG' => false,
72
+	/* +***************************************************************
73 73
      * 	ROUNDCUBE MAIL
74 74
      * ************************************************************** */
75
-    // System error reporting, sum of: 1 = log; 4 = show, 8 = trace
76
-    'ROUNDCUBE_DEBUG_LEVEL' => 1,
77
-    // Devel_mode this will print real PHP memory usage into logs/console and do not compress JS libraries
78
-    'ROUNDCUBE_DEVEL_MODE' => false,
79
-    // Activate this option if logs should be written to per-user directories.
80
-    // Data will only be logged if a directry cache/logs/<username>/ exists and is writable.
81
-    'ROUNDCUBE_PER_USER_LOGGING' => false,
82
-    // Log sent messages to cache/logs/sendmail or to syslog
83
-    'ROUNDCUBE_SMTP_LOG' => false,
84
-    // Log successful/failed logins to cache/logs/userlogins or to syslog
85
-    'ROUNDCUBE_LOG_LOGINS' => false,
86
-    // Log session authentication errors to cache/logs/session or to syslog
87
-    'ROUNDCUBE_LOG_SESSION' => false,
88
-    // Log SQL queries to cache/logs/sql or to syslog
89
-    'ROUNDCUBE_SQL_DEBUG' => false,
90
-    // Log IMAP conversation to cache/logs/imap or to syslog
91
-    'ROUNDCUBE_IMAP_DEBUG' => false,
92
-    // Log LDAP conversation to cache/logs/ldap or to syslog
93
-    'ROUNDCUBE_LDAP_DEBUG' => false,
94
-    // Log SMTP conversation to cache/logs/smtp or to syslog
95
-    'ROUNDCUBE_SMTP_DEBUG' => false,
75
+	// System error reporting, sum of: 1 = log; 4 = show, 8 = trace
76
+	'ROUNDCUBE_DEBUG_LEVEL' => 1,
77
+	// Devel_mode this will print real PHP memory usage into logs/console and do not compress JS libraries
78
+	'ROUNDCUBE_DEVEL_MODE' => false,
79
+	// Activate this option if logs should be written to per-user directories.
80
+	// Data will only be logged if a directry cache/logs/<username>/ exists and is writable.
81
+	'ROUNDCUBE_PER_USER_LOGGING' => false,
82
+	// Log sent messages to cache/logs/sendmail or to syslog
83
+	'ROUNDCUBE_SMTP_LOG' => false,
84
+	// Log successful/failed logins to cache/logs/userlogins or to syslog
85
+	'ROUNDCUBE_LOG_LOGINS' => false,
86
+	// Log session authentication errors to cache/logs/session or to syslog
87
+	'ROUNDCUBE_LOG_SESSION' => false,
88
+	// Log SQL queries to cache/logs/sql or to syslog
89
+	'ROUNDCUBE_SQL_DEBUG' => false,
90
+	// Log IMAP conversation to cache/logs/imap or to syslog
91
+	'ROUNDCUBE_IMAP_DEBUG' => false,
92
+	// Log LDAP conversation to cache/logs/ldap or to syslog
93
+	'ROUNDCUBE_LDAP_DEBUG' => false,
94
+	// Log SMTP conversation to cache/logs/smtp or to syslog
95
+	'ROUNDCUBE_SMTP_DEBUG' => false,
96 96
 ];
Please login to merge, or discard this patch.
config/api.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@  discard block
 block discarded – undo
8 8
 /* +********   active services   *********** */
9 9
 //List of active services. To enable you must uncomment the appropriate line.
10 10
 $enabledServices = [
11
-    //'dav',
12
-    //'webservices',
13
-    //'webservice',
11
+	//'dav',
12
+	//'webservices',
13
+	//'webservice',
14 14
 ];
15 15
 /* +***************   DAV   **************** */
16 16
 $enableBrowser = false;
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 
21 21
 /* +*********   Webservice config  ********* */
22 22
 $API_CONFIG = [
23
-    'ENCRYPT_DATA_TRANSFER' => false,
24
-    'AUTH_METHOD' => 'Basic',
25
-    'PRIVATE_KEY' => 'config/private.key',
26
-    'PUBLIC_KEY' => 'config/public.key',
23
+	'ENCRYPT_DATA_TRANSFER' => false,
24
+	'AUTH_METHOD' => 'Basic',
25
+	'PRIVATE_KEY' => 'config/private.key',
26
+	'PUBLIC_KEY' => 'config/public.key',
27 27
 ];
Please login to merge, or discard this patch.
config/developer.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
7 7
  */
8 8
 $DEVELOPER_CONFIG = [
9
-    // Turn the possibility to change generatedtype
10
-    'CHANGE_GENERATEDTYPE' => false,
11
-    // Enable minimize JS files
12
-    'MINIMIZE_JS' => true,
13
-    // Enable minimize CSS files
14
-    'MINIMIZE_CSS' => true,
15
-    // Change of fields visibility
16
-    'CHANGE_VISIBILITY' => false,
17
-    // Adding/Deleting relations between modules.
18
-    'CHANGE_RELATIONS' => false,
19
-    // Developer libraries update mode
20
-    'MISSING_LIBRARY_DEV_MODE' => false,
9
+	// Turn the possibility to change generatedtype
10
+	'CHANGE_GENERATEDTYPE' => false,
11
+	// Enable minimize JS files
12
+	'MINIMIZE_JS' => true,
13
+	// Enable minimize CSS files
14
+	'MINIMIZE_CSS' => true,
15
+	// Change of fields visibility
16
+	'CHANGE_VISIBILITY' => false,
17
+	// Adding/Deleting relations between modules.
18
+	'CHANGE_RELATIONS' => false,
19
+	// Developer libraries update mode
20
+	'MISSING_LIBRARY_DEV_MODE' => false,
21 21
 ];
Please login to merge, or discard this patch.
config/modules/FInvoice.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
  * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
7 7
  */
8 8
 return [
9
-    // Update the date of the last invoice in Account while saving invoice
10
-    'UPDATE_LAST_INVOICE_DATE' => true,
9
+	// Update the date of the last invoice in Account while saving invoice
10
+	'UPDATE_LAST_INVOICE_DATE' => true,
11 11
 ];
Please login to merge, or discard this patch.
config/modules/SQuotes.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
  * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
7 7
  */
8 8
 return [
9
-    // List of fields read from related module
10
-    'INVENTORY_ON_SELECT_AUTO_COMPLETE' => [
11
-        'description' => [
12
-            'ref' => 'getInventoryListName',
13
-        ],
14
-        'price' => [
15
-            'ref' => 'getInventoryPrice',
16
-        ],
17
-    ],
9
+	// List of fields read from related module
10
+	'INVENTORY_ON_SELECT_AUTO_COMPLETE' => [
11
+		'description' => [
12
+			'ref' => 'getInventoryListName',
13
+		],
14
+		'price' => [
15
+			'ref' => 'getInventoryPrice',
16
+		],
17
+	],
18 18
 ];
Please login to merge, or discard this patch.
config/modules/Users.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
  * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
7 7
  */
8 8
 return [
9
-    // Show information about logged user in footer
10
-    'IS_VISIBLE_USER_INFO_FOOTER' => false,
11
-    // Is it possible to edit a user's name
12
-    'USER_NAME_IS_EDITABLE' => true,
13
-    // Verify previously used usernames
14
-    'CHECK_LAST_USERNAME' => true,
9
+	// Show information about logged user in footer
10
+	'IS_VISIBLE_USER_INFO_FOOTER' => false,
11
+	// Is it possible to edit a user's name
12
+	'USER_NAME_IS_EDITABLE' => true,
13
+	// Verify previously used usernames
14
+	'CHECK_LAST_USERNAME' => true,
15 15
 ];
Please login to merge, or discard this patch.