Skip to content

Commit 468c68e

Browse files
committed
Code cleanup
1 parent c53d319 commit 468c68e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.scrutinizer.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tools:
2-
php_sim: true
2+
php_sim:
3+
min_mass: 36
34
php_pdepend: true
45
php_analyzer: true
56
php_code_coverage: false

SmartmessagesAPI.class.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,7 @@ public function deletetemplate($templateid)
912912
* or an ISO-format UTC date ('yyyy-mm-dd hh:mm:ss')
913913
* @param boolean $continuous Is this a continuous mailshot? (never completes, existing subs are ignored,
914914
* new subscriptions are sent a message immediately, ideal for 'welcome' messages)
915-
* @param array $elements For future expansion; ignore for now
916-
* @return integer of the new mailshot id, or false on failure
915+
* @return integer|bool ID of the new mailshot id, or false on failure
917916
* @access public
918917
*/
919918
public function sendmailshot(
@@ -926,8 +925,7 @@ public function sendmailshot(
926925
$fromname = '',
927926
$replyto = '',
928927
$when = 'now',
929-
$continuous = false,
930-
$elements = array()
928+
$continuous = false
931929
) {
932930
$res = $this->dorequest(
933931
'sendmailshot',
@@ -988,8 +986,8 @@ protected function dorequest(
988986
//Make the request (must have fopen wrappers enabled)
989987
if ($this->debug) {
990988
echo "<h1>$verb Request (" . htmlspecialchars($command) . "):</h1><p>" . htmlspecialchars(
991-
$url
992-
) . "</p>\n";
989+
$url
990+
) . "</p>\n";
993991
}
994992
if ($post) {
995993
$response = $this->doPostRequest($url, $params, $files);

0 commit comments

Comments
 (0)