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

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

parent 65c173d8
<?php <?php
set_exception_handler(function (\Exception $e) { try {
echo $e->getMessage() . "\n"; foreach (glob('src/*.php') as $file) {
exit(1); require_once $file;
}); }
foreach (glob('src/*.php') as $file) { $desk = new Desk();
require_once $file;
}
$desk = new Desk(); $args = $argv;
array_shift($args);
$args = $argv; foreach ($args as $move) {
array_shift($args); $desk->move($move);
}
foreach ($args as $move) { $desk->dump();
$desk->move($move); } 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