22
33use TweakPHP \Client \Loader ;
44
5- require __DIR__ . '/vendor/autoload.php ' ;
5+ require __DIR__ . '/vendor/autoload.php ' ;
66
77$ arguments = $ argv ;
88
99if (count ($ arguments ) < 3 ) {
10- echo 'Invalid arguments ' . PHP_EOL ;
10+ echo 'Invalid arguments ' . PHP_EOL ;
1111 exit (1 );
1212}
1313
@@ -23,7 +23,7 @@ function dd(...$args)
2323$ loader = Loader::load ($ arguments [1 ]);
2424
2525if ($ loader === null ) {
26- echo 'Invalid path ' . PHP_EOL ;
26+ echo 'Invalid path ' . PHP_EOL ;
2727 exit (1 );
2828}
2929
@@ -34,8 +34,8 @@ function dd(...$args)
3434 'execute ' ,
3535];
3636
37- if (!in_array ($ arguments [2 ], $ supportedCommands )) {
38- echo 'Invalid command ' . PHP_EOL ;
37+ if (! in_array ($ arguments [2 ], $ supportedCommands )) {
38+ echo 'Invalid command ' . PHP_EOL ;
3939 exit (1 );
4040}
4141
@@ -46,13 +46,13 @@ function dd(...$args)
4646 'version ' => $ loader ->version (),
4747 'php_version ' => phpversion (),
4848 ]);
49- echo $ info . PHP_EOL ;
49+ echo $ info. PHP_EOL ;
5050 break ;
5151 case 'execute ' :
5252 if (count ($ arguments ) < 4 ) {
53- echo 'Invalid arguments ' . PHP_EOL ;
53+ echo 'Invalid arguments ' . PHP_EOL ;
5454 exit (1 );
5555 }
56- echo $ loader ->execute (base64_decode ($ arguments [3 ])) . PHP_EOL ;
56+ echo $ loader ->execute (base64_decode ($ arguments [3 ])). PHP_EOL ;
5757 break ;
58- }
58+ }
0 commit comments