fixed CS
This commit is contained in:
parent
9188f0507d
commit
3aafa78f4d
@ -109,5 +109,4 @@ EOPHP
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ class ProxyDumper implements DumperInterface
|
|||||||
if (defined('Symfony\Component\DependencyInjection\ContainerInterface::SCOPE_CONTAINER') && ContainerInterface::SCOPE_CONTAINER !== $scope = $definition->getScope(false)) {
|
if (defined('Symfony\Component\DependencyInjection\ContainerInterface::SCOPE_CONTAINER') && ContainerInterface::SCOPE_CONTAINER !== $scope = $definition->getScope(false)) {
|
||||||
$instantiation .= " \$this->scopedServices['$scope']['$id'] =";
|
$instantiation .= " \$this->scopedServices['$scope']['$id'] =";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$methodName = 'get'.Container::camelize($id).'Service';
|
$methodName = 'get'.Container::camelize($id).'Service';
|
||||||
$proxyClass = $this->getProxyClassName($definition);
|
$proxyClass = $this->getProxyClassName($definition);
|
||||||
|
@ -199,7 +199,7 @@ class MarkdownDescriptor extends Descriptor
|
|||||||
$output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no');
|
$output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no');
|
||||||
|
|
||||||
foreach ($definition->getAutowiringTypes() as $autowiringType) {
|
foreach ($definition->getAutowiringTypes() as $autowiringType) {
|
||||||
$output .= "\n".'- Autowiring Type: `'.$autowiringType.'`';
|
$output .= "\n".'- Autowiring Type: `'.$autowiringType.'`';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class PropertyInfoPassTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder', array('findTaggedServiceIds'));
|
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder', array('findTaggedServiceIds'));
|
||||||
|
|
||||||
$container->expects($this->any())
|
$container->expects($this->any())
|
||||||
->method('findTaggedServiceIds')
|
->method('findTaggedServiceIds')
|
||||||
->will($this->returnValue(array()));
|
->will($this->returnValue(array()));
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ class SecurityDataCollector extends DataCollector
|
|||||||
if (null !== $this->logoutUrlGenerator) {
|
if (null !== $this->logoutUrlGenerator) {
|
||||||
$logoutUrl = $this->logoutUrlGenerator->getLogoutPath();
|
$logoutUrl = $this->logoutUrlGenerator->getLogoutPath();
|
||||||
}
|
}
|
||||||
} catch(\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// fail silently when the logout URL cannot be generated
|
// fail silently when the logout URL cannot be generated
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class LdapFactory implements UserProviderFactoryInterface
|
|||||||
->scalarNode('search_dn')->end()
|
->scalarNode('search_dn')->end()
|
||||||
->scalarNode('search_password')->end()
|
->scalarNode('search_password')->end()
|
||||||
->arrayNode('default_roles')
|
->arrayNode('default_roles')
|
||||||
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
|
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
|
||||||
->requiresAtLeastOneElement()
|
->requiresAtLeastOneElement()
|
||||||
->prototype('scalar')->end()
|
->prototype('scalar')->end()
|
||||||
->end()
|
->end()
|
||||||
|
@ -45,5 +45,4 @@ interface ResourceCheckerInterface
|
|||||||
* @return bool True if the resource has not changed since the given timestamp, false otherwise.
|
* @return bool True if the resource has not changed since the given timestamp, false otherwise.
|
||||||
*/
|
*/
|
||||||
public function isFresh(ResourceInterface $resource, $timestamp);
|
public function isFresh(ResourceInterface $resource, $timestamp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ class SymfonyStyle extends OutputStyle
|
|||||||
|
|
||||||
$messages = is_array($message) ? array_values($message) : array($message);
|
$messages = is_array($message) ? array_values($message) : array($message);
|
||||||
foreach ($messages as $message) {
|
foreach ($messages as $message) {
|
||||||
$this->writeln(sprintf(' %s', $message));
|
$this->writeln(sprintf(' %s', $message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ class SymfonyStyle extends OutputStyle
|
|||||||
|
|
||||||
$messages = is_array($message) ? array_values($message) : array($message);
|
$messages = is_array($message) ? array_values($message) : array($message);
|
||||||
foreach ($messages as $message) {
|
foreach ($messages as $message) {
|
||||||
$this->writeln(sprintf(' // %s', $message));
|
$this->writeln(sprintf(' // %s', $message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testInterfaceExtendsDeprecatedInterface()
|
public function testInterfaceExtendsDeprecatedInterface()
|
||||||
{
|
{
|
||||||
set_error_handler(function() { return false; });
|
set_error_handler(function () { return false; });
|
||||||
$e = error_reporting(0);
|
$e = error_reporting(0);
|
||||||
trigger_error('', E_USER_NOTICE);
|
trigger_error('', E_USER_NOTICE);
|
||||||
|
|
||||||
|
@ -622,7 +622,6 @@ EOF;
|
|||||||
*
|
*
|
||||||
* This service is autowired.
|
* This service is autowired.
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($definition->isLazy()) {
|
if ($definition->isLazy()) {
|
||||||
|
@ -1005,7 +1005,6 @@ class FilesystemTest extends FilesystemTestCase
|
|||||||
|
|
||||||
// The compress.zlib:// stream does not support mode x: creates the file, errors "failed to open stream: operation failed" and returns false
|
// The compress.zlib:// stream does not support mode x: creates the file, errors "failed to open stream: operation failed" and returns false
|
||||||
$this->filesystem->tempnam($dirname, 'bar');
|
$this->filesystem->tempnam($dirname, 'bar');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTempnamWithPHPTempSchemeFails()
|
public function testTempnamWithPHPTempSchemeFails()
|
||||||
|
@ -132,7 +132,7 @@ class ProcessFailedExceptionTest extends \PHPUnit_Framework_TestCase
|
|||||||
->method('isOutputDisabled')
|
->method('isOutputDisabled')
|
||||||
->will($this->returnValue(true));
|
->will($this->returnValue(true));
|
||||||
|
|
||||||
$process->expects($this->once())
|
$process->expects($this->once())
|
||||||
->method('getWorkingDirectory')
|
->method('getWorkingDirectory')
|
||||||
->will($this->returnValue($workingDirectory));
|
->will($this->returnValue($workingDirectory));
|
||||||
|
|
||||||
|
@ -105,5 +105,4 @@ class LdapUserProvider implements UserProviderInterface
|
|||||||
{
|
{
|
||||||
return $class === 'Symfony\Component\Security\Core\User\User';
|
return $class === 'Symfony\Component\Security\Core\User\User';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -79,5 +79,4 @@ class TargetOperationTest extends AbstractOperationTest
|
|||||||
{
|
{
|
||||||
return new TargetOperation($source, $target);
|
return new TargetOperation($source, $target);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class Unescaper
|
|||||||
/**
|
/**
|
||||||
* Regex fragment that matches an escaped character in a double quoted string.
|
* Regex fragment that matches an escaped character in a double quoted string.
|
||||||
*/
|
*/
|
||||||
const REGEX_ESCAPED_CHARACTER = "\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)";
|
const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unescapes a single quoted string.
|
* Unescapes a single quoted string.
|
||||||
|
Reference in New Issue
Block a user