NTLMResponse()
doesn't comply with the PSR standard 63 );
64 }
65
66 public function NTLMResponse($challenge, $password) 67 {
68 $unicode = $this->ASCIIToUnicode($password);
69 $md4 = mhash(MHASH_MD4, $unicode);
ASCIIToUnicode()
doesn't comply with the PSR standard 34 return (1);
35 }
36
37 public function ASCIIToUnicode($ascii) 38 {
39 for ($unicode = "", $a = 0; $a < strlen($ascii); $a++) {
40 $unicode .= substr($ascii, $a, 1) . chr(0);
get_lines()
doesn't comply with the PSR standard1081 * @access protected
1082 * @return string
1083 */
1084 protected function get_lines()1085 {
1086 // If the connection is bad, give up straight away
1087 if (!is_resource($this->smtp_conn)) {
client_send()
doesn't comply with the PSR standard 992 * @access public
993 * @return integer|boolean The number of bytes sent to the server or false on error
994 */
995 public function client_send($data) 996 {
997 $this->edebug("CLIENT -> SERVER: $data", self::DEBUG_CLIENT);
998 set_error_handler(array($this, 'errorHandler'));
DKIM_Add()
doesn't comply with the PSR standard3868 * @param string $body Body
3869 * @return string
3870 */
3871 public function DKIM_Add($headers_line, $subject, $body)3872 {
3873 $DKIMsignatureType = 'rsa-sha256'; // Signature & hash algorithms
3874 $DKIMcanonicalization = 'relaxed/simple'; // Canonicalization of header/body
As per PSR-1, class methods must be declared in the camelCase
.
It is recommended that you follow PSR standards while developing PHP applications so the code is consistent and can be easily maintained.
class User
{
// invalid: class methods can't be defined in PascalCase
public function GetUser(): array
{
// method implementation here
}
}
class User
{
public function getUser(): array
{
// method implementation here
}
}