diff --git a/README.md b/README.md index df6824b..6c48162 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,15 @@ -Aist Alice Fixtures +Aist Alice Fixtures [![SensioLabsInsight](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904/small.png)](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904) =================== A Zend Framework 2 Module to help load Doctrine Fixtures with [nelmio/alice](https://github.com/nelmio/alice) and [fzaninotto/Faker](https://github.com/fzaninotto/Faker). +[![Build Status](https://travis-ci.org/ma-si/aist-alice-fixtures.svg?branch=master)](https://travis-ci.org/ma-si/aist-alice-fixtures) +[![Total Downloads](https://poser.pugx.org/aist/aist-alice-fixtures/downloads)](https://packagist.org/packages/aist/aist-alice-fixtures) +[![Reference Status](https://www.versioneye.com/php/aist:aist-alice-fixtures/reference_badge.svg?style=flat)](https://www.versioneye.com/php/aist:aist-alice-fixtures/references) +[![Dependency Status](https://www.versioneye.com/user/projects/55d8ac808d9c4b0021000016/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55d8ac808d9c4b0021000016) +[![Packagist](https://img.shields.io/packagist/v/aist/aist-alice-fixtures.svg)]() +[![Code Climate](https://codeclimate.com/github/ma-si/aist-alice-fixtures/badges/gpa.svg)](https://codeclimate.com/github/ma-si/aist-alice-fixtures) +[![License](https://poser.pugx.org/aist/aist-alice-fixtures/license)](https://packagist.org/packages/aist/aist-alice-fixtures) + ## Introduction Add fixtures to your modules. diff --git a/src/AistAliceFixtures/Filter/UniDecodeFilter.php b/src/AistAliceFixtures/Filter/UniDecodeFilter.php index 24e7fab..e067da7 100644 --- a/src/AistAliceFixtures/Filter/UniDecodeFilter.php +++ b/src/AistAliceFixtures/Filter/UniDecodeFilter.php @@ -22,4 +22,4 @@ public function filter($string) { return $this->decode($string); } -} \ No newline at end of file +} diff --git a/src/AistAliceFixtures/Service/FixturesLoaderFactory.php b/src/AistAliceFixtures/Service/FixturesLoaderFactory.php index be17877..748f2a1 100644 --- a/src/AistAliceFixtures/Service/FixturesLoaderFactory.php +++ b/src/AistAliceFixtures/Service/FixturesLoaderFactory.php @@ -15,14 +15,12 @@ use BaconStringUtils\UniDecoder; use Faker\Factory as FakerFactory; use Nelmio\Alice\Fixtures; -use Nelmio\Alice\Fixtures\Loader as FixturesLoader; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; use Zend\Stdlib\ArrayUtils; class FixturesLoaderFactory implements FactoryInterface { - /** * {@inheritDoc} * @return Application @@ -31,7 +29,6 @@ public function createService(ServiceLocatorInterface $serviceLocator) { // load objects from a yml file $fixtureFiles = $serviceLocator->get('config')['fixture_manager']['files']; - $loader = new FixturesLoader(); $fakerGenerator = FakerFactory::create(); $slugifier = $serviceLocator->get('FilterManager')->get('slugify'); @@ -57,7 +54,6 @@ public function createService(ServiceLocatorInterface $serviceLocator) // 'persist_once' => false, ] ); -// $objects = $fixtures->loadFiles($fixtureFiles); $loaderHelper = new FixtureLoaderHelper( $objects, $fixtureFiles, @@ -73,5 +69,4 @@ public function createService(ServiceLocatorInterface $serviceLocator) return $loaderHelper; } - -} \ No newline at end of file +} diff --git a/src/AistAliceFixtures/Service/FixturesPersisterFactory.php b/src/AistAliceFixtures/Service/FixturesPersisterFactory.php index fcd900f..9967a06 100644 --- a/src/AistAliceFixtures/Service/FixturesPersisterFactory.php +++ b/src/AistAliceFixtures/Service/FixturesPersisterFactory.php @@ -17,7 +17,6 @@ class FixturesPersisterFactory implements FactoryInterface { - /** * {@inheritDoc} * @return Application @@ -30,5 +29,4 @@ public function createService(ServiceLocatorInterface $sl) return $persisterHelper; } - -} \ No newline at end of file +}