Skip to content

Commit

Permalink
Merge pull request #644 from pborreli/typos
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
beberlei committed Apr 6, 2013
2 parents 64b2ecf + 30b050b commit 3c4a9c8
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/AbstractQuery.php
Expand Up @@ -309,7 +309,7 @@ public function setResultSetMapping(Query\ResultSetMapping $rsm)
/**
* Allows to translate entity namespaces to full qualified names.
*
* @param EntityManager $em
* @param Query\ResultSetMapping $rsm
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Event/ListenersInvoker.php
Expand Up @@ -91,7 +91,7 @@ public function getSubscribedSystems(ClassMetadata $metadata, $eventName)
*
* @param \Doctrine\ORM\Mapping\ClassMetadata $metadata The entity metadata.
* @param string $eventName The entity lifecycle event.
* @param object $entity The Entity on which the event occured.
* @param object $entity The Entity on which the event occurred.
* @param \Doctrine\Common\EventArgs $event The Event args.
* @param integer $invoke Bitmask to invoke listeners.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Id/AssignedGenerator.php
Expand Up @@ -23,7 +23,7 @@
use Doctrine\ORM\ORMException;

/**
* Special generator for application-assigned identifiers (doesnt really generate anything).
* Special generator for application-assigned identifiers (doesn't really generate anything).
*
* @since 2.0
* @author Benjamin Eberlei <kontakt@beberlei.de>
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php
Expand Up @@ -38,9 +38,9 @@ class BigIntegerIdentityGenerator extends AbstractIdGenerator
/**
* Constructor.
*
* @param string|null $seqName The name of the sequence to pass to lastInsertId()
* to obtain the last generated identifier within the current
* database session/connection, if any.
* @param string|null $sequenceName The name of the sequence to pass to lastInsertId()
* to obtain the last generated identifier within the current
* database session/connection, if any.
*/
public function __construct($sequenceName = null)
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/Id/IdentityGenerator.php
Expand Up @@ -38,9 +38,9 @@ class IdentityGenerator extends AbstractIdGenerator
/**
* Constructor.
*
* @param string|null $seqName The name of the sequence to pass to lastInsertId()
* to obtain the last generated identifier within the current
* database session/connection, if any.
* @param string|null $sequenceName The name of the sequence to pass to lastInsertId()
* to obtain the last generated identifier within the current
* database session/connection, if any.
*/
public function __construct($sequenceName = null)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
Expand Up @@ -533,6 +533,7 @@ private function getMethodCallbacks(\ReflectionMethod $method)
/**
* Parse the given JoinColumn as array
*
* @param JoinColumn $joinColumn
* @return array
*/
private function joinColumnToArray(JoinColumn $joinColumn)
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/EntityListenerResolver.php
Expand Up @@ -49,7 +49,7 @@ function resolve($className);
/**
* Register a entity listener instance.
*
* @return object An entity listener
* @param object $object An entity listener
*/
function register($object);
}
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/MappingException.php
Expand Up @@ -685,8 +685,8 @@ public static function lifecycleCallbackMethodNotFound($className, $methodName)
}

/**
* @param string $listenerName
* @param string $className
* @param string $methodName
*
* @return \Doctrine\ORM\Mapping\MappingException
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Persisters/AbstractCollectionPersister.php
Expand Up @@ -98,7 +98,7 @@ public function delete(PersistentCollection $coll)
*
* @param \Doctrine\ORM\PersistentCollection $coll
*
* @return void
* @return string
*/
abstract protected function getDeleteSQL(PersistentCollection $coll);

Expand All @@ -108,7 +108,7 @@ abstract protected function getDeleteSQL(PersistentCollection $coll);
*
* @param \Doctrine\ORM\PersistentCollection $coll
*
* @return void
* @return array
*/
abstract protected function getDeleteSQLParameters(PersistentCollection $coll);

Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/AST/Functions/FunctionNode.php
Expand Up @@ -22,7 +22,7 @@
use Doctrine\ORM\Query\AST\Node;

/**
* Abtract Function Node.
* Abstract Function Node.
*
*
* @link www.doctrine-project.org
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Query/AST/Functions/IdentityFunction.php
Expand Up @@ -83,9 +83,9 @@ public function getSql(SqlWalker $sqlWalker)
}

$tableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias);
$columName = $quoteStrategy->getJoinColumnName($joinColumn, $targetEntity, $platform);
$columnName = $quoteStrategy->getJoinColumnName($joinColumn, $targetEntity, $platform);

return $tableAlias . '.' . $columName;
return $tableAlias . '.' . $columnName;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/Doctrine/ORM/Query/Parser.php
Expand Up @@ -2,7 +2,7 @@
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHARNTABILITY AND FITNESS FOR
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Expand Down Expand Up @@ -1064,7 +1064,7 @@ public function PathExpression($expectedTypes)
// Creating AST node
$pathExpr = new AST\PathExpression($expectedTypes, $identVariable, $field);

// Defer PathExpression validation if requested to be defered
// Defer PathExpression validation if requested to be deferred
$this->deferredPathExpressions[] = array(
'expression' => $pathExpr,
'nestingLevel' => $this->nestingLevel,
Expand Down Expand Up @@ -2413,7 +2413,7 @@ public function SimpleConditionalExpression()
}

if ($token['type'] === Lexer::T_IDENTIFIER || $token['type'] === Lexer::T_INPUT_PARAMETER || $this->isFunction()) {
// Peek beyond the matching closing paranthesis.
// Peek beyond the matching closing parenthesis.
$beyond = $this->lexer->peek();

switch ($peek['value']) {
Expand Down Expand Up @@ -2765,7 +2765,7 @@ public function ArithmeticPrimary()
* StringExpression ::= StringPrimary | "(" Subselect ")"
*
* @return \Doctrine\ORM\Query\AST\StringPrimary |
* \Doctrine]ORM\Query\AST\Subselect
* \Doctrine\ORM\Query\AST\Subselect
*/
public function StringExpression()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/SqlWalker.php
Expand Up @@ -428,7 +428,7 @@ private function _generateDiscriminatorColumnConditionSQL(array $dqlAliases)
$conn = $this->em->getConnection();
$values = array();

if ($class->discriminatorValue !== null) { // discrimnators can be 0
if ($class->discriminatorValue !== null) { // discriminators can be 0
$values[] = $conn->quote($class->discriminatorValue);
}

Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php
Expand Up @@ -35,6 +35,7 @@ class ConsoleRunner
/**
* Create a Symfony Console HelperSet
*
* @param EntityManager $entityManager
* @return HelperSet
*/
public static function createHelperSet(EntityManager $entityManager)
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Tools/EntityGenerator.php
Expand Up @@ -475,7 +475,7 @@ public function setGenerateAnnotations($bool)
public function setFieldVisibility($visibility)
{
if ($visibility !== self::FIELD_VISIBLE_PRIVATE && $visibility !== self::FIELD_VISIBLE_PROTECTED) {
throw new \InvalidArgumentException('Invalid provided visibilty (only private and protected are allowed): ' . $visibility);
throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): ' . $visibility);
}

$this->fieldVisibility = $visibility;
Expand Down Expand Up @@ -1480,7 +1480,7 @@ protected function getChangeTrackingPolicyString($type)
/**
* @param integer $type The generator to use for the mapped class.
*
* @return string The literal string for the generetor type.
* @return string The literal string for the generator type.
*
* @throws \InvalidArgumentException When the generator type does not exists.
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/UnitOfWork.php
Expand Up @@ -597,7 +597,7 @@ public function computeChangeSet(ClassMetadata $class, $entity)

$orgValue = $originalData[$propName];

// skip if value havent changed
// skip if value haven't changed
if ($orgValue === $actualValue) {
continue;
}
Expand Down Expand Up @@ -1055,7 +1055,7 @@ private function getCommitOrder(array $entityChangeSet = null)
$calc = $this->getCommitOrderCalculator();

// See if there are any new classes in the changeset, that are not in the
// commit order graph yet (dont have a node).
// commit order graph yet (don't have a node).
// We have to inspect changeSet to be able to correctly build dependencies.
// It is not possible to use IdentityMap here because post inserted ids
// are not yet available.
Expand Down Expand Up @@ -1820,7 +1820,7 @@ private function doMerge($entity, array &$visited, $prevManagedCopy = null, $ass
$managedCopyVersion = $reflField->getValue($managedCopy);
$entityVersion = $reflField->getValue($entity);

// Throw exception if versions dont match.
// Throw exception if versions don't match.
if ($managedCopyVersion != $entityVersion) {
throw OptimisticLockException::lockFailedVersionMismatch($entity, $entityVersion, $managedCopyVersion);
}
Expand Down

0 comments on commit 3c4a9c8

Please sign in to comment.