Skip to content

Commit

Permalink
* Minor fixes
Browse files Browse the repository at this point in the history
  * Add release in CHANGES.md
  • Loading branch information
niklongstone committed Sep 4, 2015
1 parent 0acdc0c commit cc49123
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
@@ -1,3 +1,12 @@
0.8.1 / 2015-07-04
==================
* Fix yml parser bug
* Fix nested fake bug
* Increase test coverage
* Refactor configuration files
* General class refactoring
* Fix README

0.8.0 / 2015-06-18
==================
* Add seed feature, to return same value in different calls
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -8,6 +8,7 @@ Fakerino is a fake data generator framework fully extensible.
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/4e7de12a-8fc4-4626-a33d-3287a20f02f6/mini.png)](https://insight.sensiolabs.com/projects/4e7de12a-8fc4-4626-a33d-3287a20f02f6)
[![Code Climate](https://codeclimate.com/github/Fakerino/Fakerino/badges/gpa.svg)](https://codeclimate.com/github/Fakerino/Fakerino)
[![Quality Score](https://img.shields.io/scrutinizer/g/Fakerino/Fakerino.svg?style=flat-square)](https://scrutinizer-ci.com/g/Fakerino/Fakerino)
[![Code Coverage](https://scrutinizer-ci.com/g/Fakerino/Fakerino/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Fakerino/Fakerino/?branch=master)

[![License](https://poser.pugx.org/fakerino/fakerino/license.svg)](https://packagist.org/packages/fakerino/fakerino)

Expand Down
Expand Up @@ -22,18 +22,15 @@
final class FileConfigurationLoaderFactory
{
private $filePath;
private $exts = array();

/**
* Constructor
*
* @param string $filePath
* @param array $exts
*/
public function __construct($filePath, $exts)
public function __construct($filePath)
{
$this->filePath = $filePath;
$this->exts = $exts;
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Fakerino/Core/FakeHandler/ConfFakerClass.php
Expand Up @@ -11,7 +11,6 @@
namespace Fakerino\Core\FakeHandler;

use Fakerino\Configuration\Exception\ConfValueNotFoundException;
use Fakerino\Configuration\FakerinoConf;
use Fakerino\Core\FakeElement;

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Fakerino/Fakerino.php
Expand Up @@ -41,13 +41,11 @@ public static function create($conf = null)
{
self::$defaultConf = new FakerinoConf();
self::$defaultConf->loadConfiguration();
$databaseConfig = null;
if ($conf !== null) {
$confArray = $conf;
if (!is_array($conf)) {
$confTypeFactory = new FileConfigurationLoaderFactory(
$conf,
self::$defaultConf->get('supportedConfExts')
$conf
);
$confParser = $confTypeFactory->load();
$confArray = $confParser->toArray();
Expand Down

0 comments on commit cc49123

Please sign in to comment.