Merge branch '3.4' into 4.3
* 3.4: cs fix
This commit is contained in:
commit
87ec83c00f
@ -12,12 +12,10 @@
|
|||||||
namespace Symfony\Component\BrowserKit\Tests;
|
namespace Symfony\Component\BrowserKit\Tests;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\BrowserKit\AbstractBrowser;
|
|
||||||
use Symfony\Component\BrowserKit\Client;
|
use Symfony\Component\BrowserKit\Client;
|
||||||
use Symfony\Component\BrowserKit\CookieJar;
|
use Symfony\Component\BrowserKit\CookieJar;
|
||||||
use Symfony\Component\BrowserKit\History;
|
use Symfony\Component\BrowserKit\History;
|
||||||
use Symfony\Component\BrowserKit\Response;
|
use Symfony\Component\BrowserKit\Response;
|
||||||
use Symfony\Component\DomCrawler\Form as DomCrawlerForm;
|
|
||||||
|
|
||||||
class AbstractBrowserTest extends TestCase
|
class AbstractBrowserTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,8 @@ use PHPUnit\Framework\MockObject\MockObject;
|
|||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Form\CallbackTransformer;
|
use Symfony\Component\Form\CallbackTransformer;
|
||||||
use Symfony\Component\Form\Exception\TransformationFailedException;
|
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\Core\Type\HiddenType;
|
||||||
|
use Symfony\Component\Form\Extension\DataCollector\FormDataExtractor;
|
||||||
use Symfony\Component\Form\FormBuilder;
|
use Symfony\Component\Form\FormBuilder;
|
||||||
use Symfony\Component\Form\FormError;
|
use Symfony\Component\Form\FormError;
|
||||||
use Symfony\Component\Form\FormView;
|
use Symfony\Component\Form\FormView;
|
||||||
|
@ -171,12 +171,12 @@ class AbstractObjectNormalizerTest extends TestCase
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidArgumentException;
|
throw new InvalidArgumentException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasMetadataFor($value): bool
|
public function hasMetadataFor($value): bool
|
||||||
{
|
{
|
||||||
return $value === AbstractDummy::class;
|
return AbstractDummy::class === $value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ class SerializerTest extends TestCase
|
|||||||
|
|
||||||
public function hasMetadataFor($value): bool
|
public function hasMetadataFor($value): bool
|
||||||
{
|
{
|
||||||
return $value === AbstractDummy::class;
|
return AbstractDummy::class === $value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ abstract class AbstractFileExtractor
|
|||||||
*/
|
*/
|
||||||
protected function extractFiles($resource)
|
protected function extractFiles($resource)
|
||||||
{
|
{
|
||||||
if (\is_iterable($resource)) {
|
if (is_iterable($resource)) {
|
||||||
$files = [];
|
$files = [];
|
||||||
foreach ($resource as $file) {
|
foreach ($resource as $file) {
|
||||||
if ($this->canBeExtracted($file)) {
|
if ($this->canBeExtracted($file)) {
|
||||||
|
Reference in New Issue
Block a user