[CS] [5.x] Replace easy occurrences of ?: with ??
This commit is contained in:
parent
fe9b188e28
commit
726075c177
@ -26,7 +26,7 @@ final class AllMySmsTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null, string $from = null): TransportInterface
|
||||
{
|
||||
return new AllMySmsTransport('login', 'apiKey', $from, $client ?: $this->createMock(HttpClientInterface::class));
|
||||
return new AllMySmsTransport('login', 'apiKey', $from, $client ?? $this->createMock(HttpClientInterface::class));
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -24,7 +24,7 @@ final class GatewayApiTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return new GatewayApiTransport('authtoken', 'Symfony', $client ?: $this->createMock(HttpClientInterface::class));
|
||||
return new GatewayApiTransport('authtoken', 'Symfony', $client ?? $this->createMock(HttpClientInterface::class));
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -26,7 +26,7 @@ final class GitterTransportTest extends TransportTestCase
|
||||
{
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return (new GitterTransport('token', '5539a3ee5etest0d3255bfef', $client ?: $this->createMock(HttpClientInterface::class)))->setHost('api.gitter.im');
|
||||
return (new GitterTransport('token', '5539a3ee5etest0d3255bfef', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('api.gitter.im');
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -26,7 +26,7 @@ final class IqsmsTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return new IqsmsTransport('login', 'password', 'sender', $client ?: $this->createMock(HttpClientInterface::class));
|
||||
return new IqsmsTransport('login', 'password', 'sender', $client ?? $this->createMock(HttpClientInterface::class));
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -26,7 +26,7 @@ final class LightSmsTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?: $this->createMock(HttpClientInterface::class));
|
||||
return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?? $this->createMock(HttpClientInterface::class));
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -26,7 +26,7 @@ final class OctopushTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?: $this->createMock(HttpClientInterface::class));
|
||||
return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?? $this->createMock(HttpClientInterface::class));
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
@ -26,7 +26,7 @@ final class SpotHitTransportTest extends TransportTestCase
|
||||
*/
|
||||
public function createTransport(?HttpClientInterface $client = null): TransportInterface
|
||||
{
|
||||
return (new SpotHitTransport('api_token', 'MyCompany', $client ?: $this->createMock(HttpClientInterface::class)))->setHost('host.test');
|
||||
return (new SpotHitTransport('api_token', 'MyCompany', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('host.test');
|
||||
}
|
||||
|
||||
public function toStringProvider(): iterable
|
||||
|
Reference in New Issue
Block a user