Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworley committed Mar 17, 2023
1 parent 1a954eb commit cf8c357
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/QuantQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/**
* Additional handling for Quant queue items.
*
*
* @see https://git.drupalcode.org/project/queue_unique
*/
class QuantQueue extends DatabaseQueue {
Expand Down Expand Up @@ -41,7 +41,8 @@ public function doCreateItem($data) {
'hash' => static::hash($this->name, $serialized_data),
]);
return $query->execute();
} catch (IntegrityConstraintViolationException $err) {
}
catch (IntegrityConstraintViolationException $err) {
return FALSE;
}
}
Expand Down Expand Up @@ -87,5 +88,4 @@ public function schemaDefinition() {
);
}


}
}
20 changes: 13 additions & 7 deletions src/QuantQueueFactory.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<?php

namespace Drupal\quant;

use Drupal\Core\Queue\QueueDatabaseFactory;

/**
* {@inheritdoc}
*/
class QuantQueueFactory extends QueueDatabaseFactory {
/**
* {@inheritdoc}
*/
public function get($name) {
return new QuantQueue($name, $this->connection);
}
}

/**
* {@inheritdoc}
*/
public function get($name) {
return new QuantQueue($name, $this->connection);
}

}

0 comments on commit cf8c357

Please sign in to comment.