Skip to content

Commit 8207fb5

Browse files
committed
📦 Support php >= v5.5.9
1 parent 886d1c3 commit 8207fb5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:rocket: Cloc & duplicate code checker written in PHP
33

44
## Requirements
5-
PHP >= 5.4
5+
PHP >= 5.5.9
66

77
## Installation
88
```

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
}
1616
],
1717
"require": {
18-
"symfony/console": "^4.0"
18+
"php": "^5.5.9",
19+
"symfony/console": "^3.4"
1920
},
2021
"autoload": {
2122
"psr-4": {

phpcloc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env php
22
<?php
3-
require __DIR__.'/vendor/autoload.php';
3+
if (file_exists($a = __DIR__.'/../../autoload.php')) {
4+
require_once $a;
5+
} else {
6+
require_once __DIR__.'/vendor/autoload.php';
7+
}
48

59
use Appzcoder\PHPCloc\Commands\ClocCommand;
610
use Appzcoder\PHPCloc\Commands\DuplicateCommand;

0 commit comments

Comments
 (0)