fixed CS
This commit is contained in:
parent
5c15496b5c
commit
a7cd5f54ef
@ -212,7 +212,6 @@ class FormExtension extends \Twig_Extension
|
||||
{
|
||||
$mainTemplate = in_array($section, array('widget', 'row'));
|
||||
if ($mainTemplate && $view->isRendered()) {
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -5,4 +5,3 @@ name="<?php echo $view->escape($full_name) ?>"
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $view->escape($max_length) ?>" <?php endif ?>
|
||||
<?php if ($pattern): ?>pattern="<?php echo $view->escape($pattern) ?>" <?php endif ?>
|
||||
<?php foreach ($attr as $k => $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>
|
||||
|
||||
|
@ -2,4 +2,3 @@
|
||||
<?php echo $view['form']->renderBlock('field_rows') ?>
|
||||
<?php echo $view['form']->rest($form) ?>
|
||||
</div>
|
||||
|
||||
|
@ -193,7 +193,6 @@ class FormHelper extends Helper
|
||||
{
|
||||
$mainTemplate = in_array($section, array('row', 'widget'));
|
||||
if ($mainTemplate && $view->isRendered()) {
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,6 @@ class FunctionNode implements NodeInterface
|
||||
$xpath->addCondition(sprintf('contains(string(.), %s)', XPathExpr::xpathLiteral($expr)));
|
||||
|
||||
// FIXME: Currently case insensitive matching doesn't seem to be happening
|
||||
|
||||
return $xpath;
|
||||
}
|
||||
|
||||
@ -264,7 +263,6 @@ class FunctionNode implements NodeInterface
|
||||
|
||||
if (false === strpos($s, 'n')) {
|
||||
// Just a b
|
||||
|
||||
return array(0, intval((string) $s));
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,6 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
public function isRequired()
|
||||
{
|
||||
if (null === $this->parent || $this->parent->isRequired()) {
|
||||
|
||||
return $this->required;
|
||||
}
|
||||
|
||||
@ -287,7 +286,6 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
public function isReadOnly()
|
||||
{
|
||||
if (null === $this->parent || !$this->parent->isReadOnly()) {
|
||||
|
||||
return $this->readOnly;
|
||||
}
|
||||
|
||||
@ -661,7 +659,6 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
{
|
||||
foreach ($this->children as $child) {
|
||||
if (!$child->isEmpty()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -687,7 +684,6 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
if (!$this->readOnly) {
|
||||
foreach ($this->children as $child) {
|
||||
if (!$child->isValid()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -822,7 +818,6 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
public function get($name)
|
||||
{
|
||||
if (isset($this->children[$name])) {
|
||||
|
||||
return $this->children[$name];
|
||||
}
|
||||
|
||||
|
@ -237,4 +237,3 @@ class RequestMatcher implements RequestMatcherInterface
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -182,6 +182,7 @@ class PdoSessionStorage extends NativeSessionStorage
|
||||
|
||||
if (count($sessionRows) == 1) {
|
||||
$session = is_resource($sessionRows[0][0]) ? stream_get_contents($sessionRows[0][0]) : $sessionRows[0][0];
|
||||
|
||||
return base64_decode($session);
|
||||
}
|
||||
|
||||
|
@ -66,6 +66,7 @@ class ContextListener implements ListenerInterface
|
||||
|
||||
if (null === $session || null === $token = $session->get('_security_'.$this->contextKey)) {
|
||||
$this->context->setToken(null);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
namespace Symfony\Tests\Bridge\Doctrine\Logger;
|
||||
|
||||
|
||||
class DbalLoggerTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testLogNonUtf8()
|
||||
|
@ -199,4 +199,3 @@ class RequestMatcherTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertFalse($matcher->matches($request));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user