Commit 72ab3797 authored by Aleksandr Galkin's avatar Aleksandr Galkin
Browse files

Меньше проблем с parse errors

parent 65c173d8
<?php
set_exception_handler(function (\Exception $e) {
echo $e->getMessage() . "\n";
exit(1);
});
try {
foreach (glob('src/*.php') as $file) {
require_once $file;
}
foreach (glob('src/*.php') as $file) {
require_once $file;
}
$desk = new Desk();
$desk = new Desk();
$args = $argv;
array_shift($args);
$args = $argv;
array_shift($args);
foreach ($args as $move) {
$desk->move($move);
}
foreach ($args as $move) {
$desk->move($move);
$desk->dump();
} catch (\Exception $e) {
echo $e->getMessage() . "\n";
exit(1);
}
$desk->dump();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment