Merge branch '4.3' into 4.4
* 4.3: cs fix
This commit is contained in:
commit
388f28f726
@ -12,13 +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\Crawler;
|
||||
use Symfony\Component\DomCrawler\Form as DomCrawlerForm;
|
||||
|
||||
class AbstractBrowserTest extends TestCase
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -401,7 +401,7 @@ class SerializerTest extends TestCase
|
||||
|
||||
public function hasMetadataFor($value): bool
|
||||
{
|
||||
return $value === AbstractDummy::class;
|
||||
return AbstractDummy::class === $value;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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)) {
|
||||
|
Reference in New Issue
Block a user