Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Nov 17, 2019
1 parent d890db7 commit 82c70fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/EmailAddressDoctrine/EmailAddressLowercaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
return $value;
}

if (!$value instanceof EmailAddress) {
if (! $value instanceof EmailAddress) {
try {
$value = EmailAddress::fromString($value);
} catch (\Throwable $exception) {
Expand Down
2 changes: 1 addition & 1 deletion src/EmailAddressDoctrine/EmailAddressType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
return $value;
}

if (!$value instanceof EmailAddress) {
if (! $value instanceof EmailAddress) {
try {
$value = EmailAddress::fromString($value);
} catch (\Throwable $exception) {
Expand Down
4 changes: 2 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


// configure environment
if (!$_ENV['IS_PHPSTAN']) {
if (! $_ENV['IS_PHPSTAN']) {
Tester\Environment::setup();
date_default_timezone_set('Europe/Prague');
}


// create temporary directory
define('TEMP_DIR', __DIR__ . '/temp/' . (isset($_SERVER['argv']) ? md5(serialize($_SERVER['argv'])) : getmypid()));
if (!$_ENV['IS_PHPSTAN']) {
if (! $_ENV['IS_PHPSTAN']) {
@mkdir(dirname(TEMP_DIR)); // @ - directory may already exist
Tester\Helpers::purge(TEMP_DIR);
ini_set('session.save_path', TEMP_DIR);
Expand Down

0 comments on commit 82c70fa

Please sign in to comment.