Skip to content

Commit

Permalink
Merge pull request #193 from augustohp/189-scrutinizer
Browse files Browse the repository at this point in the history
Scrutinizer code coverage and custom Makefile support
  • Loading branch information
Augusto Pascutti committed Jul 11, 2014
2 parents ee6af90 + 5043a43 commit 4b9856c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
filter:
paths: [library/*]
tools:
external_code_coverage:
runs: 4
php_cpd:
excluded_dirs: [vendor]
php_pdepend:
excluded_dirs: [vendor]
sensiolabs_security_checker: true
php_changetracking: true
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ before_script:

script:
- make testdox
- make scrutinizer-coverage

matrix:
allow_failures:
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Respect\Validation
==================

[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation) [![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation) [![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation) [![Latest Unstable Version](https://poser.pugx.org/respect/validation/v/unstable.png)](https://packagist.org/packages/respect/validation) [![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Respect/Validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Respect/Validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation)
[![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation)
[![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)

[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)

Expand Down Expand Up @@ -1538,8 +1543,8 @@ v::perfectSquare()->validate(9); //true (3*3)
```
#### v::phone()

Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
Asian and Middle East countries), supporting country and area codes (in dot,
Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
Asian and Middle East countries), supporting country and area codes (in dot,
space or dashed notations) such as:

(555)555-5555
Expand All @@ -1549,7 +1554,7 @@ space or dashed notations) such as:
+33(1)22 22 22 22
+33(020)7777 7777
03-6106666

#### v::positive()

Validates if a number is higher than zero
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<?php

namespace Respect\Validation\Exceptions;
Expand Down

0 comments on commit 4b9856c

Please sign in to comment.