Fix some code standard things
This commit is contained in:
parent
4772cbfae6
commit
e9739f8591
@ -2550,8 +2550,9 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
*/
|
||||
public function addLifecycleCallback($callback, $event)
|
||||
{
|
||||
if(isset($this->lifecycleCallbacks[$event]) && in_array($callback, $this->lifecycleCallbacks[$event]))
|
||||
if(isset($this->lifecycleCallbacks[$event]) && in_array($callback, $this->lifecycleCallbacks[$event])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->lifecycleCallbacks[$event][] = $callback;
|
||||
}
|
||||
|
@ -469,10 +469,10 @@ class AnnotationDriver extends AbstractAnnotationDriver
|
||||
if (isset($classAnnotations['Doctrine\ORM\Mapping\HasLifecycleCallbacks']))
|
||||
{
|
||||
/* @var $method \ReflectionMethod */
|
||||
foreach ($class->getMethods(\ReflectionMethod::IS_PUBLIC) as $method)
|
||||
{
|
||||
foreach ($this->getMethodCallbacks($method) as $value)
|
||||
{
|
||||
foreach ($class->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){
|
||||
|
||||
foreach ($this->getMethodCallbacks($method) as $value) {
|
||||
|
||||
$metadata->addLifecycleCallback($value[0], $value[1]);
|
||||
}
|
||||
}
|
||||
|
@ -1,13 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: gwagner
|
||||
* Date: 1/8/14
|
||||
* Time: 8:19 PM
|
||||
*/
|
||||
|
||||
namespace Doctrine\Tests\ORM\Functional\Ticket;
|
||||
|
||||
/**
|
||||
* Class DDC2895Test
|
||||
* @package Doctrine\Tests\ORM\Functional\Ticket
|
||||
* @author http://github.com/gwagner
|
||||
*/
|
||||
class DDC2895Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
{
|
||||
public function setUp()
|
||||
|
Loading…
Reference in New Issue
Block a user