fixed CS
This commit is contained in:
parent
62e4342a86
commit
1aabc5da64
4
check_cs
4
check_cs
@ -80,7 +80,9 @@ foreach ($finder as $file) {
|
||||
}, $new);
|
||||
|
||||
// [Structure] A file must always ends with a linefeed character
|
||||
// FIXME
|
||||
if (strlen($new) && "\n" != $new[strlen($new) - 1]) {
|
||||
$new .= "\n";
|
||||
}
|
||||
|
||||
if ($new != $old) {
|
||||
$exit = 1;
|
||||
|
@ -73,4 +73,4 @@ class IndexedReader implements Reader
|
||||
{
|
||||
return $this->delegate->getPropertyAnnotation($property, $annotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -296,4 +296,4 @@ class EntityChoiceList extends ArrayChoiceList
|
||||
|
||||
return $this->unitOfWork->getEntityIdentifier($entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -100,4 +100,4 @@ class EntitiesToArrayTransformer implements DataTransformerInterface
|
||||
|
||||
return $collection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,4 @@ class EntityToIdTransformer implements DataTransformerInterface
|
||||
|
||||
return $entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class MergeCollectionListener implements EventSubscriberInterface
|
||||
|
||||
$event->setData($collection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -275,4 +275,4 @@
|
||||
{% set type = type|default('email') %}
|
||||
{{ block('field_widget') }}
|
||||
{% endspaceless %}
|
||||
{% endblock email_widget %}
|
||||
{% endblock email_widget %}
|
||||
|
@ -52,4 +52,4 @@ EOT
|
||||
|
||||
return parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ EOT
|
||||
|
||||
return parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -67,4 +67,4 @@ EOT
|
||||
|
||||
return parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ EOT
|
||||
|
||||
parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ EOT
|
||||
|
||||
parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -53,4 +53,4 @@ EOT
|
||||
|
||||
parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ EOT
|
||||
|
||||
return parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,4 +62,4 @@ EOT
|
||||
|
||||
parent::execute($input, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class ConnectionFactory
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class ContainerTest extends TestCase
|
||||
|
||||
$this->assertTrue(Type::hasType('test'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ namespace Fixtures\Bundles\AnnotationsBundle\Entity;
|
||||
|
||||
class Test
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ namespace Fixtures\Bundles\Vendor\AnnotationsBundle\Entity;
|
||||
|
||||
class Test
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ namespace Fixtures\Bundles\XmlBundle\Entity;
|
||||
|
||||
class Test
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -14,4 +14,4 @@ namespace Fixtures\Bundles\YamlBundle\Entity;
|
||||
class Test
|
||||
{
|
||||
private $id;
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,4 @@ Fixtures\Bundles\YamlBundle\Entity\Test:
|
||||
type: entity
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
type: integer
|
||||
|
@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ class TestStringFunction extends FunctionNode
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ class TestType extends \Doctrine\DBAL\Types\Type
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,4 +61,4 @@ class XMLSchemaTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertTrue($found, "Neither <doctrine:orm> nor <doctrine:dbal> elements found in given XML. Are namespaces configured correctly?");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ class XmlDoctrineExtensionTest extends AbstractDoctrineExtensionTest
|
||||
$loadXml = new XmlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/config/xml'));
|
||||
$loadXml->load($file.'.xml');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ class YamlDoctrineExtensionTest extends AbstractDoctrineExtensionTest
|
||||
$loadYaml = new YamlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/config/yml'));
|
||||
$loadYaml->load($file.'.yml');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -107,4 +107,4 @@ require_once '$path';
|
||||
echo serialize(\$kernel->handle(unserialize('$request')));
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ class AddConstraintValidatorsPass implements CompilerPassInterface
|
||||
|
||||
$container->getDefinition('validator.validator_factory')->replaceArgument(1, $validators);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ class CompilerDebugDumpPass implements CompilerPassInterface
|
||||
|
||||
return $container->getParameter('kernel.cache_dir').'/'.$class.'Compiler.log';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class FormPass implements CompilerPassInterface
|
||||
|
||||
$container->getDefinition('form.extension')->replaceArgument(3, $guessers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class SessionListener
|
||||
$session->start();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Hello!
|
||||
Hello!
|
||||
|
@ -19,4 +19,4 @@
|
||||
<div id="trace_{{ prefix ~ '_' ~ i }}" style="display: {{ 0 == i ? 'block' : 'none' }}" class="trace">
|
||||
{{ trace.file|file_excerpt(trace.line) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -22,4 +22,4 @@
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -5,4 +5,4 @@
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $view->escape($max_length) ?>"<?php endif ?>
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -2,4 +2,4 @@
|
||||
<?php if (!$child->isRendered()): ?>
|
||||
<?php echo $view['form']->row($child) ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
@ -2,4 +2,4 @@
|
||||
<?php echo $view['form']->label($form) ?>
|
||||
<?php echo $view['form']->errors($form) ?>
|
||||
<?php echo $view['form']->widget($form) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,4 +4,4 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -1 +1 @@
|
||||
<?php echo $view['form']->label($form['file']) ?>
|
||||
<?php echo $view['form']->label($form['file']) ?>
|
||||
|
@ -1 +1 @@
|
||||
<?php echo $view['form']->widget($form) ?>
|
||||
<?php echo $view['form']->widget($form) ?>
|
||||
|
@ -3,4 +3,4 @@
|
||||
name="<?php echo $view->escape($full_name) ?>"
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -4,4 +4,4 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -6,4 +6,4 @@
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -6,4 +6,4 @@
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
<?php foreach ($form as $child): ?>
|
||||
<?php echo $view['form']->row($child); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
@ -5,4 +5,4 @@
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -6,4 +6,4 @@
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
<?php if ($pattern): ?>pattern="<?php echo $pattern ?>"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -11,4 +11,4 @@
|
||||
echo $view['form']->widget($form['second'], array('attr' => array('size' => 1)));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,4 +4,4 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
/>
|
||||
/>
|
||||
|
@ -129,4 +129,4 @@ class Service
|
||||
function onEvent(Event $e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,4 +14,4 @@ namespace Symfony\Bundle\FrameworkBundle\Tests;
|
||||
class TestBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -126,4 +126,4 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
|
||||
array(HttpKernelInterface::SUB_REQUEST),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -35,4 +35,4 @@ class StubTemplateNameParser implements TemplateNameParserInterface
|
||||
|
||||
return new TemplateReference($path, 'php');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@ class StubTranslator implements TranslatorInterface
|
||||
public function getLocale()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
<div id="container">
|
||||
<?php echo $view['form']->render($form, 'FrameworkBundle:Form:text_widget.html.php') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -42,4 +42,4 @@ class AddSecurityVotersPass implements CompilerPassInterface
|
||||
|
||||
$container->getDefinition('security.access.decision_manager')->replaceArgument(0, array_values($voters));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class FactoryConfiguration implements ConfigurationInterface
|
||||
|
||||
return $tb;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -360,4 +360,4 @@ class MainConfiguration implements ConfigurationInterface
|
||||
->end()
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ class ResponseListener
|
||||
$response->headers->setCookie($request->attributes->get(RememberMeServicesInterface::COOKIE_ATTR_NAME));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ class FirewallMap implements FirewallMapInterface
|
||||
|
||||
return array(array(), null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ $container->loadFromExtension('security', array(
|
||||
'acl' => array(
|
||||
'provider' => 'foo',
|
||||
)
|
||||
));
|
||||
));
|
||||
|
@ -17,4 +17,4 @@ $container->loadFromExtension('security', array(
|
||||
'role_hierarchy' => array(
|
||||
'FOO' => array('MOO'),
|
||||
)
|
||||
));
|
||||
));
|
||||
|
@ -12,4 +12,4 @@ $container->loadFromExtension('security', array(
|
||||
'FOO' => 'BAR',
|
||||
'ADMIN' => 'USER',
|
||||
),
|
||||
));
|
||||
));
|
||||
|
@ -13,4 +13,4 @@
|
||||
<sec:acl provider="foo" />
|
||||
</sec:config>
|
||||
|
||||
</container>
|
||||
</container>
|
||||
|
@ -19,4 +19,4 @@
|
||||
<sec:role id="FOO" value="MOO" />
|
||||
</sec:config>
|
||||
|
||||
</container>
|
||||
</container>
|
||||
|
@ -14,4 +14,4 @@
|
||||
<role id="ADMIN" value="USER" />
|
||||
</config>
|
||||
|
||||
</srv:container>
|
||||
</srv:container>
|
||||
|
@ -3,4 +3,4 @@ imports:
|
||||
|
||||
security:
|
||||
acl:
|
||||
provider: foo
|
||||
provider: foo
|
||||
|
@ -11,4 +11,4 @@ security:
|
||||
http_basic: ~
|
||||
|
||||
role_hierarchy:
|
||||
FOO: [MOO]
|
||||
FOO: [MOO]
|
||||
|
@ -63,4 +63,4 @@ class AbstractFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
return $this->getMockForAbstractClass('Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory', array());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,4 +42,4 @@ class LoginController extends ContainerAware
|
||||
{
|
||||
return new Response('', 400);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
class FormLoginBundle extends Bundle
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -16,4 +16,4 @@ form_login_custom_target_path:
|
||||
|
||||
form_login_redirect_to_protected_resource_after_login:
|
||||
pattern: /protected-resource
|
||||
defaults: { _controller: FormLoginBundle:Login:afterLogin }
|
||||
defaults: { _controller: FormLoginBundle:Login:afterLogin }
|
||||
|
@ -3,4 +3,4 @@
|
||||
{% block body %}
|
||||
Hello {{ app.user.username }}!<br /><br />
|
||||
You're browsing to path "{{ app.request.pathInfo }}".
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
@ -18,4 +18,4 @@
|
||||
<input type="submit" name="login" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
@ -80,4 +80,4 @@ class FormLoginTest extends WebTestCase
|
||||
|
||||
$this->deleteTmpDir('StandardFormLogin');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class SecurityRoutingIntegrationTest extends WebTestCase
|
||||
|
||||
$this->deleteTmpDir('StandardFormLogin');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class WebTestCase extends BaseWebTestCase
|
||||
isset($options['debug']) ? $options['debug'] : true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,4 @@ class AppKernel extends Kernel
|
||||
|
||||
return $parameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ return array(
|
||||
new SecurityBundle(),
|
||||
new TwigBundle(),
|
||||
new FormLoginBundle(),
|
||||
);
|
||||
);
|
||||
|
@ -26,4 +26,4 @@ security:
|
||||
access_control:
|
||||
- { path: ^/unprotected_resource$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||
- { path: ^/highly_protected_resource$, roles: IS_ADMIN }
|
||||
- { path: .*, roles: IS_AUTHENTICATED_FULLY }
|
||||
- { path: .*, roles: IS_AUTHENTICATED_FULLY }
|
||||
|
@ -1,3 +1,3 @@
|
||||
imports:
|
||||
- { resource: framework.yml }
|
||||
- { resource: twig.yml }
|
||||
- { resource: twig.yml }
|
||||
|
@ -82,4 +82,4 @@ class MessageDataCollector extends DataCollector
|
||||
{
|
||||
return 'swiftmailer';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -345,4 +345,4 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
|
||||
|
||||
return $leftSide;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ class BooleanNode extends ScalarNode
|
||||
throw $ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -309,4 +309,4 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
|
||||
return $node;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ class BooleanNodeDefinition extends ScalarNodeDefinition
|
||||
return new BooleanNode($this->name, $this->parent);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -223,4 +223,4 @@ class ExprBuilder
|
||||
|
||||
return $expressions;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -70,4 +70,4 @@ class MergeBuilder
|
||||
{
|
||||
return $this->node;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -179,4 +179,4 @@ class NodeBuilder implements NodeParentInterface
|
||||
return $class;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -294,4 +294,4 @@ abstract class NodeDefinition implements NodeParentInterface
|
||||
*/
|
||||
abstract protected function createNode();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -67,4 +67,4 @@ class NormalizationBuilder
|
||||
|
||||
return $this->before[] = new ExprBuilder($this->node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ class ScalarNodeDefinition extends VariableNodeDefinition
|
||||
return new ScalarNode($this->name, $this->parent);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -59,4 +59,4 @@ class TreeBuilder implements NodeParentInterface
|
||||
|
||||
return $this->tree = $this->root->getNode(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ class ValidationBuilder
|
||||
|
||||
return $this->rules[] = new ExprBuilder($this->node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -66,4 +66,4 @@ class VariableNodeDefinition extends NodeDefinition
|
||||
return $node;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ interface ConfigurationInterface
|
||||
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
|
||||
*/
|
||||
function getConfigTreeBuilder();
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user