removed dead code and fixed CS
This commit is contained in:
parent
9538efaf40
commit
7d581471ce
@ -153,8 +153,6 @@ class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
|
|||||||
{
|
{
|
||||||
$ret = $this->getMetadata($class);
|
$ret = $this->getMetadata($class);
|
||||||
if ($ret && $ret[0]->hasField($property) && !$ret[0]->hasAssociation($property)) {
|
if ($ret && $ret[0]->hasField($property) && !$ret[0]->hasAssociation($property)) {
|
||||||
$mapping = $ret[0]->getFieldMapping($property);
|
|
||||||
|
|
||||||
if (in_array($ret[0]->getTypeOfField($property), array('decimal', 'float'))) {
|
if (in_array($ret[0]->getTypeOfField($property), array('decimal', 'float'))) {
|
||||||
return new ValueGuess(null, Guess::MEDIUM_CONFIDENCE);
|
return new ValueGuess(null, Guess::MEDIUM_CONFIDENCE);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Bridge\Monolog\Processor;
|
namespace Symfony\Bridge\Monolog\Processor;
|
||||||
|
|
||||||
use Monolog\Processor\WebProcessor as BaseWebProcessor;
|
use Monolog\Processor\WebProcessor as BaseWebProcessor;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\Controller;
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\Controller;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\DependencyInjection\ContainerAware;
|
use Symfony\Component\DependencyInjection\ContainerAware;
|
||||||
|
|
||||||
|
@ -240,7 +240,6 @@ class SecurityExtension extends Extension
|
|||||||
private function createFirewall(ContainerBuilder $container, $id, $firewall, &$authenticationProviders, $providerIds)
|
private function createFirewall(ContainerBuilder $container, $id, $firewall, &$authenticationProviders, $providerIds)
|
||||||
{
|
{
|
||||||
// Matcher
|
// Matcher
|
||||||
$i = 0;
|
|
||||||
$matcher = null;
|
$matcher = null;
|
||||||
if (isset($firewall['request_matcher'])) {
|
if (isset($firewall['request_matcher'])) {
|
||||||
$matcher = new Reference($firewall['request_matcher']);
|
$matcher = new Reference($firewall['request_matcher']);
|
||||||
|
@ -35,9 +35,7 @@ class RenderTokenParser extends \Twig_TokenParser
|
|||||||
// @deprecated in 2.2 and will be removed in 2.3
|
// @deprecated in 2.2 and will be removed in 2.3
|
||||||
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
|
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
|
||||||
$this->parser->getStream()->next();
|
$this->parser->getStream()->next();
|
||||||
$attributes = $this->parser->getExpressionParser()->parseExpression();
|
$this->parser->getExpressionParser()->parseExpression();
|
||||||
} else {
|
|
||||||
$attributes = new \Twig_Node_Expression_Array(array(), $token->getLine());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// options
|
// options
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Form;
|
namespace Symfony\Component\Form;
|
||||||
|
|
||||||
use Symfony\Component\Form\Exception\BadMethodCallException;
|
use Symfony\Component\Form\Exception\BadMethodCallException;
|
||||||
use Symfony\Component\Form\Exception\Exception;
|
|
||||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
||||||
use Symfony\Component\PropertyAccess\PropertyPath;
|
use Symfony\Component\PropertyAccess\PropertyPath;
|
||||||
use Symfony\Component\PropertyAccess\PropertyPathInterface;
|
use Symfony\Component\PropertyAccess\PropertyPathInterface;
|
||||||
|
@ -29,11 +29,6 @@ class MockFileSessionStorage extends MockArraySessionStorage
|
|||||||
*/
|
*/
|
||||||
private $savePath;
|
private $savePath;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
private $sessionData;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\HttpKernel\DependencyInjection;
|
namespace Symfony\Component\HttpKernel\DependencyInjection;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
|
||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
use Symfony\Component\HttpKernel\HttpKernel;
|
use Symfony\Component\HttpKernel\HttpKernel;
|
||||||
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
|
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\HttpKernel\EventListener;
|
namespace Symfony\Component\HttpKernel\EventListener;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
|
||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
||||||
use Symfony\Component\HttpKernel\KernelEvents;
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\HttpKernel\Fragment;
|
namespace Symfony\Component\HttpKernel\Fragment;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||||
use Symfony\Component\HttpKernel\Controller\ControllerReference;
|
use Symfony\Component\HttpKernel\Controller\ControllerReference;
|
||||||
|
@ -151,7 +151,7 @@ class ApacheMatcherDumper extends MatcherDumper
|
|||||||
$allow[] = 'E=_ROUTING_allow_'.$method.':1';
|
$allow[] = 'E=_ROUTING_allow_'.$method.':1';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($hostRegex = $compiledRoute->getHostRegex()) {
|
if ($compiledRoute->getHostRegex()) {
|
||||||
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,8 +162,7 @@ class ApacheMatcherDumper extends MatcherDumper
|
|||||||
|
|
||||||
// redirect with trailing slash appended
|
// redirect with trailing slash appended
|
||||||
if ($hasTrailingSlash) {
|
if ($hasTrailingSlash) {
|
||||||
|
if ($compiledRoute->getHostRegex()) {
|
||||||
if ($hostRegex = $compiledRoute->getHostRegex()) {
|
|
||||||
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,7 +172,7 @@ class ApacheMatcherDumper extends MatcherDumper
|
|||||||
|
|
||||||
// the main rule
|
// the main rule
|
||||||
|
|
||||||
if ($hostRegex = $compiledRoute->getHostRegex()) {
|
if ($compiledRoute->getHostRegex()) {
|
||||||
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
$rule[] = sprintf("RewriteCond %%{ENV:__ROUTING_host_%s} =1", $hostRegexUnique);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface
|
|||||||
list($user, $credentials) = $this->getPreAuthenticatedData($request);
|
list($user, $credentials) = $this->getPreAuthenticatedData($request);
|
||||||
} catch (BadCredentialsException $exception) {
|
} catch (BadCredentialsException $exception) {
|
||||||
$this->clearToken();
|
$this->clearToken();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,12 +100,15 @@ class MoFileLoader extends ArrayLoader implements LoaderInterface
|
|||||||
throw new InvalidResourceException("MO stream content has an invalid format.");
|
throw new InvalidResourceException("MO stream content has an invalid format.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$formatRevision = $this->readLong($stream, $isBigEndian);
|
// formatRevision
|
||||||
|
$this->readLong($stream, $isBigEndian);
|
||||||
$count = $this->readLong($stream, $isBigEndian);
|
$count = $this->readLong($stream, $isBigEndian);
|
||||||
$offsetId = $this->readLong($stream, $isBigEndian);
|
$offsetId = $this->readLong($stream, $isBigEndian);
|
||||||
$offsetTranslated = $this->readLong($stream, $isBigEndian);
|
$offsetTranslated = $this->readLong($stream, $isBigEndian);
|
||||||
$sizeHashes = $this->readLong($stream, $isBigEndian);
|
// sizeHashes
|
||||||
$offsetHashes = $this->readLong($stream, $isBigEndian);
|
$this->readLong($stream, $isBigEndian);
|
||||||
|
// offsetHashes
|
||||||
|
$this->readLong($stream, $isBigEndian);
|
||||||
|
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user