Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
.
  • Loading branch information
jakoch committed Jun 24, 2016
1 parent 75d03b8 commit 7f0be30
Show file tree
Hide file tree
Showing 433 changed files with 6,117 additions and 5,936 deletions.
17 changes: 9 additions & 8 deletions bin/coverage-check.php
@@ -1,14 +1,15 @@
<?php

/**
* Coverage Checker
* Coverage Checker.
*
* @author ocramius
*
* @link http://ocramius.github.com/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/
*
* Usage: "php coverage-checker.php clover.xml 70"
*/
$inputFile = $argv[1];
$inputFile = $argv[1];
$acceptedPercentage = min(100, max(0, (int) $argv[2]));

if (!file_exists($inputFile)) {
Expand All @@ -19,15 +20,15 @@
throw new InvalidArgumentException('An integer checked percentage must be given as second parameter');
}

$cliColor = array(
$cliColor = [
'green' => "\x1b[30;42m",
'red' => "\x1b[37;41m",
'red' => "\x1b[37;41m",
'reset' => "\x1b[0m",
);
];

$xml = new SimpleXMLElement(file_get_contents($inputFile));
$metrics = $xml->xpath('//metrics');
$totalElements = 0;
$xml = new SimpleXMLElement(file_get_contents($inputFile));
$metrics = $xml->xpath('//metrics');
$totalElements = 0;
$checkedElements = 0;

foreach ($metrics as $metric) {
Expand Down
3 changes: 1 addition & 2 deletions bin/phar/phar-stub.php
Expand Up @@ -3,7 +3,7 @@

/**
* Koch Framework
* Jens-André Koch © 2005 - onwards
* Jens-André Koch © 2005 - onwards.
*
* This file is part of "Koch Framework".
*
Expand All @@ -22,7 +22,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

Phar::mapPhar('koch-framework.phar');

require_once 'phar://koch-framework.phar/vendor/autoload.php';
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Expand Up @@ -40,7 +40,7 @@
},
"require-dev": {
"mikey179/vfsStream" : "^1.6",
"fabpot/php-cs-fixer" : "^1.11",
"fabpot/php-cs-fixer" : "*",
"phpunit/phpunit" : "^4.5",
"phpunit/dbunit" : "*",
"doctrine/data-fixtures" : "*",
Expand Down Expand Up @@ -70,9 +70,6 @@
]
},
"config": {
"preferred-install": "dist",
"github-oauth": {
"github.com": "754f8af6145eb3bb532feff61e9c29611174ebea"
}
"preferred-install": "dist"
}
}

0 comments on commit 7f0be30

Please sign in to comment.