forked from ccxt/ccxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyntax.php
More file actions
22 lines (17 loc) · 782 Bytes
/
syntax.php
File metadata and controls
22 lines (17 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
echo "Checking PHP Syntax...\n\n";
echo "ATTENTION!\n\n";
echo "If it fails, make sure to clean up the code as outlined in CONTRIBUTING.md document.\n\n";
echo "Read these rules very carefully and follow them LITERALLY:\n\n";
echo "- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code\n";
echo "- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#derived-exchange-classes\n";
function on_error ($errno, $message, $file, $line) {
$message = "$message in $file on line $line";
throw new ErrorException ($message, $errno);
}
set_error_handler ('on_error');
include_once 'ccxt.php';
foreach (\ccxt\Exchange::$exchanges as $id) {
$exchange = '\\ccxt\\' . $id;
$exchanges[$id] = new $exchange (array ('verbose' => false));
}