From b6c0dc9b5636b5a11ee1e3740350d39c2da1846f Mon Sep 17 00:00:00 2001 From: Borewit Date: Sat, 29 Dec 2018 12:13:43 +0100 Subject: [PATCH 1/3] Fix compile command using relative path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc85e08..e91034d 100644 --- a/README.md +++ b/README.md @@ -113,5 +113,5 @@ run the `bin/compile` script. To do this, run the following commands: git clone https://github.com/OPSnet/Logchecker cd Logchecker composer install -php -d phar.readonly=0 /bin/compile +php -d phar.readonly=0 bin/compile ``` \ No newline at end of file -- 2.16.2 From a1b31607264319c2ac09662956914f0b85b93527 Mon Sep 17 00:00:00 2001 From: Borewit Date: Sun, 30 Dec 2018 09:21:59 +0100 Subject: [PATCH 2/3] Fix example using namespace --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e91034d..9917ae3 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ $ composer require orpheusnet/logchecker ### Usage ``` -use OrpheusNET\Logchecker\Logchecker(); +use OrpheusNET\Logchecker\Logchecker; $logchecker = new Logchecker(); $logchecker->new_file('/path/to/log/file'); -- 2.16.2 From 771c9c04dd3d806902d9ceddcd39657df726d106 Mon Sep 17 00:00:00 2001 From: Borewit Date: Sun, 30 Dec 2018 09:22:58 +0100 Subject: [PATCH 3/3] More explicit code type declaration & include autoload --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9917ae3..c96e869 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ file. Download this file, and then it can executed via CLI by running `php logch Alternatively, if you `chmod +x logchecker.phar`, it can be executed directly by doing `./logchecker.phar`. To install it globally, run: -``` +```bash mv logchecker.phar /usr/local/bin/logchecker chmod +x /usr/local/bin/logchecker ``` @@ -75,7 +75,7 @@ Details : ``` ### Code -``` +```php