Merge branch '3.4' into 4.3

* 3.4:
  cs fix
This commit is contained in:
Nicolas Grekas 2019-09-06 16:49:13 +02:00
commit 87ec83c00f
5 changed files with 5 additions and 7 deletions

View File

@ -12,12 +12,10 @@
namespace Symfony\Component\BrowserKit\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\BrowserKit\AbstractBrowser;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\BrowserKit\CookieJar;
use Symfony\Component\BrowserKit\History;
use Symfony\Component\BrowserKit\Response;
use Symfony\Component\DomCrawler\Form as DomCrawlerForm;
class AbstractBrowserTest extends TestCase
{

View File

@ -15,8 +15,8 @@ use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\CallbackTransformer;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Extension\DataCollector\FormDataExtractor;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\DataCollector\FormDataExtractor;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\FormView;

View File

@ -171,12 +171,12 @@ class AbstractObjectNormalizerTest extends TestCase
);
}
throw new InvalidArgumentException;
throw new InvalidArgumentException();
}
public function hasMetadataFor($value): bool
{
return $value === AbstractDummy::class;
return AbstractDummy::class === $value;
}
};

View File

@ -388,7 +388,7 @@ class SerializerTest extends TestCase
public function hasMetadataFor($value): bool
{
return $value === AbstractDummy::class;
return AbstractDummy::class === $value;
}
};

View File

@ -27,7 +27,7 @@ abstract class AbstractFileExtractor
*/
protected function extractFiles($resource)
{
if (\is_iterable($resource)) {
if (is_iterable($resource)) {
$files = [];
foreach ($resource as $file) {
if ($this->canBeExtracted($file)) {