Advertisement
Emmanuel-GM

Untitled

Apr 15th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. >> Lint for application/libraries/email/smtp/smtpworker.php:
  2.  
  3.  
  4. Warning (PHPCS.E.Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Generic.WhiteSpace.DisallowTabIndent.TabsUsed
  5. Spaces must be used to indent lines; tabs are not allowed
  6.  
  7. 39 $tries++;
  8. 40 $response = SMTPCOMAPI::createSender($login, $password, $label);
  9. 41 if ((isset($response['status']) && $response['status'] == "active") || $tries == 5) {
  10. >>> 42 if ((isset($response['status']) && $response['status'] == "active")) {
  11. 43 $sql = "UPDATE companyEmailAccount
  12. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  13. 45 WHERE companyProfileID = ".$this->companyID;
  14.  
  15. Warning (PHPCS.E.Generic.WhiteSpace.ScopeIndent.Incorrect) Generic.WhiteSpace.ScopeIndent.Incorrect
  16. Line indented incorrectly; expected 16 spaces, found 4
  17.  
  18. 39 $tries++;
  19. 40 $response = SMTPCOMAPI::createSender($login, $password, $label);
  20. 41 if ((isset($response['status']) && $response['status'] == "active") || $tries == 5) {
  21. >>> 42 if ((isset($response['status']) && $response['status'] == "active")) {
  22. 43 $sql = "UPDATE companyEmailAccount
  23. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  24. 45 WHERE companyProfileID = ".$this->companyID;
  25.  
  26. Warning (PHPCS.E.Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Generic.WhiteSpace.DisallowTabIndent.TabsUsed
  27. Spaces must be used to indent lines; tabs are not allowed
  28.  
  29. 40 $response = SMTPCOMAPI::createSender($login, $password, $label);
  30. 41 if ((isset($response['status']) && $response['status'] == "active") || $tries == 5) {
  31. 42 if ((isset($response['status']) && $response['status'] == "active")) {
  32. >>> 43 $sql = "UPDATE companyEmailAccount
  33. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  34. 45 WHERE companyProfileID = ".$this->companyID;
  35. 46 $query = $this->CI->db->query($sql);
  36.  
  37. Warning (PHPCS.E.Generic.WhiteSpace.ScopeIndent.Incorrect) Generic.WhiteSpace.ScopeIndent.Incorrect
  38. Line indented incorrectly; expected at least 20 spaces, found 5
  39.  
  40. 40 $response = SMTPCOMAPI::createSender($login, $password, $label);
  41. 41 if ((isset($response['status']) && $response['status'] == "active") || $tries == 5) {
  42. 42 if ((isset($response['status']) && $response['status'] == "active")) {
  43. >>> 43 $sql = "UPDATE companyEmailAccount
  44. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  45. 45 WHERE companyProfileID = ".$this->companyID;
  46. 46 $query = $this->CI->db->query($sql);
  47.  
  48. Warning (PHPCS.E.Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Generic.WhiteSpace.DisallowTabIndent.TabsUsed
  49. Spaces must be used to indent lines; tabs are not allowed
  50.  
  51. 43 $sql = "UPDATE companyEmailAccount
  52. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  53. 45 WHERE companyProfileID = ".$this->companyID;
  54. >>> 46 $query = $this->CI->db->query($sql);
  55. 47 }
  56. 48
  57. 49 break;
  58.  
  59. Warning (PHPCS.E.Generic.WhiteSpace.ScopeIndent.Incorrect) Generic.WhiteSpace.ScopeIndent.Incorrect
  60. Line indented incorrectly; expected at least 20 spaces, found 5
  61.  
  62. 43 $sql = "UPDATE companyEmailAccount
  63. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  64. 45 WHERE companyProfileID = ".$this->companyID;
  65. >>> 46 $query = $this->CI->db->query($sql);
  66. 47 }
  67. 48
  68. 49 break;
  69.  
  70. Warning (PHPCS.E.Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Generic.WhiteSpace.DisallowTabIndent.TabsUsed
  71. Spaces must be used to indent lines; tabs are not allowed
  72.  
  73. 44 SET smtpUsername = '".$login."', smtpPassword = '".$password."', smtpSenderID = '".$response['id']."', smtpAccountID = '".$response['account_id']."'
  74. 45 WHERE companyProfileID = ".$this->companyID;
  75. 46 $query = $this->CI->db->query($sql);
  76. >>> 47 }
  77. 48
  78. 49 break;
  79. 50 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement