fixed CS
This commit is contained in:
parent
87bb3661fc
commit
bdf9b7eb3e
@ -125,7 +125,8 @@ function get_data($index, $dataDir, $locale = 'en', $constraint = null)
|
||||
return $data;
|
||||
}
|
||||
|
||||
function create_stub_datafile($locale, $target, $data) {
|
||||
function create_stub_datafile($locale, $target, $data)
|
||||
{
|
||||
$template = <<<TEMPLATE
|
||||
<?php
|
||||
|
||||
|
@ -19,7 +19,8 @@ class CompositeIdentEntity implements UserInterface
|
||||
/** @Column(type="string") */
|
||||
public $name;
|
||||
|
||||
public function __construct($id1, $id2, $name) {
|
||||
public function __construct($id1, $id2, $name)
|
||||
{
|
||||
$this->id1 = $id1;
|
||||
$this->id2 = $id2;
|
||||
$this->name = $name;
|
||||
|
@ -18,7 +18,8 @@ class CompositeStringIdentEntity
|
||||
/** @Column(type="string") */
|
||||
public $name;
|
||||
|
||||
public function __construct($id1, $id2, $name) {
|
||||
public function __construct($id1, $id2, $name)
|
||||
{
|
||||
$this->id1 = $id1;
|
||||
$this->id2 = $id2;
|
||||
$this->name = $name;
|
||||
|
@ -15,7 +15,8 @@ class SingleIdentEntity
|
||||
/** @Column(type="string", nullable=true) */
|
||||
public $name;
|
||||
|
||||
public function __construct($id, $name) {
|
||||
public function __construct($id, $name)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
@ -15,7 +15,8 @@ class SingleStringIdentEntity
|
||||
/** @Column(type="string") */
|
||||
public $name;
|
||||
|
||||
public function __construct($id, $name) {
|
||||
public function __construct($id, $name)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
@ -97,7 +97,8 @@ abstract class AbstractDriverTest extends \PHPUnit_Framework_TestCase
|
||||
$ref->setValue($obj, $value);
|
||||
}
|
||||
|
||||
private function invoke($obj, $method, array $args = array()) {
|
||||
private function invoke($obj, $method, array $args = array())
|
||||
{
|
||||
$ref = new \ReflectionMethod($obj, $method);
|
||||
$ref->setAccessible(true);
|
||||
|
||||
|
@ -13,7 +13,8 @@ namespace Symfony\Tests\Bridge\Twig\Extension\Fixtures;
|
||||
|
||||
// Preventing autoloader throwing E_FATAL when Twig is now available
|
||||
if (!class_exists('Twig_Environment')) {
|
||||
class StubFilesystemLoader {
|
||||
class StubFilesystemLoader
|
||||
{
|
||||
}
|
||||
} else {
|
||||
class StubFilesystemLoader extends \Twig_Loader_Filesystem
|
||||
|
@ -34,7 +34,8 @@ class DirectoryResourceTest extends \PHPUnit_Framework_TestCase
|
||||
$this->removeDirectory($this->directory);
|
||||
}
|
||||
|
||||
protected function removeDirectory($directory) {
|
||||
protected function removeDirectory($directory)
|
||||
{
|
||||
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST);
|
||||
foreach ($iterator as $path) {
|
||||
if (preg_match('#/\.\.?$#', $path->__toString())) {
|
||||
|
@ -268,7 +268,8 @@ class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
|
||||
))));
|
||||
}
|
||||
|
||||
public function testArrayAccessObject() {
|
||||
public function testArrayAccessObject()
|
||||
{
|
||||
$value = new TestArrayObject();
|
||||
$value['foo'] = 12;
|
||||
$value['asdf'] = 'asdfaf';
|
||||
@ -288,7 +289,8 @@ class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
public function testArrayObject() {
|
||||
public function testArrayObject()
|
||||
{
|
||||
$value = new \ArrayObject(array());
|
||||
$value['foo'] = 12;
|
||||
$value['asdf'] = 'asdfaf';
|
||||
|
@ -5,8 +5,8 @@ namespace Symfony\Tests\Component\Validator\Fixtures;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
|
||||
/** @Annotation */
|
||||
class ConstraintB extends Constraint {
|
||||
|
||||
class ConstraintB extends Constraint
|
||||
{
|
||||
public function getTargets()
|
||||
{
|
||||
return array(self::PROPERTY_CONSTRAINT, self::CLASS_CONSTRAINT);
|
||||
|
Reference in New Issue
Block a user