@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $address = SwissQrBill\DataGroup\Element\CombinedAddress::create( |
121 | 121 | $this->emetteur->name, |
122 | 122 | $this->emetteur->address, |
123 | - $this->emetteur->zip . " " . $this->emetteur->town, |
|
123 | + $this->emetteur->zip." ".$this->emetteur->town, |
|
124 | 124 | $this->emetteur->country_code |
125 | 125 | ); |
126 | 126 | if (!$address->isValid()) { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $address = SwissQrBill\DataGroup\Element\CombinedAddress::create( |
176 | 176 | $object->thirdparty->name, |
177 | 177 | $object->thirdparty->address, |
178 | - $object->thirdparty->zip . " " . $object->thirdparty->town, |
|
178 | + $object->thirdparty->zip." ".$object->thirdparty->town, |
|
179 | 179 | $object->thirdparty->country_code |
180 | 180 | ); |
181 | 181 | if (!$address->isValid()) { |
@@ -127,10 +127,10 @@ |
||
127 | 127 | |
128 | 128 | // Boxes |
129 | 129 | $this->boxes = array( |
130 | - 0=>array('file'=>'box_project.php', 'enabledbydefaulton'=>'Home'), // open projects |
|
131 | - 1=>array('file'=>'box_project_opportunities.php', 'enabledbydefaulton'=>'Home'), // open opportunities |
|
130 | + 0=>array('file'=>'box_project.php', 'enabledbydefaulton'=>'Home'), // open projects |
|
131 | + 1=>array('file'=>'box_project_opportunities.php', 'enabledbydefaulton'=>'Home'), // open opportunities |
|
132 | 132 | 2=>array('file'=>'box_task.php', 'enabledbydefaulton'=>'Home'), |
133 | - 3=>array('file'=>'box_validated_projects.php', 'enabledbydefaulton'=>'Home'), // task without timespent |
|
133 | + 3=>array('file'=>'box_validated_projects.php', 'enabledbydefaulton'=>'Home'), // task without timespent |
|
134 | 134 | 4=>array('file'=>'box_funnel_of_prospection.php', 'enabledbydefaulton'=>'Home'), |
135 | 135 | ); |
136 | 136 |
@@ -363,7 +363,7 @@ |
||
363 | 363 | if ($typefield == 'Text' || $typefield == 'TextAuto') { |
364 | 364 | // If $newvalue start with an equal sign we don't want it to be interpreted as a formula, so we add a '. Such transformation should be |
365 | 365 | // done by SetCellValueByColumnAndRow but it is not, so we do it ourself. |
366 | - $newvalue = (dol_substr($newvalue, 0, 1) === '=' ? '\'' : '') . $newvalue; |
|
366 | + $newvalue = (dol_substr($newvalue, 0, 1) === '=' ? '\'' : '').$newvalue; |
|
367 | 367 | $this->workbook->getActiveSheet()->SetCellValueByColumnAndRow($this->col, $this->row + 1, $newvalue); |
368 | 368 | $coord = $this->workbook->getActiveSheet()->getCellByColumnAndRow($this->col, $this->row + 1)->getCoordinate(); |
369 | 369 | $this->workbook->getActiveSheet()->getStyle($coord)->getNumberFormat()->setFormatCode('@'); |
@@ -209,8 +209,8 @@ discard block |
||
209 | 209 | 'd.code_departement'=>'List:c_departements:code_departement:code_departement:', 'c.code'=>'List:c_country:code:code:', |
210 | 210 | 'e.phone'=>'Text', 'e.fax'=>'Text', 'e.statut'=>'Text', 'pe.rowid'=>'List:entrepot:ref:rowid:stock', 'pe.ref'=>'Text' |
211 | 211 | ); |
212 | - $this->export_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into export_icon |
|
213 | - $this->export_aggregate_array[$r] = array(); // TODO Not used yet |
|
212 | + $this->export_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into export_icon |
|
213 | + $this->export_aggregate_array[$r] = array(); // TODO Not used yet |
|
214 | 214 | $keyforselect = 'warehouse'; |
215 | 215 | $keyforelement = 'warehouse'; |
216 | 216 | $keyforaliasextra = 'extra'; |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | 'p.datec'=>'product', 'p.tms'=>'product', 'p.pmp'=>'product', 'p.cost_price'=>'product', |
258 | 258 | 'ps.reel'=>'stock', |
259 | 259 | 'p.seuil_stock_alerte'=>'product', 'p.barcode'=>'product', 'bt.libelle'=>'c_barcode_type', |
260 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
260 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
261 | 261 | if (isModEnabled('barcode')) { |
262 | 262 | $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p.barcode'=>'product')); |
263 | 263 | } |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | 'p.datec'=>'product', 'p.tms'=>'product', 'p.pmp'=>'product', 'p.cost_price'=>'product', |
317 | 317 | 'pb.rowid'=>'batch', 'pb.batch'=>'batch', 'pb.qty'=>'batch', |
318 | 318 | 'pl.eatby'=>'batch', 'pl.sellby'=>'batch' |
319 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
319 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
320 | 320 | if (isModEnabled('barcode')) { |
321 | 321 | $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p.barcode'=>'product')); |
322 | 322 | } |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | 'e.rowid'=>'warehouse', 'e.ref'=>'warehouse', 'e.description'=>'warehouse', 'e.lieu'=>'warehouse', 'e.address'=>'warehouse', 'e.zip'=>'warehouse', 'e.town'=>'warehouse', |
367 | 367 | 'p.rowid'=>"product", 'p.ref'=>"product", 'p.fk_product_type'=>"product", 'p.label'=>"product", 'p.description'=>"product", 'p.note'=>"product", |
368 | 368 | 'p.price'=>"product", 'p.tva_tx'=>'product', 'p.tosell'=>"product", 'p.tobuy'=>"product", 'p.duration'=>"product", 'p.datec'=>'product', 'p.tms'=>'product' |
369 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
369 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
370 | 370 | if (isModEnabled('productbatch')) { |
371 | 371 | $this->export_fields_array[$r]['sm.batch'] = 'Batch'; |
372 | 372 | $this->export_TypeFields_array[$r]['sm.batch'] = 'Text'; |
@@ -259,17 +259,17 @@ |
||
259 | 259 | $r = 0; |
260 | 260 | // Add here entries to declare new permissions |
261 | 261 | /* BEGIN MODULEBUILDER PERMISSIONS */ |
262 | - $this->rights[$r][0] = $this->numero . sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
262 | + $this->rights[$r][0] = $this->numero.sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
263 | 263 | $this->rights[$r][1] = 'Read Webhooks'; // Permission label |
264 | 264 | $this->rights[$r][4] = 'webhook_target'; |
265 | 265 | $this->rights[$r][5] = 'read'; // In php code, permission will be checked by test if ($user->rights->webhook->webhook_target->read) |
266 | 266 | $r++; |
267 | - $this->rights[$r][0] = $this->numero . sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
267 | + $this->rights[$r][0] = $this->numero.sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
268 | 268 | $this->rights[$r][1] = 'Create/Update Webhooks'; // Permission label |
269 | 269 | $this->rights[$r][4] = 'webhook_target'; |
270 | 270 | $this->rights[$r][5] = 'write'; // In php code, permission will be checked by test if ($user->rights->webhook->webhook_target->write) |
271 | 271 | $r++; |
272 | - $this->rights[$r][0] = $this->numero . sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
272 | + $this->rights[$r][0] = $this->numero.sprintf("%02d", $r + 1); // Permission id (must not be already used) |
|
273 | 273 | $this->rights[$r][1] = 'Delete Webhooks'; // Permission label |
274 | 274 | $this->rights[$r][4] = 'webhook_target'; |
275 | 275 | $this->rights[$r][5] = 'delete'; // In php code, permission will be checked by test if ($user->rights->webhook->webhook_target->delete) |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | 'type'=>'info', |
117 | 117 | ); |
118 | 118 | } else { |
119 | - $keyforprovider = ''; // @FIXME |
|
119 | + $keyforprovider = ''; // @FIXME |
|
120 | 120 | |
121 | 121 | $this->google_id = getDolGlobalString('OAUTH_GOOGLE_ID'); |
122 | 122 | $this->google_secret = getDolGlobalString('OAUTH_GOOGLE_SECRET'); |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | global $conf; |
259 | 259 | $ret = array(); |
260 | 260 | |
261 | - $keyforprovider = ''; // @FIXME |
|
261 | + $keyforprovider = ''; // @FIXME |
|
262 | 262 | |
263 | 263 | // Token storage |
264 | 264 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | 'contentType' => $contenttype, |
401 | 401 | ); |
402 | 402 | |
403 | - $keyforprovider = ''; // @FIXME |
|
403 | + $keyforprovider = ''; // @FIXME |
|
404 | 404 | |
405 | 405 | // Dolibarr Token storage |
406 | 406 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | $error = 0; |
453 | 453 | $html = ''; |
454 | 454 | |
455 | - $keyforprovider = ''; // @FIXME |
|
455 | + $keyforprovider = ''; // @FIXME |
|
456 | 456 | |
457 | 457 | // Token storage |
458 | 458 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | |
77 | 77 | public $multilangs; |
78 | 78 | |
79 | - public $product_type; // type in line |
|
80 | - public $fk_product; // product id in line (when line is linked to a product) |
|
79 | + public $product_type; // type in line |
|
80 | + public $fk_product; // product id in line (when line is linked to a product) |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Description of the line |
@@ -93,12 +93,12 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public $description; |
95 | 95 | |
96 | - public $product; // To store full product object after a fetch_product() on a line |
|
97 | - public $product_ref; // ref in product table |
|
98 | - public $product_label; // label in product table |
|
99 | - public $product_barcode; // barcode in product table |
|
100 | - public $product_desc; // desc in product table |
|
101 | - public $fk_product_type; // type in product table |
|
96 | + public $product; // To store full product object after a fetch_product() on a line |
|
97 | + public $product_ref; // ref in product table |
|
98 | + public $product_label; // label in product table |
|
99 | + public $product_barcode; // barcode in product table |
|
100 | + public $product_desc; // desc in product table |
|
101 | + public $fk_product_type; // type in product table |
|
102 | 102 | |
103 | 103 | public $qty; |
104 | 104 | public $duree; |
@@ -244,7 +244,7 @@ |
||
244 | 244 | |
245 | 245 | $this->id = $obj->rowid; |
246 | 246 | $this->ref = $obj->rowid; |
247 | - $this->date_start = $this->db->jdate($obj->date_start); |
|
247 | + $this->date_start = $this->db->jdate($obj->date_start); |
|
248 | 248 | $this->date_end = $this->db->jdate($obj->date_end); |
249 | 249 | $this->label = $obj->label; |
250 | 250 | $this->statut = $obj->status; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $backtopage = GETPOST('backtopage'); |
49 | 49 | |
50 | 50 | $id = GETPOST('id', 'int'); |
51 | -$element = GETPOST('element', 'alpha'); // 'myobject' (myobject=mymodule) or 'myobject@mymodule' or 'myobject_mysubobject' (myobject=mymodule) |
|
51 | +$element = GETPOST('element', 'alpha'); // 'myobject' (myobject=mymodule) or 'myobject@mymodule' or 'myobject_mysubobject' (myobject=mymodule) |
|
52 | 52 | $field = GETPOST('field', 'alpha'); |
53 | 53 | $value = GETPOST('value', 'int'); |
54 | 54 | $format = 'int'; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | // Load object according to $id and $element |
57 | 57 | $object = fetchObjectByElement($id, $element); |
58 | 58 | if (!is_object($object)) { |
59 | - httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit. |
|
59 | + httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit. |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | $object->fields[$field] = array('type' => $format, 'enabled' => 1); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | if (!empty($user->socid)) { |
75 | 75 | $socid = $user->socid; |
76 | 76 | if (!empty($object->socid) && $socid != $object->socid) { |
77 | - httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
77 | + httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } elseif ($element == 'product' && in_array($field, array('tosell', 'tobuy', 'tobatch'))) { // Special case for products |
86 | 86 | restrictedArea($user, 'produit|service', $object, 'product&product', '', '', 'rowid'); |
87 | 87 | } else { |
88 | - httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit. |
|
88 | + httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit. |
|
89 | 89 | } |
90 | 90 | |
91 | 91 |