Skip to content
Browse files

Merge pull request #2 from pborreli/typos

Fixed typos
  • Loading branch information...
2 parents af7883f + d814d02 commit 5f9f19081188e23abbe1369ae0ad1dcbf5db51d6 @bobthecow committed Dec 8, 2012
Showing with 5 additions and 9 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 src/Population/DataFixture.php
  3. +3 −7 src/Population/Populator.php
View
2 README.markdown
@@ -105,4 +105,4 @@ $populator->populate($em->getRepository('BlogBundle:Tag'), 1000, function($tag)
if your class needs constructor dependency injection or special instantiation.
* `constructorArgs` an array of args, passed directly to the object's constructor.
- If you specified a `factory` option, your factory will receive these aruguments.
+ If you specified a `factory` option, your factory will receive these arguments.
View
2 src/Population/DataFixture.php
@@ -38,7 +38,7 @@
*/
public function populate(ObjectRepository $repo, $count, $callback, array $constructorArgs = array())
{
- return $this->getPopulator()->populate($repo, $count, $callback, $constructorArgs);
+ $this->getPopulator()->populate($repo, $count, $callback, $constructorArgs);
}
/**
View
10 src/Population/Populator.php
@@ -64,16 +64,15 @@ public function populate(ObjectRepository $repo, $count, $callback, array $optio
{
switch (true) {
case $repo instanceof DocumentRepository:
- return $this->populateDocument($repo, $count, $callback, $options);
+ $this->populateDocument($repo, $count, $callback, $options);
break;
case $repo instanceof EntityRepository:
- return $this->populateEntity($repo, $count, $callback, $options);
+ $this->populateEntity($repo, $count, $callback, $options);
break;
default:
throw new \InvalidArgumentException('Unexpected ObjectRepository class: ' . get_class($repo));
- break;
}
}
@@ -84,8 +83,6 @@ public function populate(ObjectRepository $repo, $count, $callback, array $optio
*
* @access public
* @param DocumentRepository $repo
- * @param callable $factory
- * @param array $args
* @param int $count
* @param callable $callback Function which populates the data for each instance. It is passed a single argument,
* the document to be populated. If $callback returns false, the document will not be persisted.
@@ -117,9 +114,8 @@ public function populateDocument(DocumentRepository $repo, $count, $callback, ar
*
* @access public
* @param EntityRepository $repo
- * @param callable $factory
- * @param array $args
* @param int $count
+ * @param array $options
* @param callable $callback Function which populates the data for each instance. It is passed a single argument,
* the entity to be populated. If $callback returns false, the entity will not be persisted.
* @param array $options (default: array())

0 comments on commit 5f9f190

Please sign in to comment.
Something went wrong with that request. Please try again.