Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed typos #2

Merged
merged 1 commit into from

2 participants

@pborreli

No description provided.

@bobthecow bobthecow merged commit 5f9f190 into bobthecow:master
@bobthecow
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2012
  1. @pborreli

    Fixed typos

    pborreli authored
This page is out of date. Refresh to see the latest.
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())
Something went wrong with that request. Please try again.