Skip to content

Commit d801232

Browse files
committed
Add Yoda style fixer
1 parent 13deb8e commit d801232

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Bridge/Doctrine/Types/ObjectType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public function convertToDatabaseValue($value)
2323

2424
public function convertToPHPValue($value)
2525
{
26-
if ($value === null) {
26+
if (null === $value) {
2727
return;
2828
}
2929

3030
$value = (is_resource($value)) ? stream_get_contents($value) : $value;
3131
$val = unserialize($value);
32-
if ($val === false && $value !== 'b:0;') {
32+
if (false === $val && 'b:0;' !== $value) {
3333
throw new \LogicException('Conversion exception: ' . $value . '. ' . $this->getName());
3434
}
3535

Bridge/Guzzle/HttpClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function createGuzzle()
2424
}
2525

2626
$version = \GuzzleHttp\ClientInterface::VERSION;
27-
if (substr($version, 0, 1) !== '6') {
27+
if ('6' !== substr($version, 0, 1)) {
2828
throw new \LogicException('This version of Guzzle is not supported.');
2929
}
3030

Tests/Mocks/Action/LoggerAwareAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public function execute($request)
2424

2525
public function supports($request)
2626
{
27-
return $request == 'a request';
27+
return 'a request' == $request;
2828
}
2929
}

0 commit comments

Comments
 (0)