BranchActivity: formatting

This commit is contained in:
Thomas Gelf 2021-10-05 22:27:02 +02:00
parent b22511e341
commit 7ad9cf6c6c
1 changed files with 6 additions and 6 deletions

View File

@ -50,9 +50,9 @@ class BranchActivity
public function __construct( public function __construct(
UuidInterface $objectUuid, UuidInterface $objectUuid,
UuidInterface $branchUuid, UuidInterface $branchUuid,
$action, $action,
$objectType, $objectType,
$author, $author,
SerializableValue $modifiedProperties, SerializableValue $modifiedProperties,
SerializableValue $formerProperties SerializableValue $formerProperties
) { ) {
@ -158,8 +158,8 @@ class BranchActivity
$db = $connection->getDbAdapter(); $db = $connection->getDbAdapter();
return $db->delete($this->getObjectTable(), $db->quoteInto( return $db->delete($this->getObjectTable(), $db->quoteInto(
'uuid = ?', 'uuid = ?',
$connection->quoteBinary($this->getObjectUuid()->getBytes())) $connection->quoteBinary($this->getObjectUuid()->getBytes())
); ));
} }
public static function load($ts, Db $connection) public static function load($ts, Db $connection)
@ -176,7 +176,7 @@ class BranchActivity
throw new NotFoundError('Not found'); throw new NotFoundError('Not found');
} }
protected static function fixPgResource(& $value) protected static function fixPgResource(&$value)
{ {
if (is_resource($value)) { if (is_resource($value)) {
$value = stream_get_contents($value); $value = stream_get_contents($value);