@@ -49,10 +49,10 @@ |
||
| 49 | 49 | parent::createOptions(); |
| 50 | 50 | |
| 51 | 51 | $this->options2->addOptions( |
| 52 | - new SensitiveStringOption('api-key', ''), /* for communicating with wpc api v.1+ */ |
|
| 53 | - new SensitiveStringOption('secret', ''), /* for communicating with wpc api v.0 */ |
|
| 52 | + new SensitiveStringOption('api-key', ''), /* for communicating with wpc api v.1+ */ |
|
| 53 | + new SensitiveStringOption('secret', ''), /* for communicating with wpc api v.0 */ |
|
| 54 | 54 | new SensitiveStringOption('api-url', ''), |
| 55 | - new SensitiveStringOption('url', ''), /* DO NOT USE. Only here to keep the protection */ |
|
| 55 | + new SensitiveStringOption('url', ''), /* DO NOT USE. Only here to keep the protection */ |
|
| 56 | 56 | new IntegerOption('api-version', 2, 0, 2), |
| 57 | 57 | new BooleanOption('crypt-api-key-in-transfer', false) /* new in api v.1 */ |
| 58 | 58 | ); |
@@ -96,10 +96,10 @@ |
||
| 96 | 96 | $actualHash = hash_file("sha256", __DIR__ . '/Binaries/' . $filename); |
| 97 | 97 | if ($expectedHash != $actualHash) { |
| 98 | 98 | throw new \Exception( |
| 99 | - 'Hash for ' . $filename . ' is incorrect! ' . |
|
| 100 | - 'Checksum is: ' . $actualHash . ', ' . |
|
| 101 | - ', but expected: ' . $expectedHash . |
|
| 102 | - '. Did you transfer with FTP, but not in binary mode? ' |
|
| 99 | + 'Hash for ' . $filename . ' is incorrect! ' . |
|
| 100 | + 'Checksum is: ' . $actualHash . ', ' . |
|
| 101 | + ', but expected: ' . $expectedHash . |
|
| 102 | + '. Did you transfer with FTP, but not in binary mode? ' |
|
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | } |