@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | // maximum file size for uploaded files in bytes also used when uploading import files |
| 75 | 75 | // upload_maxsize default value = 3000000 |
| 76 | -$upload_maxsize = 52428800; // 50MB |
|
| 76 | +$upload_maxsize = 52428800; // 50MB |
|
| 77 | 77 | // flag to allow export functionality |
| 78 | 78 | // 'all' to allow anyone to use exports |
| 79 | 79 | // 'admin' to only allow admins to export |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com) |
| 7 | 7 | * @author Mariusz Krzaczkowski <[email protected]> |
| 8 | 8 | */ |
| 9 | -chdir(__DIR__.'/../'); |
|
| 9 | +chdir(__DIR__ . '/../'); |
|
| 10 | 10 | define('IS_PUBLIC_DIR', true); |
| 11 | 11 | require './index.php'; |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * @copyright YetiForce Sp. z o.o |
| 7 | 7 | * @author Mariusz Krzaczkowski <[email protected]> |
| 8 | 8 | */ |
| 9 | -chdir(__DIR__.'/../'); |
|
| 9 | +chdir(__DIR__ . '/../'); |
|
| 10 | 10 | define('IS_PUBLIC_DIR', true); |
| 11 | 11 | require 'webservice.php'; |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * @copyright YetiForce Sp. z o.o |
| 7 | 7 | * @author Mariusz Krzaczkowski <[email protected]> |
| 8 | 8 | */ |
| 9 | -chdir(__DIR__.'/../'); |
|
| 9 | +chdir(__DIR__ . '/../'); |
|
| 10 | 10 | define('IS_PUBLIC_DIR', true); |
| 11 | 11 | require 'cron.php'; |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * @copyright YetiForce Sp. z o.o |
| 7 | 7 | * @author Mariusz Krzaczkowski <[email protected]> |
| 8 | 8 | */ |
| 9 | -chdir(__DIR__.'/../'); |
|
| 9 | +chdir(__DIR__ . '/../'); |
|
| 10 | 10 | define('IS_PUBLIC_DIR', true); |
| 11 | 11 | require 'dav.php'; |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * @license YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com) |
| 7 | 7 | * @author Mariusz Krzaczkowski <[email protected]> |
| 8 | 8 | */ |
| 9 | -chdir(__DIR__.'/../'); |
|
| 9 | +chdir(__DIR__ . '/../'); |
|
| 10 | 10 | define('IS_PUBLIC_DIR', true); |
| 11 | 11 | require 'file.php'; |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function getUrl() |
| 44 | 44 | { |
| 45 | - $url = 'module='.$this->Module.'&view=Detail&record='.$this->Record.'&mode=showRecentRelation&page=1&limit='.$this->Data['limit']; |
|
| 45 | + $url = 'module=' . $this->Module . '&view=Detail&record=' . $this->Record . '&mode=showRecentRelation&page=1&limit=' . $this->Data['limit']; |
|
| 46 | 46 | foreach (self::getActions() as $type) { |
| 47 | - $url .= '&type[]='.$type; |
|
| 47 | + $url .= '&type[]=' . $type; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | return $url; |
@@ -142,12 +142,12 @@ discard block |
||
| 142 | 142 | 'id' => 'vtiger_crmentity.crmid', |
| 143 | 143 | 'content' => 'a.subject', |
| 144 | 144 | 'user' => 'vtiger_crmentity.smownerid', |
| 145 | - 'time' => new \yii\db\Expression('CONCAT(a.date_start, '.$db->quoteValue(' ').', a.time_start)'), |
|
| 145 | + 'time' => new \yii\db\Expression('CONCAT(a.date_start, ' . $db->quoteValue(' ') . ', a.time_start)'), |
|
| 146 | 146 | ]) |
| 147 | 147 | ->from('vtiger_activity a') |
| 148 | 148 | ->innerJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = a.activityid') |
| 149 | 149 | ->where(['vtiger_crmentity.deleted' => 0]) |
| 150 | - ->andWhere(['=', 'a.'.$field, $recordId]); |
|
| 150 | + ->andWhere(['=', 'a.' . $field, $recordId]); |
|
| 151 | 151 | \App\PrivilegeQuery::getConditions($query, 'Calendar', false, $recordId); |
| 152 | 152 | $queries[] = $query; |
| 153 | 153 | } |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | if ($tabid === self::IGNORE_MODULE) { |
| 184 | 184 | $permittedTabIdList = \vtlib\Deprecated::getPermittedModuleIdList(); |
| 185 | 185 | if (!empty($permittedTabIdList)) { |
| 186 | - $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 186 | + $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 187 | 187 | foreach ($permittedTabIdList as $moduleId) { |
| 188 | 188 | foreach ($type as $typ) { |
| 189 | 189 | if (isset($rows[$moduleId][$typ])) { |
@@ -740,7 +740,7 @@ |
||
| 740 | 740 | public function generateQuestionMarks($items) |
| 741 | 741 | { |
| 742 | 742 | // array_map will call the function specified in the first parameter for every element of the list in second parameter |
| 743 | - return implode(',', array_map(function ($a) { |
|
| 743 | + return implode(',', array_map(function($a) { |
|
| 744 | 744 | return '?'; |
| 745 | 745 | }, is_array($items) ? $items : explode(',', $items))); |
| 746 | 746 | } |