@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | |
| 53 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 53 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 54 | 54 | /** |
| 55 | 55 | * Show a combo list with contracts qualified for a third party |
| 56 | 56 | * |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function select_contract($socid = -1, $selected = 0, $htmlname = 'contrattid', $maxlength = 16, $showempty = 1, $showRef = 0, $noouput = 0, $morecss = 'minwidth150') |
| 68 | 68 | { |
| 69 | - // phpcs:enable |
|
| 69 | + // phpcs:enable |
|
| 70 | 70 | global $user, $conf, $langs; |
| 71 | 71 | |
| 72 | 72 | $hideunselectables = false; |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $this->db = $db; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 63 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 64 | 64 | /** |
| 65 | 65 | * Scan a file with antivirus. |
| 66 | 66 | * This function runs the command defined in setup. This antivirus command must return 0 if OK. |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function dol_avscan_file($file) |
| 73 | 73 | { |
| 74 | - // phpcs:enable |
|
| 74 | + // phpcs:enable |
|
| 75 | 75 | global $conf; |
| 76 | 76 | |
| 77 | 77 | if (preg_match('/\.virus$/i', $file)) { |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | return $this->LibStatut($this->active, $mode); |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 317 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 318 | 318 | /** |
| 319 | 319 | * Return the label of a given status |
| 320 | 320 | * |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | class lessc_formatter_lessjs extends lessc_formatter_classic |
| 64 | 64 | { |
| 65 | - public $disableSingle = true; |
|
| 66 | - public $breakSelectors = true; |
|
| 67 | - public $assignSeparator = ": "; |
|
| 68 | - public $selectorSeparator = ","; |
|
| 65 | + public $disableSingle = true; |
|
| 66 | + public $breakSelectors = true; |
|
| 67 | + public $assignSeparator = ": "; |
|
| 68 | + public $selectorSeparator = ","; |
|
| 69 | 69 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $this->liste = array_merge($array_start, $array_new, $array_end); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 106 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 107 | 107 | /** |
| 108 | 108 | * Remove a menu entry from this->liste |
| 109 | 109 | * |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function remove_last() |
| 113 | 113 | { |
| 114 | - // phpcs:enable |
|
| 114 | + // phpcs:enable |
|
| 115 | 115 | if (count($this->liste) > 1) { |
| 116 | 116 | array_pop($this->liste); |
| 117 | 117 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 49 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 50 | 50 | /** |
| 51 | 51 | * SetOpenIDServer |
| 52 | 52 | * |
@@ -55,11 +55,11 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function SetOpenIDServer($a) |
| 57 | 57 | { |
| 58 | - // phpcs:enable |
|
| 58 | + // phpcs:enable |
|
| 59 | 59 | $this->URLs['openid_server'] = $a; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 62 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 63 | 63 | /** |
| 64 | 64 | * SetOpenIDServer |
| 65 | 65 | * |
@@ -68,11 +68,11 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | public function SetTrustRoot($a) |
| 70 | 70 | { |
| 71 | - // phpcs:enable |
|
| 71 | + // phpcs:enable |
|
| 72 | 72 | $this->URLs['trust_root'] = $a; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 75 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 76 | 76 | /** |
| 77 | 77 | * SetOpenIDServer |
| 78 | 78 | * |
@@ -81,11 +81,11 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function SetCancelURL($a) |
| 83 | 83 | { |
| 84 | - // phpcs:enable |
|
| 84 | + // phpcs:enable |
|
| 85 | 85 | $this->URLs['cancel'] = $a; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 88 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 89 | 89 | /** |
| 90 | 90 | * SetApprovedURL |
| 91 | 91 | * |
@@ -94,11 +94,11 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function SetApprovedURL($a) |
| 96 | 96 | { |
| 97 | - // phpcs:enable |
|
| 97 | + // phpcs:enable |
|
| 98 | 98 | $this->URLs['approved'] = $a; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 101 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 102 | 102 | /** |
| 103 | 103 | * SetRequiredFields |
| 104 | 104 | * |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function SetRequiredFields($a) |
| 109 | 109 | { |
| 110 | - // phpcs:enable |
|
| 110 | + // phpcs:enable |
|
| 111 | 111 | if (is_array($a)) { |
| 112 | 112 | $this->fields['required'] = $a; |
| 113 | 113 | } else { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 118 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 119 | 119 | /** |
| 120 | 120 | * SetOptionalFields |
| 121 | 121 | * |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function SetOptionalFields($a) |
| 126 | 126 | { |
| 127 | - // phpcs:enable |
|
| 127 | + // phpcs:enable |
|
| 128 | 128 | if (is_array($a)) { |
| 129 | 129 | $this->fields['optional'] = $a; |
| 130 | 130 | } else { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 135 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 136 | 136 | /** |
| 137 | 137 | * SetIdentity |
| 138 | 138 | * |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function SetIdentity($a) |
| 143 | 143 | { |
| 144 | - // phpcs:enable |
|
| 144 | + // phpcs:enable |
|
| 145 | 145 | // Set Identity URL |
| 146 | 146 | if ( |
| 147 | 147 | (stripos($a, 'http://') === false) |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $this->openid_url_identity = $a; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 168 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 169 | 169 | /** |
| 170 | 170 | * GetIdentity |
| 171 | 171 | * |
@@ -173,12 +173,12 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | public function GetIdentity() |
| 175 | 175 | { |
| 176 | - // phpcs:enable |
|
| 176 | + // phpcs:enable |
|
| 177 | 177 | // Get Identity |
| 178 | 178 | return $this->openid_url_identity; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 181 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 182 | 182 | /** |
| 183 | 183 | * SetOpenIDServer |
| 184 | 184 | * |
@@ -186,12 +186,12 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | public function GetError() |
| 188 | 188 | { |
| 189 | - // phpcs:enable |
|
| 189 | + // phpcs:enable |
|
| 190 | 190 | $e = $this->error; |
| 191 | 191 | return array('code' => $e[0], 'description' => $e[1]); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 194 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 195 | 195 | /** |
| 196 | 196 | * ErrorStore |
| 197 | 197 | * |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function ErrorStore($code, $desc = null) |
| 203 | 203 | { |
| 204 | - // phpcs:enable |
|
| 204 | + // phpcs:enable |
|
| 205 | 205 | $errs = array(); |
| 206 | 206 | $errs['OPENID_NOSERVERSFOUND'] = 'Cannot find OpenID Server TAG on Identity page.'; |
| 207 | 207 | if ($desc == null) { |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $this->error = array($code, $desc); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 213 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 214 | 214 | /** |
| 215 | 215 | * IsError |
| 216 | 216 | * |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | public function IsError() |
| 220 | 220 | { |
| 221 | - // phpcs:enable |
|
| 221 | + // phpcs:enable |
|
| 222 | 222 | if (count($this->error) > 0) { |
| 223 | 223 | return true; |
| 224 | 224 | } else { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | return $r; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 249 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 250 | 250 | /** |
| 251 | 251 | * OpenID_Standarize |
| 252 | 252 | * |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | public function OpenID_Standarize($openid_identity = null) |
| 257 | 257 | { |
| 258 | - // phpcs:enable |
|
| 258 | + // phpcs:enable |
|
| 259 | 259 | if ($openid_identity === null) { |
| 260 | 260 | $openid_identity = $this->openid_url_identity; |
| 261 | 261 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | return $query; |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 297 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 298 | 298 | /** |
| 299 | 299 | * FSOCK_Request |
| 300 | 300 | * |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | */ |
| 306 | 306 | public function FSOCK_Request($url, $method = "GET", $params = "") |
| 307 | 307 | { |
| 308 | - // phpcs:enable |
|
| 308 | + // phpcs:enable |
|
| 309 | 309 | $fp = fsockopen("ssl://www.myopenid.com", 443, $errno, $errstr, 3); // Connection timeout is 3 seconds |
| 310 | 310 | if (!$fp) { |
| 311 | 311 | $this->ErrorStore('OPENID_SOCKETERROR', $errstr); |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | } |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 331 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 332 | 332 | /** |
| 333 | 333 | * HTML2OpenIDServer |
| 334 | 334 | * |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | */ |
| 338 | 338 | public function HTML2OpenIDServer($content) |
| 339 | 339 | { |
| 340 | - // phpcs:enable |
|
| 340 | + // phpcs:enable |
|
| 341 | 341 | $get = array(); |
| 342 | 342 | |
| 343 | 343 | $matches1 = array(); |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | |
| 362 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 362 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 363 | 363 | /** |
| 364 | 364 | * Get openid server |
| 365 | 365 | * |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | public function GetOpenIDServer($url = '') |
| 370 | 370 | { |
| 371 | - // phpcs:enable |
|
| 371 | + // phpcs:enable |
|
| 372 | 372 | global $conf; |
| 373 | 373 | |
| 374 | 374 | include_once DOL_DOCUMENT_ROOT . '/core/lib/geturl.lib.php'; |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | return $servers[0]; |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 396 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 397 | 397 | /** |
| 398 | 398 | * GetRedirectURL |
| 399 | 399 | * |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | */ |
| 402 | 402 | public function GetRedirectURL() |
| 403 | 403 | { |
| 404 | - // phpcs:enable |
|
| 404 | + // phpcs:enable |
|
| 405 | 405 | $params = array(); |
| 406 | 406 | $params['openid.return_to'] = urlencode($this->URLs['approved']); |
| 407 | 407 | $params['openid.mode'] = 'checkid_setup'; |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | return $this->URLs['openid_server'] . "?" . $this->array2url($params); |
| 424 | 424 | } |
| 425 | 425 | |
| 426 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 426 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 427 | 427 | /** |
| 428 | 428 | * Redirect |
| 429 | 429 | * |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | */ |
| 432 | 432 | public function Redirect() |
| 433 | 433 | { |
| 434 | - // phpcs:enable |
|
| 434 | + // phpcs:enable |
|
| 435 | 435 | $redirect_to = $this->GetRedirectURL(); |
| 436 | 436 | if (headers_sent()) { // Use JavaScript to redirect if content has been previously sent (not recommended, but safe) |
| 437 | 437 | echo '<script nonce="' . getNonce() . '" type="text/javascript">window.location=\''; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | return $select_encoder; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 114 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 115 | 115 | /** |
| 116 | 116 | * Print form to select type of barcode |
| 117 | 117 | * |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function select_barcode_type($selected = 0, $htmlname = 'barcodetype_id', $useempty = 0) |
| 125 | 125 | { |
| 126 | - // phpcs:enable |
|
| 126 | + // phpcs:enable |
|
| 127 | 127 | print $this->selectBarcodeType($selected, $htmlname, $useempty); |
| 128 | 128 | } |
| 129 | 129 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | return $out; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 183 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 184 | 184 | /** |
| 185 | 185 | * Show form to select type of barcode |
| 186 | 186 | * |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | public function form_barcode_type($page, $selected = 0, $htmlname = 'barcodetype_id') |
| 194 | 194 | { |
| 195 | - // phpcs:enable |
|
| 195 | + // phpcs:enable |
|
| 196 | 196 | print $this->formBarcodeType($page, $selected, $htmlname); |
| 197 | 197 | } |
| 198 | 198 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | |
| 54 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 54 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 55 | 55 | /** |
| 56 | 56 | * Display On Off selector |
| 57 | 57 | * |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function select_typejob($htmlname, $selected = 0, $readonly = 0) |
| 64 | 64 | { |
| 65 | - // phpcs:enable |
|
| 65 | + // phpcs:enable |
|
| 66 | 66 | global $langs; |
| 67 | 67 | |
| 68 | 68 | $langs->load('cron'); |
@@ -62,15 +62,15 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | class lessc_formatter_compressed extends lessc_formatter_classic |
| 64 | 64 | { |
| 65 | - public $disableSingle = true; |
|
| 66 | - public $open = "{"; |
|
| 67 | - public $selectorSeparator = ","; |
|
| 68 | - public $assignSeparator = ":"; |
|
| 69 | - public $break = ""; |
|
| 70 | - public $compressColors = true; |
|
| 65 | + public $disableSingle = true; |
|
| 66 | + public $open = "{"; |
|
| 67 | + public $selectorSeparator = ","; |
|
| 68 | + public $assignSeparator = ":"; |
|
| 69 | + public $break = ""; |
|
| 70 | + public $compressColors = true; |
|
| 71 | 71 | |
| 72 | - public function indentStr($n = 0) |
|
| 73 | - { |
|
| 74 | - return ""; |
|
| 75 | - } |
|
| 72 | + public function indentStr($n = 0) |
|
| 73 | + { |
|
| 74 | + return ""; |
|
| 75 | + } |
|
| 76 | 76 | } |