@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | if ($isBasicAuth) { |
269 | 269 | $this->apikey = $key; |
270 | 270 | $this->apisecret = $secret; |
271 | - } else { |
|
271 | + }else { |
|
272 | 272 | $this->apitoken = $key; |
273 | 273 | $this->version = Config::SMS_VERSION; |
274 | 274 | } |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | $this->version = $options['version']; |
382 | 382 | } |
383 | 383 | |
384 | - $this->url = (string)($options['url'] ?? Config::MAIN_URL); |
|
384 | + $this->url = (string) ($options['url'] ?? Config::MAIN_URL); |
|
385 | 385 | $this->secure = $options['secured'] ?? Config::SECURED; |
386 | 386 | $this->call = $options['call'] ?? true; |
387 | 387 | $this->changed = true; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->guzzleClient = new GuzzleClient( |
96 | 96 | ['defaults' => [ |
97 | 97 | 'headers' => [ |
98 | - 'user-agent' => Config::USER_AGENT . PHP_VERSION.'/' . Client::WRAPPER_VERSION, |
|
98 | + 'user-agent' => Config::USER_AGENT.PHP_VERSION.'/'.Client::WRAPPER_VERSION, |
|
99 | 99 | ], |
100 | 100 | ] |
101 | 101 | ] |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | if ($authArgsCount > 1) { |
126 | 126 | $payload['auth'] = $this->auth; |
127 | - } else { |
|
127 | + }else { |
|
128 | 128 | $headers['Authorization'] = 'Bearer '.$this->auth[0]; |
129 | 129 | } |
130 | 130 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | */ |
234 | 234 | public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface |
235 | 235 | { |
236 | - return $this->guzzleClient->sendAsync($request,$options); |
|
236 | + return $this->guzzleClient->sendAsync($request, $options); |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | /** |
@@ -7,6 +7,6 @@ |
||
7 | 7 | exit(1); |
8 | 8 | } |
9 | 9 | |
10 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
10 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
11 | 11 | |
12 | 12 | return ComposerAutoloaderInitcadbc94d38532d34e4f9ddbab65196b7::getLoader(); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | $issues = array(); |
6 | 6 | |
7 | 7 | if (!(PHP_VERSION_ID >= 70300)) { |
8 | - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running ' . PHP_VERSION . '.'; |
|
8 | + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running '.PHP_VERSION.'.'; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | if ($issues) { |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | } |
15 | 15 | if (!ini_get('display_errors')) { |
16 | 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); |
|
17 | + fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL); |
|
18 | 18 | } elseif (!headers_sent()) { |
19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; |
|
19 | + echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | trigger_error( |
23 | - 'Composer detected issues in your platform: ' . implode(' ', $issues), |
|
23 | + 'Composer detected issues in your platform: '.implode(' ', $issues), |
|
24 | 24 | E_USER_ERROR |
25 | 25 | ); |
26 | 26 | } |
@@ -6,15 +6,15 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'SendGrid\\Stats\\' => array($vendorDir . '/sendgrid/sendgrid/lib/stats'), |
|
10 | - 'SendGrid\\Mail\\' => array($vendorDir . '/sendgrid/sendgrid/lib/mail'), |
|
11 | - 'SendGrid\\Helper\\' => array($vendorDir . '/sendgrid/sendgrid/lib/helper'), |
|
12 | - 'SendGrid\\EventWebhook\\' => array($vendorDir . '/sendgrid/sendgrid/lib/eventwebhook'), |
|
13 | - 'SendGrid\\Contacts\\' => array($vendorDir . '/sendgrid/sendgrid/lib/contacts'), |
|
14 | - 'SendGrid\\' => array($vendorDir . '/sendgrid/php-http-client/lib'), |
|
15 | - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), |
|
16 | - 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), |
|
17 | - 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), |
|
18 | - 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), |
|
19 | - 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), |
|
9 | + 'SendGrid\\Stats\\' => array($vendorDir.'/sendgrid/sendgrid/lib/stats'), |
|
10 | + 'SendGrid\\Mail\\' => array($vendorDir.'/sendgrid/sendgrid/lib/mail'), |
|
11 | + 'SendGrid\\Helper\\' => array($vendorDir.'/sendgrid/sendgrid/lib/helper'), |
|
12 | + 'SendGrid\\EventWebhook\\' => array($vendorDir.'/sendgrid/sendgrid/lib/eventwebhook'), |
|
13 | + 'SendGrid\\Contacts\\' => array($vendorDir.'/sendgrid/sendgrid/lib/contacts'), |
|
14 | + 'SendGrid\\' => array($vendorDir.'/sendgrid/php-http-client/lib'), |
|
15 | + 'Psr\\Http\\Message\\' => array($vendorDir.'/psr/http-factory/src', $vendorDir.'/psr/http-message/src'), |
|
16 | + 'Psr\\Http\\Client\\' => array($vendorDir.'/psr/http-client/src'), |
|
17 | + 'GuzzleHttp\\Psr7\\' => array($vendorDir.'/guzzlehttp/psr7/src'), |
|
18 | + 'GuzzleHttp\\Promise\\' => array($vendorDir.'/guzzlehttp/promises/src'), |
|
19 | + 'GuzzleHttp\\' => array($vendorDir.'/guzzlehttp/guzzle/src'), |
|
20 | 20 | ); |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Mailjet' => array($vendorDir . '/mailjet/mailjet-apiv3-php/src'), |
|
9 | + 'Mailjet' => array($vendorDir.'/mailjet/mailjet-apiv3-php/src'), |
|
10 | 10 | ); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | 'version' => 'dev-master', |
6 | 6 | 'reference' => '8247dda142566f0cc760d2d6e7e87650ef916f3c', |
7 | 7 | 'type' => 'library', |
8 | - 'install_path' => __DIR__ . '/../../', |
|
8 | + 'install_path' => __DIR__.'/../../', |
|
9 | 9 | 'aliases' => array(), |
10 | 10 | 'dev' => true, |
11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'version' => 'dev-master', |
16 | 16 | 'reference' => '8247dda142566f0cc760d2d6e7e87650ef916f3c', |
17 | 17 | 'type' => 'library', |
18 | - 'install_path' => __DIR__ . '/../../', |
|
18 | + 'install_path' => __DIR__.'/../../', |
|
19 | 19 | 'aliases' => array(), |
20 | 20 | 'dev_requirement' => false, |
21 | 21 | ), |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'version' => '7.4.5.0', |
25 | 25 | 'reference' => '1dd98b0564cb3f6bd16ce683cb755f94c10fbd82', |
26 | 26 | 'type' => 'library', |
27 | - 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', |
|
27 | + 'install_path' => __DIR__.'/../guzzlehttp/guzzle', |
|
28 | 28 | 'aliases' => array(), |
29 | 29 | 'dev_requirement' => false, |
30 | 30 | ), |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | 'version' => '1.5.1.0', |
34 | 34 | 'reference' => 'fe752aedc9fd8fcca3fe7ad05d419d32998a06da', |
35 | 35 | 'type' => 'library', |
36 | - 'install_path' => __DIR__ . '/../guzzlehttp/promises', |
|
36 | + 'install_path' => __DIR__.'/../guzzlehttp/promises', |
|
37 | 37 | 'aliases' => array(), |
38 | 38 | 'dev_requirement' => false, |
39 | 39 | ), |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'version' => '2.4.0.0', |
43 | 43 | 'reference' => '13388f00956b1503577598873fffb5ae994b5737', |
44 | 44 | 'type' => 'library', |
45 | - 'install_path' => __DIR__ . '/../guzzlehttp/psr7', |
|
45 | + 'install_path' => __DIR__.'/../guzzlehttp/psr7', |
|
46 | 46 | 'aliases' => array(), |
47 | 47 | 'dev_requirement' => false, |
48 | 48 | ), |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'version' => '1.5.7.0', |
52 | 52 | 'reference' => '414650b079dcec86ada225599e73092177e2d8e5', |
53 | 53 | 'type' => 'library', |
54 | - 'install_path' => __DIR__ . '/../mailjet/mailjet-apiv3-php', |
|
54 | + 'install_path' => __DIR__.'/../mailjet/mailjet-apiv3-php', |
|
55 | 55 | 'aliases' => array(), |
56 | 56 | 'dev_requirement' => false, |
57 | 57 | ), |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'version' => '1.0.1.0', |
61 | 61 | 'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621', |
62 | 62 | 'type' => 'library', |
63 | - 'install_path' => __DIR__ . '/../psr/http-client', |
|
63 | + 'install_path' => __DIR__.'/../psr/http-client', |
|
64 | 64 | 'aliases' => array(), |
65 | 65 | 'dev_requirement' => false, |
66 | 66 | ), |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'version' => '1.0.1.0', |
76 | 76 | 'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be', |
77 | 77 | 'type' => 'library', |
78 | - 'install_path' => __DIR__ . '/../psr/http-factory', |
|
78 | + 'install_path' => __DIR__.'/../psr/http-factory', |
|
79 | 79 | 'aliases' => array(), |
80 | 80 | 'dev_requirement' => false, |
81 | 81 | ), |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'version' => '1.0.1.0', |
91 | 91 | 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363', |
92 | 92 | 'type' => 'library', |
93 | - 'install_path' => __DIR__ . '/../psr/http-message', |
|
93 | + 'install_path' => __DIR__.'/../psr/http-message', |
|
94 | 94 | 'aliases' => array(), |
95 | 95 | 'dev_requirement' => false, |
96 | 96 | ), |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'version' => '3.0.3.0', |
106 | 106 | 'reference' => '120b605dfeb996808c31b6477290a714d356e822', |
107 | 107 | 'type' => 'library', |
108 | - 'install_path' => __DIR__ . '/../ralouphie/getallheaders', |
|
108 | + 'install_path' => __DIR__.'/../ralouphie/getallheaders', |
|
109 | 109 | 'aliases' => array(), |
110 | 110 | 'dev_requirement' => false, |
111 | 111 | ), |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'version' => '3.14.4.0', |
115 | 115 | 'reference' => '6d589564522be290c7d7c18e51bcd8b03aeaf0b6', |
116 | 116 | 'type' => 'library', |
117 | - 'install_path' => __DIR__ . '/../sendgrid/php-http-client', |
|
117 | + 'install_path' => __DIR__.'/../sendgrid/php-http-client', |
|
118 | 118 | 'aliases' => array(), |
119 | 119 | 'dev_requirement' => false, |
120 | 120 | ), |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | 'version' => '8.0.0.0', |
124 | 124 | 'reference' => '874acb3660c05d7f977095821052d583de9e9800', |
125 | 125 | 'type' => 'library', |
126 | - 'install_path' => __DIR__ . '/../sendgrid/sendgrid', |
|
126 | + 'install_path' => __DIR__.'/../sendgrid/sendgrid', |
|
127 | 127 | 'aliases' => array(), |
128 | 128 | 'dev_requirement' => false, |
129 | 129 | ), |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | 'version' => '0.0.5.0', |
139 | 139 | 'reference' => '484bedac47bac4012dc73df91da221f0a66845cb', |
140 | 140 | 'type' => 'library', |
141 | - 'install_path' => __DIR__ . '/../starkbank/ecdsa', |
|
141 | + 'install_path' => __DIR__.'/../starkbank/ecdsa', |
|
142 | 142 | 'aliases' => array(), |
143 | 143 | 'dev_requirement' => false, |
144 | 144 | ), |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | 'version' => '2.5.2.0', |
148 | 148 | 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66', |
149 | 149 | 'type' => 'library', |
150 | - 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', |
|
150 | + 'install_path' => __DIR__.'/../symfony/deprecation-contracts', |
|
151 | 151 | 'aliases' => array(), |
152 | 152 | 'dev_requirement' => false, |
153 | 153 | ), |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | return self::$loader; |
23 | 23 | } |
24 | 24 | |
25 | - require __DIR__ . '/platform_check.php'; |
|
25 | + require __DIR__.'/platform_check.php'; |
|
26 | 26 | |
27 | 27 | spl_autoload_register(array('ComposerAutoloaderInitcadbc94d38532d34e4f9ddbab65196b7', 'loadClassLoader'), true, true); |
28 | 28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
29 | 29 | spl_autoload_unregister(array('ComposerAutoloaderInitcadbc94d38532d34e4f9ddbab65196b7', 'loadClassLoader')); |
30 | 30 | |
31 | - require __DIR__ . '/autoload_static.php'; |
|
31 | + require __DIR__.'/autoload_static.php'; |
|
32 | 32 | call_user_func(\Composer\Autoload\ComposerStaticInitcadbc94d38532d34e4f9ddbab65196b7::getInitializer($loader)); |
33 | 33 | |
34 | 34 | $loader->register(true); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | { |
167 | 167 | if ($this->classMap) { |
168 | 168 | $this->classMap = array_merge($this->classMap, $classMap); |
169 | - } else { |
|
169 | + }else { |
|
170 | 170 | $this->classMap = $classMap; |
171 | 171 | } |
172 | 172 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | (array) $paths, |
190 | 190 | $this->fallbackDirsPsr0 |
191 | 191 | ); |
192 | - } else { |
|
192 | + }else { |
|
193 | 193 | $this->fallbackDirsPsr0 = array_merge( |
194 | 194 | $this->fallbackDirsPsr0, |
195 | 195 | (array) $paths |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | (array) $paths, |
211 | 211 | $this->prefixesPsr0[$first][$prefix] |
212 | 212 | ); |
213 | - } else { |
|
213 | + }else { |
|
214 | 214 | $this->prefixesPsr0[$first][$prefix] = array_merge( |
215 | 215 | $this->prefixesPsr0[$first][$prefix], |
216 | 216 | (array) $paths |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | (array) $paths, |
240 | 240 | $this->fallbackDirsPsr4 |
241 | 241 | ); |
242 | - } else { |
|
242 | + }else { |
|
243 | 243 | $this->fallbackDirsPsr4 = array_merge( |
244 | 244 | $this->fallbackDirsPsr4, |
245 | 245 | (array) $paths |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | (array) $paths, |
260 | 260 | $this->prefixDirsPsr4[$prefix] |
261 | 261 | ); |
262 | - } else { |
|
262 | + }else { |
|
263 | 263 | // Append directories for an already registered namespace. |
264 | 264 | $this->prefixDirsPsr4[$prefix] = array_merge( |
265 | 265 | $this->prefixDirsPsr4[$prefix], |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | { |
282 | 282 | if (!$prefix) { |
283 | 283 | $this->fallbackDirsPsr0 = (array) $paths; |
284 | - } else { |
|
284 | + }else { |
|
285 | 285 | $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; |
286 | 286 | } |
287 | 287 | } |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | { |
302 | 302 | if (!$prefix) { |
303 | 303 | $this->fallbackDirsPsr4 = (array) $paths; |
304 | - } else { |
|
304 | + }else { |
|
305 | 305 | $length = strlen($prefix); |
306 | 306 | if ('\\' !== $prefix[$length - 1]) { |
307 | 307 | throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | |
397 | 397 | if ($prepend) { |
398 | 398 | self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; |
399 | - } else { |
|
399 | + }else { |
|
400 | 400 | unset(self::$registeredLoaders[$this->vendorDir]); |
401 | 401 | self::$registeredLoaders[$this->vendorDir] = $this; |
402 | 402 | } |
@@ -493,18 +493,18 @@ discard block |
||
493 | 493 | private function findFileWithExtension($class, $ext) |
494 | 494 | { |
495 | 495 | // PSR-4 lookup |
496 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
496 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
497 | 497 | |
498 | 498 | $first = $class[0]; |
499 | 499 | if (isset($this->prefixLengthsPsr4[$first])) { |
500 | 500 | $subPath = $class; |
501 | 501 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
502 | 502 | $subPath = substr($subPath, 0, $lastPos); |
503 | - $search = $subPath . '\\'; |
|
503 | + $search = $subPath.'\\'; |
|
504 | 504 | if (isset($this->prefixDirsPsr4[$search])) { |
505 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
505 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
506 | 506 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
507 | - if (file_exists($file = $dir . $pathEnd)) { |
|
507 | + if (file_exists($file = $dir.$pathEnd)) { |
|
508 | 508 | return $file; |
509 | 509 | } |
510 | 510 | } |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | |
515 | 515 | // PSR-4 fallback dirs |
516 | 516 | foreach ($this->fallbackDirsPsr4 as $dir) { |
517 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
517 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
518 | 518 | return $file; |
519 | 519 | } |
520 | 520 | } |
@@ -524,16 +524,16 @@ discard block |
||
524 | 524 | // namespaced class name |
525 | 525 | $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) |
526 | 526 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
527 | - } else { |
|
527 | + }else { |
|
528 | 528 | // PEAR-like class name |
529 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
529 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
530 | 530 | } |
531 | 531 | |
532 | 532 | if (isset($this->prefixesPsr0[$first])) { |
533 | 533 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
534 | 534 | if (0 === strpos($class, $prefix)) { |
535 | 535 | foreach ($dirs as $dir) { |
536 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
536 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
537 | 537 | return $file; |
538 | 538 | } |
539 | 539 | } |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | |
544 | 544 | // PSR-0 fallback dirs |
545 | 545 | foreach ($this->fallbackDirsPsr0 as $dir) { |
546 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
546 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
547 | 547 | return $file; |
548 | 548 | } |
549 | 549 | } |