@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function connect() { |
| 122 | 122 | try { |
| 123 | - if(empty($this->config) && file_exists(CONFIG_PATH . 'database.php')) { |
|
| 123 | + if (empty($this->config) && file_exists(CONFIG_PATH . 'database.php')) { |
|
| 124 | 124 | $db = array(); |
| 125 | 125 | require CONFIG_PATH . 'database.php'; |
| 126 | 126 | //Note need use the method to set config |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ |
| 131 | 131 | ); |
| 132 | 132 | $this->pdo = new PDO($this->getDsn(), $this->getUsername(), $this->getPassword(), $options); |
| 133 | - if($this->getDriver() == 'mysql') { |
|
| 133 | + if ($this->getDriver() == 'mysql') { |
|
| 134 | 134 | $this->pdo->exec("SET NAMES '" . $this->getCharset() . "' COLLATE '" . $this->getCollation() . "'"); |
| 135 | 135 | $this->pdo->exec("SET CHARACTER SET '" . $this->getCharset() . "'"); |
| 136 | 136 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function getCacheContent() { |
| 158 | 158 | //set some attributes values |
| 159 | 159 | $this->setPropertiesValues(); |
| 160 | - if (! $this->canUseCache()) { |
|
| 160 | + if (!$this->canUseCache()) { |
|
| 161 | 161 | $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); |
| 162 | 162 | return null; |
| 163 | 163 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | public function setCacheContent($result) { |
| 179 | 179 | //set some attributes values |
| 180 | 180 | $this->setPropertiesValues(); |
| 181 | - if (! $this->canUseCache()) { |
|
| 181 | + if (!$this->canUseCache()) { |
|
| 182 | 182 | $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); |
| 183 | 183 | return null; |
| 184 | 184 | } |
@@ -443,7 +443,7 @@ |
||
| 443 | 443 | * @return boolean |
| 444 | 444 | */ |
| 445 | 445 | public function isAllowOverwriting() { |
| 446 | - return $this->overwriteFile ; |
|
| 446 | + return $this->overwriteFile; |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * SOFTWARE. |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | - class Email extends BaseClass{ |
|
| 31 | + class Email extends BaseClass { |
|
| 32 | 32 | /** |
| 33 | 33 | * @var int $wrap |
| 34 | 34 | */ |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | $message = wordwrap($this->message, $this->wrap); |
| 747 | 747 | if ($this->hasAttachments()) { |
| 748 | 748 | $this->setAttachmentHeaders(); |
| 749 | - $message = $this->assembleAttachmentBody(); |
|
| 749 | + $message = $this->assembleAttachmentBody(); |
|
| 750 | 750 | } |
| 751 | 751 | return $message; |
| 752 | 752 | } |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | $this->smtpConfig['connection_timeout'] |
| 827 | 827 | ); |
| 828 | 828 | |
| 829 | - if (! is_resource($this->smtpSocket)) { |
|
| 829 | + if (!is_resource($this->smtpSocket)) { |
|
| 830 | 830 | $this->error = $errorNumber . ': ' . $errorMessage; |
| 831 | 831 | return false; |
| 832 | 832 | } |
@@ -875,7 +875,7 @@ discard block |
||
| 875 | 875 | */ |
| 876 | 876 | if (is_resource($this->smtpSocket)) { |
| 877 | 877 | $method = STREAM_CRYPTO_METHOD_TLS_CLIENT; |
| 878 | - if(version_compare(PHP_VERSION, '5.6', '>=')) { |
|
| 878 | + if (version_compare(PHP_VERSION, '5.6', '>=')) { |
|
| 879 | 879 | $method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; |
| 880 | 880 | } |
| 881 | 881 | stream_socket_enable_crypto($this->smtpSocket, true, $method); |
@@ -983,7 +983,7 @@ discard block |
||
| 983 | 983 | 'To' => $to |
| 984 | 984 | ); |
| 985 | 985 | foreach ($additionalHeaders as $key => $value) { |
| 986 | - if (! isset($this->headers[$key])) { |
|
| 986 | + if (!isset($this->headers[$key])) { |
|
| 987 | 987 | $this->headers[$key] = $value; |
| 988 | 988 | } |
| 989 | 989 | } |