Skip to content
This repository was archived by the owner on Oct 27, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Checker.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace Error;

require_once (__DIR__ . '/vendor/autoload.php');

/**
Expand Down
6 changes: 2 additions & 4 deletions wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
require_once (__DIR__ . '/Checker.php');

if ($argc < 2 ){
echo "Use ex. $ php wrapper.php https://bootjp.me/ \n";
exit;
throw new InvalidArgumentException('Use ex. $ php wrapper.php https://bootjp.me/');
}

$options = array_merge([
Expand All @@ -27,5 +26,4 @@
echo "\n";


print_r((new Error\Checker($options))
->start($options['url']));
print_r((new Checker($options))->start($options['url']));