@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | abstract class ModelePDFMyObject extends CommonDocGenerator |
| 40 | 40 | { |
| 41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | 42 | /** |
| 43 | 43 | * Return list of active generation modules |
| 44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 50 | 50 | { |
| 51 | - // phpcs:enable |
|
| 51 | + // phpcs:enable |
|
| 52 | 52 | $type = 'myobject'; |
| 53 | 53 | $list = array(); |
| 54 | 54 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | |
| 93 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 93 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 94 | 94 | /** |
| 95 | 95 | * This is the main function that returns the array of emails |
| 96 | 96 | * |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function add_to_target($mailing_id) |
| 101 | 101 | { |
| 102 | - // phpcs:enable |
|
| 102 | + // phpcs:enable |
|
| 103 | 103 | $target = array(); |
| 104 | 104 | $j = 0; |
| 105 | 105 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | |
| 344 | 344 | |
| 345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 346 | 346 | /** |
| 347 | 347 | * Clean sensible object datas |
| 348 | 348 | * |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | protected function _cleanObjectDatas($object) |
| 353 | 353 | { |
| 354 | - // phpcs:enable |
|
| 354 | + // phpcs:enable |
|
| 355 | 355 | $object = parent::_cleanObjectDatas($object); |
| 356 | 356 | |
| 357 | 357 | unset($object->rowid); |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | return $this->LibStatut($this->status, $mode); |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 982 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 983 | 983 | /** |
| 984 | 984 | * Return the label of a given status |
| 985 | 985 | * |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | */ |
| 990 | 990 | public function LibStatut($status, $mode = 0) |
| 991 | 991 | { |
| 992 | - // phpcs:enable |
|
| 992 | + // phpcs:enable |
|
| 993 | 993 | if (is_null($status)) { |
| 994 | 994 | return ''; |
| 995 | 995 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | return $result['content']; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 170 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 171 | 171 | /** |
| 172 | 172 | * Fonction qui donne les droits redacteurs dans spip |
| 173 | 173 | * |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function add_to_spip($object) |
| 178 | 178 | { |
| 179 | - // phpcs:enable |
|
| 179 | + // phpcs:enable |
|
| 180 | 180 | dol_syslog(get_class($this) . "::add_to_spip"); |
| 181 | 181 | |
| 182 | 182 | if ($this->isSpipEnabled()) { |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | return 0; |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 217 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 218 | 218 | /** |
| 219 | 219 | * Fonction qui enleve les droits redacteurs dans spip |
| 220 | 220 | * |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | public function del_to_spip($object) |
| 225 | 225 | { |
| 226 | - // phpcs:enable |
|
| 226 | + // phpcs:enable |
|
| 227 | 227 | dol_syslog(get_class($this) . "::del_to_spip"); |
| 228 | 228 | |
| 229 | 229 | if ($this->isSpipEnabled()) { |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | return 0; |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 258 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 259 | 259 | /** |
| 260 | 260 | * Indicate if the user is an existing editor in spip |
| 261 | 261 | * |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function is_in_spip($object) |
| 266 | 266 | { |
| 267 | - // phpcs:enable |
|
| 267 | + // phpcs:enable |
|
| 268 | 268 | if ($this->isSpipEnabled()) { |
| 269 | 269 | if ($this->checkSpipConfig()) { |
| 270 | 270 | $mydb = $this->connectSpip(); |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | return -1; |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 304 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 305 | 305 | /** |
| 306 | 306 | * Subscribe an email to all mailing-lists |
| 307 | 307 | * |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | */ |
| 312 | 312 | public function add_to_mailman($object, $listes = '') |
| 313 | 313 | { |
| 314 | - // phpcs:enable |
|
| 314 | + // phpcs:enable |
|
| 315 | 315 | global $conf, $langs, $user; |
| 316 | 316 | |
| 317 | 317 | dol_syslog(get_class($this) . "::add_to_mailman"); |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | return 0; |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 373 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 374 | 374 | /** |
| 375 | 375 | * Unsubscribe an email from all mailing-lists |
| 376 | 376 | * Used when a user is resiliated |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | */ |
| 382 | 382 | public function del_to_mailman($object, $listes = '') |
| 383 | 383 | { |
| 384 | - // phpcs:enable |
|
| 384 | + // phpcs:enable |
|
| 385 | 385 | global $conf, $langs, $user; |
| 386 | 386 | |
| 387 | 387 | dol_syslog(get_class($this) . "::del_to_mailman"); |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - use Luracast\Restler\RestException; |
|
| 21 | + use Luracast\Restler\RestException; |
|
| 22 | 22 | |
| 23 | 23 | require_once constant('DOL_DOCUMENT_ROOT') . '/ticket/class/ticket.class.php'; |
| 24 | 24 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/ticket.lib.php'; |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | return $ticket; |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 468 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 469 | 469 | /** |
| 470 | 470 | * Clean sensible object datas |
| 471 | 471 | * |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | */ |
| 478 | 478 | protected function _cleanObjectDatas($object) |
| 479 | 479 | { |
| 480 | - // phpcs:enable |
|
| 480 | + // phpcs:enable |
|
| 481 | 481 | $object = parent::_cleanObjectDatas($object); |
| 482 | 482 | |
| 483 | 483 | // Other attributes to clean |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | return $this->LibStatut($this->status, $mode); |
| 567 | 567 | } |
| 568 | 568 | |
| 569 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 569 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 570 | 570 | /** |
| 571 | 571 | * Return the status |
| 572 | 572 | * |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | */ |
| 577 | 577 | public function LibStatut($status, $mode = 0) |
| 578 | 578 | { |
| 579 | - // phpcs:enable |
|
| 579 | + // phpcs:enable |
|
| 580 | 580 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 581 | 581 | global $langs; |
| 582 | 582 | //$langs->load("mymodule@mymodule"); |
@@ -1467,7 +1467,7 @@ discard block |
||
| 1467 | 1467 | } |
| 1468 | 1468 | |
| 1469 | 1469 | |
| 1470 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1470 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1471 | 1471 | /** |
| 1472 | 1472 | * Return status label of object |
| 1473 | 1473 | * |
@@ -1479,7 +1479,7 @@ discard block |
||
| 1479 | 1479 | */ |
| 1480 | 1480 | public function LibStatut($status, $mode = 0, $notooltip = 0, $progress = 0) |
| 1481 | 1481 | { |
| 1482 | - // phpcs:enable |
|
| 1482 | + // phpcs:enable |
|
| 1483 | 1483 | global $langs, $hookmanager; |
| 1484 | 1484 | |
| 1485 | 1485 | $labelStatus = (isset($status) && !empty($this->labelStatus[$status])) ? $this->labelStatus[$status] : ''; |
@@ -2433,7 +2433,7 @@ discard block |
||
| 2433 | 2433 | } |
| 2434 | 2434 | |
| 2435 | 2435 | |
| 2436 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2436 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2437 | 2437 | /** |
| 2438 | 2438 | * Return if at least one photo is available |
| 2439 | 2439 | * |
@@ -2442,7 +2442,7 @@ discard block |
||
| 2442 | 2442 | */ |
| 2443 | 2443 | public function is_photo_available($sdir) |
| 2444 | 2444 | { |
| 2445 | - // phpcs:enable |
|
| 2445 | + // phpcs:enable |
|
| 2446 | 2446 | include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php'; |
| 2447 | 2447 | |
| 2448 | 2448 | global $conf; |
@@ -3059,7 +3059,7 @@ discard block |
||
| 3059 | 3059 | return $is_sent; |
| 3060 | 3060 | } |
| 3061 | 3061 | |
| 3062 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3062 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3063 | 3063 | /** |
| 3064 | 3064 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 3065 | 3065 | * |
@@ -3069,7 +3069,7 @@ discard block |
||
| 3069 | 3069 | */ |
| 3070 | 3070 | public function load_board($user, $mode) |
| 3071 | 3071 | { |
| 3072 | - // phpcs:enable |
|
| 3072 | + // phpcs:enable |
|
| 3073 | 3073 | global $user, $langs; |
| 3074 | 3074 | |
| 3075 | 3075 | $now = dol_now(); |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | '', |
| 91 | 91 | array( |
| 92 | 92 | 'dolibarrkey' => array('name' => 'dolibarrkey', 'type' => 'xsd:string'), |
| 93 | - 'sourceapplication' => array('name' => 'sourceapplication', 'type' => 'xsd:string'), |
|
| 94 | - 'login' => array('name' => 'login', 'type' => 'xsd:string'), |
|
| 93 | + 'sourceapplication' => array('name' => 'sourceapplication', 'type' => 'xsd:string'), |
|
| 94 | + 'login' => array('name' => 'login', 'type' => 'xsd:string'), |
|
| 95 | 95 | 'password' => array('name' => 'password', 'type' => 'xsd:string'), |
| 96 | 96 | 'entity' => array('name' => 'entity', 'type' => 'xsd:string') |
| 97 | 97 | ) |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | 'amount' => array('name' => 'amount', 'type' => 'xsd:double'), |
| 121 | 121 | 'num_payment' => array('name' => 'num_payment', 'type' => 'xsd:string'), |
| 122 | 122 | 'thirdparty_id' => array('name' => 'thirdparty_id', 'type' => 'xsd:int'), |
| 123 | - 'bank_account' => array('name' => 'bank_account', 'type' => 'xsd:int'), |
|
| 124 | - 'payment_mode_id' => array('name' => 'payment_mode_id', 'type' => 'xsd:int'), |
|
| 125 | - 'invoice_id' => array('name' => 'invoice_id', 'type' => 'xsd:int'), |
|
| 126 | - 'int_label' => array('name' => 'int_label', 'type' => 'xsd:string'), |
|
| 127 | - 'emitter' => array('name' => 'emitter', 'type' => 'xsd:string'), |
|
| 128 | - 'bank_source' => array('name' => 'bank_source', 'type' => 'xsd:string'), |
|
| 123 | + 'bank_account' => array('name' => 'bank_account', 'type' => 'xsd:int'), |
|
| 124 | + 'payment_mode_id' => array('name' => 'payment_mode_id', 'type' => 'xsd:int'), |
|
| 125 | + 'invoice_id' => array('name' => 'invoice_id', 'type' => 'xsd:int'), |
|
| 126 | + 'int_label' => array('name' => 'int_label', 'type' => 'xsd:string'), |
|
| 127 | + 'emitter' => array('name' => 'emitter', 'type' => 'xsd:string'), |
|
| 128 | + 'bank_source' => array('name' => 'bank_source', 'type' => 'xsd:string'), |
|
| 129 | 129 | ) |
| 130 | 130 | ); |
| 131 | 131 | |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $now = dol_now(); |
| 166 | 166 | |
| 167 | 167 | dol_syslog("Function: createPayment login=" . $authentication['login'] . " id=" . $payment->id . |
| 168 | - ", ref=" . $payment->ref . ", ref_ext=" . $payment->ref_ext); |
|
| 168 | + ", ref=" . $payment->ref . ", ref_ext=" . $payment->ref_ext); |
|
| 169 | 169 | |
| 170 | 170 | if ($authentication['entity']) { |
| 171 | 171 | $conf->entity = $authentication['entity']; |