CS: fixes
This commit is contained in:
parent
8593b90465
commit
11e3a9e4e5
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class A
|
class A
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
trait TFoo
|
trait TFoo
|
||||||
{
|
{
|
||||||
|
@ -114,7 +114,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertFinalizedValueIs('new_value', $test);
|
$this->assertFinalizedValueIs('new_value', $test);
|
||||||
|
|
||||||
$test = $this->getTestBuilder()
|
$test = $this->getTestBuilder()
|
||||||
->ifNotInArray(array('foo', 'bar', 'value_from_config' ))
|
->ifNotInArray(array('foo', 'bar', 'value_from_config'))
|
||||||
->then($this->returnClosure('new_value'))
|
->then($this->returnClosure('new_value'))
|
||||||
->end();
|
->end();
|
||||||
$this->assertFinalizedValueIs('new_value', $test);
|
$this->assertFinalizedValueIs('new_value', $test);
|
||||||
|
@ -36,7 +36,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase
|
|||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
$tmpDir,
|
$tmpDir,
|
||||||
array( // paths
|
array(
|
||||||
|
// paths
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'.git' => $tmpDir.DIRECTORY_SEPARATOR.'.git',
|
$tmpDir.DIRECTORY_SEPARATOR.'.git' => $tmpDir.DIRECTORY_SEPARATOR.'.git',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => $tmpDir.DIRECTORY_SEPARATOR.'test.py',
|
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => $tmpDir.DIRECTORY_SEPARATOR.'test.py',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'foo' => $tmpDir.DIRECTORY_SEPARATOR.'foo',
|
$tmpDir.DIRECTORY_SEPARATOR.'foo' => $tmpDir.DIRECTORY_SEPARATOR.'foo',
|
||||||
@ -44,7 +45,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase
|
|||||||
$tmpDir.DIRECTORY_SEPARATOR.'test.php' => $tmpDir.DIRECTORY_SEPARATOR.'test.php',
|
$tmpDir.DIRECTORY_SEPARATOR.'test.php' => $tmpDir.DIRECTORY_SEPARATOR.'test.php',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'toto' => $tmpDir.DIRECTORY_SEPARATOR.'toto',
|
$tmpDir.DIRECTORY_SEPARATOR.'toto' => $tmpDir.DIRECTORY_SEPARATOR.'toto',
|
||||||
),
|
),
|
||||||
array( // subPaths
|
array(
|
||||||
|
// subPaths
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'.git' => '',
|
$tmpDir.DIRECTORY_SEPARATOR.'.git' => '',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => '',
|
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => '',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'foo' => '',
|
$tmpDir.DIRECTORY_SEPARATOR.'foo' => '',
|
||||||
@ -52,7 +54,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase
|
|||||||
$tmpDir.DIRECTORY_SEPARATOR.'test.php' => '',
|
$tmpDir.DIRECTORY_SEPARATOR.'test.php' => '',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'toto' => '',
|
$tmpDir.DIRECTORY_SEPARATOR.'toto' => '',
|
||||||
),
|
),
|
||||||
array( // subPathnames
|
array(
|
||||||
|
// subPathnames
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'.git' => '.git',
|
$tmpDir.DIRECTORY_SEPARATOR.'.git' => '.git',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => 'test.py',
|
$tmpDir.DIRECTORY_SEPARATOR.'test.py' => 'test.py',
|
||||||
$tmpDir.DIRECTORY_SEPARATOR.'foo' => 'foo',
|
$tmpDir.DIRECTORY_SEPARATOR.'foo' => 'foo',
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the Symfony package.
|
* This file is part of the Symfony package.
|
||||||
*
|
*
|
||||||
* (c) Fabien Potencier <fabien@symfony.com>
|
* (c) Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
*
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Symfony\Component\Form\Tests;
|
namespace Symfony\Component\Form\Tests;
|
||||||
|
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of the Symfony package.
|
||||||
|
*
|
||||||
|
* (c) Fabien Potencier <fabien@symfony.com>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Symfony\Component\Form\Tests;
|
namespace Symfony\Component\Form\Tests;
|
||||||
|
|
||||||
use Symfony\Component\Form\CallbackTransformer;
|
use Symfony\Component\Form\CallbackTransformer;
|
||||||
@ -30,8 +39,8 @@ class CallbackTransformerTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function invalidCallbacksProvider()
|
public function invalidCallbacksProvider()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array( null, function () {} ),
|
array(null, function () {}),
|
||||||
array( function () {}, null ),
|
array(function () {}, null),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the Symfony package.
|
* This file is part of the Symfony package.
|
||||||
*
|
*
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user