@@ -48,9 +48,9 @@ |
||
48 | 48 | final public static function sanitize($string) |
49 | 49 | { |
50 | 50 | $a = 'àáâãäçèéêëìíîïñòóôõöùúûüýÿ' |
51 | - . 'ÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ@!?.:/,;-(){}"= \'\\'; |
|
51 | + . 'ÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ@!?.:/,;-(){}"= \'\\'; |
|
52 | 52 | $b = 'aaaaaceeeeiiiinooooouuuuyy' |
53 | - . 'AAAAACEEEEIIIINOOOOOUUUUY__________________'; |
|
53 | + . 'AAAAACEEEEIIIINOOOOOUUUUY__________________'; |
|
54 | 54 | return strtr(utf8_decode($string), utf8_decode($a), $b); |
55 | 55 | } |
56 | 56 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | CURLOPT_SSL_VERIFYPEER => false, |
68 | 68 | CURLOPT_TIMEOUT => 30, |
69 | 69 | ), |
70 | - ), $params); |
|
70 | + ), $params); |
|
71 | 71 | parent::__construct($params); |
72 | 72 | } |
73 | 73 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function __construct($filePath, $section = null) |
17 | 17 | { |
18 | 18 | $this->filePath = (string)$filePath; |
19 | - $this->section = is_null($section) ? null : (string) $section; |
|
19 | + $this->section = is_null($section) ? null : (string)$section; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -183,7 +183,7 @@ |
||
183 | 183 | */ |
184 | 184 | public function getSetting($setting) |
185 | 185 | { |
186 | - $setting = (string) $setting; |
|
186 | + $setting = (string)$setting; |
|
187 | 187 | return isset($this->settings[$setting]) ? $this->settings[$setting] : null; |
188 | 188 | } |
189 | 189 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if (is_float($value) && ((int)$value === 0)) { |
32 | 32 | return false; |
33 | 33 | } |
34 | - $valueTest = (int) $value; |
|
34 | + $valueTest = (int)$value; |
|
35 | 35 | return ($valueTest === 0) ? is_numeric($value) : ($valueTest == $value); |
36 | 36 | } |
37 | 37 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function format($value) |
29 | 29 | { |
30 | - $value = (string) $value; |
|
30 | + $value = (string)$value; |
|
31 | 31 | if ($value == "") { |
32 | 32 | $this->hasError = true; |
33 | 33 | return ""; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function getValue() |
70 | 70 | { |
71 | - return $this->getAuthorizationType() . ' ' . ($this->getToken() ? : ''); |
|
71 | + return $this->getAuthorizationType() . ' ' . ($this->getToken() ?: ''); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function setFileName($fileName = null) |
45 | 45 | { |
46 | - $this->fileName = is_null($fileName) ? null : (string) $fileName; |
|
46 | + $this->fileName = is_null($fileName) ? null : (string)$fileName; |
|
47 | 47 | return $this; |
48 | 48 | } |
49 | 49 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | const VALUE_OK = '200 OK'; |
16 | 16 | |
17 | - const VALUE_BAD_REQUEST= '400 Bad Request'; |
|
17 | + const VALUE_BAD_REQUEST = '400 Bad Request'; |
|
18 | 18 | const VALUE_UNAUTHORIZED = '401 Unauthorized'; |
19 | 19 | const VALUE_PAYMENT_REQUIRED = '402 Payment Required'; |
20 | 20 | const VALUE_FORBIDDEN = '403 Forbidden'; |