fixed CS
This commit is contained in:
parent
5ca472bd45
commit
92cb685ebc
|
@ -17,7 +17,6 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
use Symfony\Component\Config\Definition\NodeInterface;
|
||||
use Symfony\Component\Config\Definition\ArrayNode;
|
||||
use Symfony\Component\Config\Definition\PrototypedArrayNode;
|
||||
use Symfony\Component\Config\Definition\BooleanNode;
|
||||
|
||||
/**
|
||||
* A console command for dumping available configuration reference
|
||||
|
|
|
@ -101,4 +101,4 @@ class RouterDataCollector extends DataCollector
|
|||
{
|
||||
return 'router';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{% block panel '' %}
|
||||
{% block panel '' %}
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
options
|
||||
);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
toggle: function(selector, elOn, elOff) {
|
||||
|
@ -64,9 +65,10 @@
|
|||
els[i].style.display = style;
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
})();
|
||||
/*]]>*/</script>
|
||||
/*]]>*/</script>
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
|
|
@ -44,7 +44,7 @@ class ClassMapGenerator
|
|||
* @return array A class map array
|
||||
*/
|
||||
static public function createMap($dir)
|
||||
{
|
||||
{
|
||||
if (is_string($dir)) {
|
||||
$dir = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir));
|
||||
}
|
||||
|
@ -61,9 +61,9 @@ class ClassMapGenerator
|
|||
if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$classes = self::findClasses($path);
|
||||
|
||||
|
||||
foreach ($classes as $class) {
|
||||
$map[$class] = $path;
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ class ClassMapGenerator
|
|||
$namespace = '';
|
||||
for ($i = 0, $max = count($tokens); $i < $max; $i++) {
|
||||
$token = $tokens[$i];
|
||||
|
||||
|
||||
if (is_string($token)) {
|
||||
continue;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ class ClassMapGenerator
|
|||
while (($t = $tokens[++$i]) && is_array($t)) {
|
||||
if (T_STRING === $t[0]) {
|
||||
$class .= $t[1];
|
||||
} else if ($class !== '' && T_WHITESPACE == $t[0]) {
|
||||
} elseif ($class !== '' && T_WHITESPACE == $t[0]) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,6 +146,7 @@ class MergeCollectionListener implements EventSubscriberInterface
|
|||
// Don't set to the snapshot as then we are switching from the
|
||||
// original object to its copy, which might break things
|
||||
$event->setData($originalData);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
use Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface;
|
||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||
use Symfony\Component\Validator\Mapping\MemberMetadata;
|
||||
use Symfony\Component\Validator\GroupSequenceProviderInterface;
|
||||
|
||||
/**
|
||||
* Responsible for walking over and initializing validation on different
|
||||
|
|
|
@ -15,7 +15,7 @@ use Symfony\Component\ClassLoader\ClassMapGenerator;
|
|||
|
||||
class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @dataProvider getTestCreateMapTests
|
||||
*/
|
||||
|
@ -23,7 +23,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$this->assertEquals($expected, ClassMapGenerator::createMap($directory));
|
||||
}
|
||||
|
||||
|
||||
public function getTestCreateMapTests()
|
||||
{
|
||||
return array(
|
||||
|
|
|
@ -4,5 +4,5 @@ namespace ClassMap;
|
|||
|
||||
class SomeClass extends SomeParent implements SomeInterface
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ namespace ClassMap;
|
|||
|
||||
interface SomeInterface
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ namespace ClassMap;
|
|||
|
||||
abstract class SomeParent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ namespace Alpha {
|
|||
namespace Beta {
|
||||
class A {}
|
||||
class B {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a = new stdClass();
|
||||
$a = new stdClass();
|
||||
|
|
|
@ -1 +1 @@
|
|||
This file should be skipped.
|
||||
This file should be skipped.
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
namespace Foo\Bar;
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
class B {}
|
||||
|
|
|
@ -151,7 +151,7 @@ class ChoiceListTest extends \PHPUnit_Framework_TestCase
|
|||
$values = array('2', '1');
|
||||
$this->assertSame(array($this->obj3, $this->obj2), $this->list->getChoicesForValues($values));
|
||||
}
|
||||
|
||||
|
||||
public function testGetChoicesForValuesIgnoresNonExistingValues()
|
||||
{
|
||||
$values = array('1', '2', '5');
|
||||
|
|
|
@ -40,4 +40,4 @@ class RedirectResponseTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertEquals('foo.bar', $response->getTargetUrl());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ use Symfony\Tests\Component\Validator\Fixtures\Entity;
|
|||
use Symfony\Tests\Component\Validator\Fixtures\ConstraintA;
|
||||
use Symfony\Tests\Component\Validator\Fixtures\ConstraintB;
|
||||
use Symfony\Tests\Component\Validator\Fixtures\PropertyConstraint;
|
||||
use Symfony\Tests\Component\Validator\Fixtures\GroupSequenceProvider;
|
||||
|
||||
require_once __DIR__.'/../Fixtures/Entity.php';
|
||||
require_once __DIR__.'/../Fixtures/ConstraintA.php';
|
||||
|
|
Reference in New Issue