Skip to content

Commit

Permalink
Merge pull request #1 from chadicus/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
chadicus committed Jun 1, 2015
2 parents 9e5339b + 4ecf413 commit 926c8fb
Show file tree
Hide file tree
Showing 9 changed files with 403 additions and 256 deletions.
6 changes: 6 additions & 0 deletions .scrutinizer.yml
Expand Up @@ -17,3 +17,9 @@ tools:
- tests
php_pdepend: true
php_sim: true
build_failure_conditions:
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse allowed (useful for legacy code)
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.label("coding-style").new.count > 5' # More than 5 new coding style issues.
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -3,5 +3,8 @@ php:
- 5.6
- 5.5
- 5.4
script: ./build.php
after_script: ./vendor/bin/coveralls -v
- 7
- hhvm
install: composer install
script: ./vendor/bin/phpunit --coverage-clover clover.xml
after_success: sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/coveralls -v; fi'
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -42,7 +42,7 @@ With a checkout of the code get [Composer](http://getcomposer.org) in your PATH
* Convert an xml document to an array
```php
<?php
use Chadicus\DOM\DOMUtil;
use Chadicus\Util;

$xml = <<<XML
<?xml version="1.0"?>
Expand All @@ -67,7 +67,7 @@ XML;

$document = new \DOMDocument();
$document->loadXml($xml);
$array = DOMUtil::toArray($document);
$array = Util\DOMDocument::toArray($document);

var_export($array);

Expand Down
32 changes: 0 additions & 32 deletions build.php

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -11,7 +11,7 @@
],
"license": "MIT",
"require": {
"php": "~5.4",
"php": "~5.4 || ~7.0",
"ext-dom" : "*"
},
"require-dev": {
Expand All @@ -20,6 +20,6 @@
"satooshi/php-coveralls": "~0.6.1"
},
"autoload": {
"psr-4": { "Chadicus\\DOM\\": "src/" }
"psr-4": { "Chadicus\\Util\\": "src/" }
}
}

0 comments on commit 926c8fb

Please sign in to comment.