Completed
Push — master ( 5f640f...f30f41 )
by Pierre-Henry
34:09
created
_protected/app/system/modules/mail/forms/processing/MailFormProcess.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,12 +8,11 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or die('Restricted access');
10 10
 
11
-use
12
-PH7\Framework\Mvc\Model\DbConfig,
13
-PH7\Framework\Mail\Mail,
14
-PH7\Framework\Mvc\Request\Http,
15
-PH7\Framework\Mvc\Router\Uri,
16
-PH7\Framework\Url\Header;
11
+use PH7\Framework\Mvc\Model\DbConfig;
12
+use PH7\Framework\Mail\Mail;
13
+use PH7\Framework\Mvc\Request\Http;
14
+use PH7\Framework\Mvc\Router\Uri;
15
+use PH7\Framework\Url\Header;
17 16
 
18 17
 class MailFormProcess extends Form
19 18
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/mail/models/MailModel.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      * @param integer $iRecipient
52 52
      * @param string $sTitle
53 53
      * @param string $sMessage
54
-     * @param string $sCreateDate
55
-     * @return mixed (boolean | integer) Returns the ID of the message on success or FALSE on failure.
54
+     * @param string $sCreatedDate
55
+     * @return string|null (boolean | integer) Returns the ID of the message on success or FALSE on failure.
56 56
      */
57 57
     public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate)
58 58
     {
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
         return $rStmt->execute();
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $iMessageId
79
+     */
77 80
     public function adminDeleteMsg($iMessageId)
78 81
     {
79 82
         $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1');
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
         Db::free($rStmt);
90 93
     }
91 94
 
95
+    /**
96
+     * @param integer $iMessageId
97
+     */
92 98
     public function getMsg($iMessageId)
93 99
     {
94 100
         $rStmt = Db::getInstance()->prepare('SELECT * FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1');
Please login to merge, or discard this patch.
_protected/app/system/modules/newsletter/config/Permission.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use PH7\Framework\Url\Header, PH7\Framework\Mvc\Router\Uri;
11
+use PH7\Framework\Url\Header;
12
+use PH7\Framework\Mvc\Router\Uri;
12 13
 
13 14
 class Permission extends PermissionCore
14 15
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/newsletter/controllers/AdminController.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Navigation\Page,
12
-PH7\Framework\Url\Header,
13
-PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Navigation\Page;
11
+use PH7\Framework\Url\Header;
12
+use PH7\Framework\Mvc\Router\Uri;
14 13
 
15 14
 class AdminController extends Controller
16 15
 {
Please login to merge, or discard this patch.
app/system/modules/newsletter/forms/processing/SubscriptionFormProcess.php 1 patch
Unused Use Statements   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,13 +8,12 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use
12
-PH7\Framework\Util\Various,
13
-PH7\Framework\Cookie\Cookie,
14
-PH7\Framework\Ip\Ip,
15
-PH7\Framework\Date\CDateTime,
16
-PH7\Framework\Mvc\Router\Uri,
17
-PH7\Framework\Mail\Mail;
11
+use PH7\Framework\Util\Various;
12
+use PH7\Framework\Cookie\Cookie;
13
+use PH7\Framework\Ip\Ip;
14
+use PH7\Framework\Date\CDateTime;
15
+use PH7\Framework\Mvc\Router\Uri;
16
+use PH7\Framework\Mail\Mail;
18 17
 
19 18
 class SubscriptionFormProcess extends Form
20 19
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/newsletter/inc/class/Newsletter.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use PH7\Framework\Mvc\Request\Http, PH7\Framework\Mail\Mail;
11
+use PH7\Framework\Mvc\Request\Http;
12
+use PH7\Framework\Mail\Mail;
12 13
 
13 14
 /** Reset the time limit and increase the memory **/
14 15
 @set_time_limit(0);
Please login to merge, or discard this patch.
_protected/app/system/modules/note/controllers/AdminController.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@
 block discarded – undo
6 6
  * @package        PH7 / App / System / Module / Note / Controller
7 7
  */
8 8
 namespace PH7;
9
-use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header;
9
+use PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Url\Header;
10 11
 
11 12
 class AdminController extends MainController
12 13
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/note/controllers/MainController.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,10 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Security\Ban\Ban,
12
-PH7\Framework\Navigation\Page,
13
-PH7\Framework\Mvc\Router\Uri,
14
-PH7\Framework\Url\Header;
10
+use PH7\Framework\Security\Ban\Ban;
11
+use PH7\Framework\Navigation\Page;
12
+use PH7\Framework\Mvc\Router\Uri;
13
+use PH7\Framework\Url\Header;
15 14
 
16 15
 class MainController extends Controller
17 16
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/note/forms/EditNoteForm.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,12 +7,11 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Str\Str,
12
-PH7\Framework\Session\Session,
13
-PH7\Framework\Security\CSRF\Token,
14
-PH7\Framework\Mvc\Request\Http,
15
-PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Str\Str;
11
+use PH7\Framework\Session\Session;
12
+use PH7\Framework\Security\CSRF\Token;
13
+use PH7\Framework\Mvc\Request\Http;
14
+use PH7\Framework\Mvc\Router\Uri;
16 15
 
17 16
 class EditNoteForm
18 17
 {
Please login to merge, or discard this patch.