Fixed minor typos

This commit is contained in:
Javier Eguiluz 2018-12-28 12:28:01 +01:00
parent 7448d850f9
commit 9b400bc720
8 changed files with 14 additions and 14 deletions

View File

@ -52,7 +52,7 @@ interface RegistryInterface extends ManagerRegistryInterface
* it makes sense to get a new one to replace the closed one. * it makes sense to get a new one to replace the closed one.
* *
* Be warned that you will get a brand new entity manager as * Be warned that you will get a brand new entity manager as
* the existing one is not useable anymore. This means that any * the existing one is not usable anymore. This means that any
* other object with a dependency on this entity manager will * other object with a dependency on this entity manager will
* hold an obsolete reference. You can inject the registry instead * hold an obsolete reference. You can inject the registry instead
* to avoid this problem. * to avoid this problem.

View File

@ -64,7 +64,7 @@ class DoctrineExtensionTest extends TestCase
); );
$bundles = array( $bundles = array(
'FristBundle' => 'My\FristBundle', 'FirstBundle' => 'My\FirstBundle',
'SecondBundle' => 'My\SecondBundle', 'SecondBundle' => 'My\SecondBundle',
); );
@ -98,7 +98,7 @@ class DoctrineExtensionTest extends TestCase
array(), array(),
array( array(
'mappings' => array( 'mappings' => array(
'FristBundle' => array( 'FirstBundle' => array(
'mapping' => true, 'mapping' => true,
'is_bundle' => true, 'is_bundle' => true,
), ),
@ -132,7 +132,7 @@ class DoctrineExtensionTest extends TestCase
), ),
array( array(
'mappings' => array( 'mappings' => array(
'FristBundle' => array( 'FirstBundle' => array(
'mapping' => true, 'mapping' => true,
'is_bundle' => true, 'is_bundle' => true,
), ),
@ -153,7 +153,7 @@ class DoctrineExtensionTest extends TestCase
); );
$bundles = array( $bundles = array(
'FristBundle' => 'My\FristBundle', 'FirstBundle' => 'My\FirstBundle',
'SecondBundle' => 'My\SecondBundle', 'SecondBundle' => 'My\SecondBundle',
); );

View File

@ -595,7 +595,7 @@ class YamlFileLoader extends FileLoader
* @param string $id A service identifier * @param string $id A service identifier
* @param string $file A parsed file * @param string $file A parsed file
* *
* @throws InvalidArgumentException When errors are occuried * @throws InvalidArgumentException When errors occur
* *
* @return string|array A parsed callable * @return string|array A parsed callable
*/ */

View File

@ -63,7 +63,7 @@ class AddAnnotatedClassesToCachePass implements CompilerPassInterface
* @param array $patterns The class patterns to expand * @param array $patterns The class patterns to expand
* @param array $classes The existing classes to match against the patterns * @param array $classes The existing classes to match against the patterns
* *
* @return array A list of classes derivated from the patterns * @return array A list of classes derived from the patterns
*/ */
private function expandClasses(array $patterns, array $classes) private function expandClasses(array $patterns, array $classes)
{ {

View File

@ -37,10 +37,10 @@ class TargetOperation extends AbstractOperation
// For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``, // For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``,
// because doing so will drop messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback} // because doing so will drop messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
// //
// For 'new' messages, the code can't be simplied as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));`` // For 'new' messages, the code can't be simplified as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));``
// because doing so will not exclude messages like {x: x ∈ target ∧ x ∉ source.all ∧ x ∈ source.fallback} // because doing so will not exclude messages like {x: x ∈ target ∧ x ∉ source.all ∧ x ∈ source.fallback}
// //
// For 'obsolete' messages, the code can't be simplifed as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))`` // For 'obsolete' messages, the code can't be simplified as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))``
// because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback} // because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
foreach ($this->source->all($domain) as $id => $message) { foreach ($this->source->all($domain) as $id => $message) {

View File

@ -123,7 +123,7 @@ class TranslatorCacheTest extends TestCase
{ {
/* /*
* Similar to the previous test. After we used the second translator, make * Similar to the previous test. After we used the second translator, make
* sure there's still a useable cache for the first one. * sure there's still a usable cache for the first one.
*/ */
$locale = 'any_locale'; $locale = 'any_locale';
@ -142,7 +142,7 @@ class TranslatorCacheTest extends TestCase
$translator->addResource($format, array($msgid => 'FAIL'), $locale); $translator->addResource($format, array($msgid => 'FAIL'), $locale);
$translator->trans($msgid); $translator->trans($msgid);
// Now the first translator must still have a useable cache. // Now the first translator must still have a usable cache.
$translator = new Translator($locale, null, $this->tmpDir, $debug); $translator = new Translator($locale, null, $this->tmpDir, $debug);
$translator->addLoader($format, $this->createFailingLoader()); $translator->addLoader($format, $this->createFailingLoader());
$translator->addResource($format, array($msgid => 'OK'), $locale); $translator->addResource($format, array($msgid => 'OK'), $locale);

View File

@ -38,7 +38,7 @@ interface TranslatorInterface
* Translates the given choice message by choosing a translation according to a number. * Translates the given choice message by choosing a translation according to a number.
* *
* @param string $id The message id (may also be an object that can be cast to string) * @param string $id The message id (may also be an object that can be cast to string)
* @param int $number The number to use to find the indice of the message * @param int $number The number to use to find the index of the message
* @param array $parameters An array of parameters for the message * @param array $parameters An array of parameters for the message
* @param string|null $domain The domain for the message or null to use the default * @param string|null $domain The domain for the message or null to use the default
* @param string|null $locale The locale or null to use the default * @param string|null $locale The locale or null to use the default

View File

@ -32,8 +32,8 @@ class VarCloner extends AbstractCloner
$queue = array(array($var)); // This breadth-first queue is the return value $queue = array(array($var)); // This breadth-first queue is the return value
$indexedArrays = array(); // Map of queue indexes that hold numerically indexed arrays $indexedArrays = array(); // Map of queue indexes that hold numerically indexed arrays
$hardRefs = array(); // Map of original zval hashes to stub objects $hardRefs = array(); // Map of original zval hashes to stub objects
$objRefs = array(); // Map of original object handles to their stub object couterpart $objRefs = array(); // Map of original object handles to their stub object counterpart
$resRefs = array(); // Map of original resource handles to their stub object couterpart $resRefs = array(); // Map of original resource handles to their stub object counterpart
$values = array(); // Map of stub objects' hashes to original values $values = array(); // Map of stub objects' hashes to original values
$maxItems = $this->maxItems; $maxItems = $this->maxItems;
$maxString = $this->maxString; $maxString = $this->maxString;