From 1e6ed3d204fc6fdc38891a75c3008ea09123980f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 13 Mar 2017 15:53:14 +0100 Subject: [PATCH 1/5] Insight analyse fixes --- .gitignore | 2 -- LICENSE | 3 ++- example.php | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 3e52175..22d0d82 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -*.swp -tags vendor diff --git a/LICENSE b/LICENSE index b57a6c2..80445fb 100644 --- a/LICENSE +++ b/LICENSE @@ -20,4 +20,5 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/example.php b/example.php index 595e5c5..e764726 100644 --- a/example.php +++ b/example.php @@ -2,7 +2,6 @@ use Deblan\Csv\CsvParser; use Deblan\CsvValidator\Validator; -use Symfony\Component\Validator\Validation; use Symfony\Component\Validator\Constraints\Email; use Symfony\Component\Validator\Constraints\Date; use Symfony\Component\Validator\Constraints\Callback; @@ -23,7 +22,7 @@ $validator->addFieldConstraint(1, new Date()); $validator->setExpectedHeaders(['foo', 'bar', 'bim']); // An line must contain 3 columns -$validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) { +$validator->addDataConstraint(new Callback(function ($data, ExecutionContextInterface $context) { if (count($data) !== 6) { // 6 because of the legend (3 fields * 2) $context->addViolation('The line must contain 3 columns'); } From 8ee01fc2098a8b704c840245304eb76a74587a33 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 15 Mar 2017 00:39:46 +0100 Subject: [PATCH 2/5] CI --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b2a3d3..683aa00 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ csv-validator ============= -![](https://phpci.gitnet.fr//build-status/image/1) +[![](https://phpci.gitnet.fr/build-status/image/2)](https://phpci.gitnet.fr/build-status/view/2) CSV validator library From 78610d50ea3f35de57d7f4d72acf88c2e1b0ebea Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 15 Mar 2017 00:42:28 +0100 Subject: [PATCH 3/5] CI --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 683aa00..a83c640 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ csv-validator ============= -[![](https://phpci.gitnet.fr/build-status/image/2)](https://phpci.gitnet.fr/build-status/view/2) +[![](https://phpci.gitnet.fr/build-status/image/2?branch=master&label=PHPCensor&style=flat-square)](https://phpci.gitnet.fr/build-status/view/2) CSV validator library From 3276b3fb1eb327e465051f4a2ad27448406e2050 Mon Sep 17 00:00:00 2001 From: kalpaitch Date: Wed, 7 Mar 2018 13:42:54 +0100 Subject: [PATCH 4/5] Update 'composer.json' --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4e8a836..13cfab6 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "deblan/csv-validator", + "name": "kalpaitch/csv-validator", "description": "CSV validator library", "license": "BSD-2-Clause", "authors": [ @@ -16,7 +16,7 @@ "minimum-stability": "dev", "require": { "php": ">=5.6.0", - "symfony/validator": "2.*", + "symfony/validator": "3.*", "deblan/csv": "v2.0.*" } } From f9553115ee03606efee4000434fe0988fe0d18e1 Mon Sep 17 00:00:00 2001 From: kalpaitch Date: Wed, 7 Mar 2018 13:43:19 +0100 Subject: [PATCH 5/5] Update 'composer.json' --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 13cfab6..4e561ff 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "kalpaitch/csv-validator", + "name": "deblan/csv-validator", "description": "CSV validator library", "license": "BSD-2-Clause", "authors": [