...
 
Commits (9)
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "a57ea1093cd0175a2b836ebaae6a9c0e",
"content-hash": "a06bd42dea0037b9f103b24bab12f2fa",
"packages": [
{
"name": "alchemy/zippy",
......@@ -3117,17 +3117,17 @@
},
{
"name": "drupal/redis",
"version": "1.1.0",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/redis.git",
"reference": "8.x-1.1"
"reference": "8.x-1.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/redis-8.x-1.1.zip",
"reference": "8.x-1.1",
"shasum": "33337fe1cbd2824797e87533b30e4886b48ecd77"
"url": "https://ftp.drupal.org/files/projects/redis-8.x-1.2.zip",
"reference": "8.x-1.2",
"shasum": "6b8847a0816a6e400d495aed1e9dde4c594d6e2b"
},
"require": {
"drupal/core": "~8.0"
......@@ -3141,8 +3141,8 @@
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.1",
"datestamp": "1541600580",
"version": "8.x-1.2",
"datestamp": "1568275684",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
......
......@@ -2,6 +2,7 @@ module:
admin_toolbar: 0
admin_toolbar_tools: 0
automated_cron: 0
basic_auth: 0
better_exposed_filters: 0
block: 0
block_content: 0
......
......@@ -27,7 +27,7 @@ class IssuesSanitiseCommand extends Command {
*
* @var \Drupal\contrib_tracker\ContributionStorageInterface
*/
protected $contribTrackerStorage;
protected $contribTrackStorage;
/**
* Drupal\Core\Entity\EntityTypeManagerInterface definition.
......@@ -46,15 +46,15 @@ class IssuesSanitiseCommand extends Command {
/**
* IssuesSanitiseCommand constructor.
*
* @param \Drupal\contrib_tracker\ContributionStorageInterface $contrib_tracker_storage
* @param \Drupal\contrib_tracker\ContributionStorageInterface $contribTrackStorage
* The contrib tracker storage service.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager service.
* @param \Drupal\Core\Database\Connection $database
* The database connection.
*/
public function __construct(ContributionStorageInterface $contrib_tracker_storage, EntityTypeManagerInterface $entity_type_manager, Connection $database) {
$this->contribTrackerStorage = $contrib_tracker_storage;
public function __construct(ContributionStorageInterface $contribTrackStorage, EntityTypeManagerInterface $entity_type_manager, Connection $database) {
$this->$contribTrackStorage = $contribTrackStorage;
$this->entityTypeManager = $entity_type_manager;
$this->database = $database;
parent::__construct();
......@@ -128,8 +128,8 @@ protected function getDuplicateIssueDoIds() {
// SELECT entity_id, SUBSTRING_INDEX(field_issue_link_uri, "/", -1) AS nid,
// COUNT(*) as c FROM node__field_issue_link GROUP BY nid HAVING c > 1
// ORDER BY c DESC;.
$q = $this->database->query("SELECT SUBSTRING_INDEX(field_issue_link_uri, '/', -1) AS doissueid, COUNT(entity_id) as c FROM {node__field_issue_link} GROUP BY doissueid HAVING COUNT(entity_id) > 1 ORDER BY c DESC;");
return $q->fetchCol(0);
$results = $this->database->query("SELECT SUBSTRING_INDEX(field_issue_link_uri, '/', -1) AS doissueid, COUNT(entity_id) as c FROM {node__field_issue_link} GROUP BY doissueid HAVING COUNT(entity_id) > 1 ORDER BY c DESC;");
return $results->fetchCol(0);
}
/**
......