CS fixes
This commit is contained in:
parent
583340db7b
commit
b3081c79e9
@ -73,8 +73,7 @@ class ZendExtension extends Extension
|
||||
$definition = $container->findDefinition('zend.logger');
|
||||
if (false === $config['log_errors'] && $definition->hasMethodCall('registerErrorHandler')) {
|
||||
$container->findDefinition('zend.logger')->removeMethodCall('registerErrorHandler');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$container->findDefinition('zend.logger')->addMethodCall('registerErrorHandler');
|
||||
}
|
||||
}
|
||||
|
@ -319,8 +319,8 @@ class PropertyPath implements \IteratorAggregate
|
||||
|
||||
return $object->$isser();
|
||||
} else if ($reflClass->hasMethod('__get')) {
|
||||
// needed to support magic method __get
|
||||
return $object->$property;
|
||||
// needed to support magic method __get
|
||||
return $object->$property;
|
||||
} else if ($reflClass->hasProperty($property)) {
|
||||
if (!$reflClass->getProperty($property)->isPublic()) {
|
||||
throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "get%s()" or "is%s()"?', $property, $reflClass->getName(), ucfirst($property), ucfirst($property)));
|
||||
|
@ -423,7 +423,7 @@ class FieldTest extends \PHPUnit_Framework_TestCase
|
||||
->will($this->returnValue(' a '));
|
||||
|
||||
$field = new TestField('title', array(
|
||||
'trim' => false,
|
||||
'trim' => false,
|
||||
'value_transformer' => $transformer,
|
||||
));
|
||||
|
||||
|
@ -3,5 +3,5 @@
|
||||
namespace Namespaced;
|
||||
|
||||
class Bar {
|
||||
public static $loaded = true;
|
||||
public static $loaded = true;
|
||||
}
|
@ -3,5 +3,5 @@
|
||||
namespace Namespaced;
|
||||
|
||||
class Foo {
|
||||
public static $loaded = true;
|
||||
public static $loaded = true;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
class Pearlike_Bar {
|
||||
public static $loaded = true;
|
||||
public static $loaded = true;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
class Pearlike_Foo {
|
||||
public static $loaded = true;
|
||||
public static $loaded = true;
|
||||
}
|
@ -17,7 +17,7 @@ class MemberMetadataTest extends \PHPUnit_Framework_TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->metadata = new TestMemberMetadata(
|
||||
'Symfony\Tests\Component\Validator\Fixtures\Entity',
|
||||
'Symfony\Tests\Component\Validator\Fixtures\Entity',
|
||||
'getLastName',
|
||||
'lastName'
|
||||
);
|
||||
|
Reference in New Issue
Block a user