From 16347c52ba55ee25ea2df7a4c5edf9e7ebbb21c0 Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Wed, 29 Mar 2017 11:16:21 -0700 Subject: [PATCH] Updated coding standards. - Updates testing on php 7.1 - Fixes #86 --- .travis.yml | 2 +- message_subscribe_email/message_subscribe_email.module | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a2e8401..141bcba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,9 @@ language: php sudo: false php: - - 5.5 - 5.6 - 7.0 + - 7.1 env: matrix: diff --git a/message_subscribe_email/message_subscribe_email.module b/message_subscribe_email/message_subscribe_email.module index 6f890ac..578c007 100644 --- a/message_subscribe_email/message_subscribe_email.module +++ b/message_subscribe_email/message_subscribe_email.module @@ -53,7 +53,7 @@ function message_subscribe_email_message_subscribe_get_subscribers_alter(array & return; } - $flag_ids = array(); + $flag_ids = []; foreach ($flags as $flag) { $flag_ids[] = $flag->id(); } @@ -65,7 +65,7 @@ function message_subscribe_email_message_subscribe_get_subscribers_alter(array & } $query = db_select('flagging', 'f'); - $result = $query->fields('f', array('uid')) + $result = $query->fields('f', ['uid']) ->condition('flag_id', $flag_ids, 'IN') ->condition('uid', array_keys($uids), 'IN') // Ensure to grab the correct flagging.