@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | class DatabaseCollector extends BaseCollector |
| 23 | 23 | { |
| 24 | - /** |
|
| 24 | + /** |
|
| 25 | 25 | * {@inheritDoc} |
| 26 | 26 | */ |
| 27 | 27 | protected $hasTimeline = true; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
| 67 | - /** |
|
| 67 | + /** |
|
| 68 | 68 | * La méthode statique utilisée lors des événements pour collecter des données. |
| 69 | 69 | */ |
| 70 | 70 | public static function collect(Event $event) |
@@ -78,141 +78,141 @@ discard block |
||
| 78 | 78 | // Fournit la valeur par défaut au cas où elle n'est pas définie |
| 79 | 79 | $max = $config->max_queries ?: 100; |
| 80 | 80 | |
| 81 | - if (count(static::$queries) < $max) { |
|
| 81 | + if (count(static::$queries) < $max) { |
|
| 82 | 82 | static::$queries[] = (object) $result->details(); |
| 83 | - } |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - /** |
|
| 87 | - * {@inheritDoc} |
|
| 88 | - */ |
|
| 89 | - protected function formatTimelineData(): array |
|
| 90 | - { |
|
| 91 | - $data = []; |
|
| 92 | - |
|
| 93 | - foreach ($this->connections as $alias => $connection) { |
|
| 94 | - $data[] = [ |
|
| 95 | - 'name' => 'Connecting to Database: "' . $connection->getDatabase() . '". Config: "' . $alias . '"', |
|
| 96 | - 'component' => 'Database', |
|
| 97 | - 'start' => $connection->getConnectStart(), |
|
| 98 | - 'duration' => $connection->getConnectDuration(), |
|
| 99 | - ]; |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - foreach (static::$queries as $query) { |
|
| 103 | - $data[] = [ |
|
| 104 | - 'name' => 'Query', |
|
| 105 | - 'component' => 'Database', |
|
| 106 | - 'query' => $query->sql, |
|
| 107 | - 'start' => $query->start, |
|
| 108 | - 'duration' => $query->duration |
|
| 109 | - ]; |
|
| 110 | - } |
|
| 111 | - |
|
| 112 | - return $data; |
|
| 113 | - } |
|
| 83 | + } |
|
| 84 | + } |
|
| 114 | 85 | |
| 115 | 86 | /** |
| 116 | - * {@inheritDoc} |
|
| 117 | - */ |
|
| 118 | - public function display(): array |
|
| 119 | - { |
|
| 120 | - // Mots clés que nous voulons mettre en gras |
|
| 121 | - $highlight = [ |
|
| 122 | - 'SELECT', |
|
| 123 | - 'DISTINCT', |
|
| 124 | - 'FROM', |
|
| 125 | - 'WHERE', |
|
| 126 | - 'AND', |
|
| 127 | - 'INNER JOIN', |
|
| 128 | - 'LEFT JOIN', |
|
| 129 | - 'RIGHT JOIN', |
|
| 130 | - 'JOIN', |
|
| 131 | - 'ORDER BY', |
|
| 132 | - 'ASC', |
|
| 133 | - 'DESC', |
|
| 134 | - 'GROUP BY', |
|
| 135 | - 'LIMIT', |
|
| 136 | - 'INSERT', |
|
| 137 | - 'INTO', |
|
| 138 | - 'VALUES', |
|
| 139 | - 'UPDATE', |
|
| 140 | - 'OR ', |
|
| 141 | - 'HAVING', |
|
| 142 | - 'OFFSET', |
|
| 143 | - 'NOT IN', |
|
| 144 | - 'IN', |
|
| 145 | - 'NOT LIKE', |
|
| 146 | - 'LIKE', |
|
| 147 | - 'COUNT', |
|
| 148 | - 'MAX', |
|
| 149 | - 'MIN', |
|
| 150 | - 'ON', |
|
| 151 | - 'AS', |
|
| 152 | - 'AVG', |
|
| 153 | - 'SUM', |
|
| 154 | - 'UPPER', |
|
| 155 | - 'LOWER', |
|
| 156 | - '(', |
|
| 157 | - ')', |
|
| 158 | - ]; |
|
| 159 | - |
|
| 160 | - $data = [ |
|
| 161 | - 'queries' => [], |
|
| 162 | - ]; |
|
| 87 | + * {@inheritDoc} |
|
| 88 | + */ |
|
| 89 | + protected function formatTimelineData(): array |
|
| 90 | + { |
|
| 91 | + $data = []; |
|
| 92 | + |
|
| 93 | + foreach ($this->connections as $alias => $connection) { |
|
| 94 | + $data[] = [ |
|
| 95 | + 'name' => 'Connecting to Database: "' . $connection->getDatabase() . '". Config: "' . $alias . '"', |
|
| 96 | + 'component' => 'Database', |
|
| 97 | + 'start' => $connection->getConnectStart(), |
|
| 98 | + 'duration' => $connection->getConnectDuration(), |
|
| 99 | + ]; |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + foreach (static::$queries as $query) { |
|
| 103 | + $data[] = [ |
|
| 104 | + 'name' => 'Query', |
|
| 105 | + 'component' => 'Database', |
|
| 106 | + 'query' => $query->sql, |
|
| 107 | + 'start' => $query->start, |
|
| 108 | + 'duration' => $query->duration |
|
| 109 | + ]; |
|
| 110 | + } |
|
| 111 | + |
|
| 112 | + return $data; |
|
| 113 | + } |
|
| 114 | + |
|
| 115 | + /** |
|
| 116 | + * {@inheritDoc} |
|
| 117 | + */ |
|
| 118 | + public function display(): array |
|
| 119 | + { |
|
| 120 | + // Mots clés que nous voulons mettre en gras |
|
| 121 | + $highlight = [ |
|
| 122 | + 'SELECT', |
|
| 123 | + 'DISTINCT', |
|
| 124 | + 'FROM', |
|
| 125 | + 'WHERE', |
|
| 126 | + 'AND', |
|
| 127 | + 'INNER JOIN', |
|
| 128 | + 'LEFT JOIN', |
|
| 129 | + 'RIGHT JOIN', |
|
| 130 | + 'JOIN', |
|
| 131 | + 'ORDER BY', |
|
| 132 | + 'ASC', |
|
| 133 | + 'DESC', |
|
| 134 | + 'GROUP BY', |
|
| 135 | + 'LIMIT', |
|
| 136 | + 'INSERT', |
|
| 137 | + 'INTO', |
|
| 138 | + 'VALUES', |
|
| 139 | + 'UPDATE', |
|
| 140 | + 'OR ', |
|
| 141 | + 'HAVING', |
|
| 142 | + 'OFFSET', |
|
| 143 | + 'NOT IN', |
|
| 144 | + 'IN', |
|
| 145 | + 'NOT LIKE', |
|
| 146 | + 'LIKE', |
|
| 147 | + 'COUNT', |
|
| 148 | + 'MAX', |
|
| 149 | + 'MIN', |
|
| 150 | + 'ON', |
|
| 151 | + 'AS', |
|
| 152 | + 'AVG', |
|
| 153 | + 'SUM', |
|
| 154 | + 'UPPER', |
|
| 155 | + 'LOWER', |
|
| 156 | + '(', |
|
| 157 | + ')', |
|
| 158 | + ]; |
|
| 159 | + |
|
| 160 | + $data = [ |
|
| 161 | + 'queries' => [], |
|
| 162 | + ]; |
|
| 163 | 163 | |
| 164 | 164 | |
| 165 | - foreach (static::$queries as $query) { |
|
| 166 | - $sql = $query->sql; |
|
| 165 | + foreach (static::$queries as $query) { |
|
| 166 | + $sql = $query->sql; |
|
| 167 | 167 | |
| 168 | - foreach ($highlight as $term) { |
|
| 169 | - $sql = str_replace($term, "<strong>{$term}</strong>", $sql); |
|
| 170 | - } |
|
| 168 | + foreach ($highlight as $term) { |
|
| 169 | + $sql = str_replace($term, "<strong>{$term}</strong>", $sql); |
|
| 170 | + } |
|
| 171 | 171 | |
| 172 | - $data['queries'][] = [ |
|
| 172 | + $data['queries'][] = [ |
|
| 173 | 173 | 'duration' => (number_format($query->duration, 5) * 1000) . ' ms', |
| 174 | 174 | 'sql' => $sql, |
| 175 | 175 | 'affected_rows' => $query->affected_rows |
| 176 | - ]; |
|
| 177 | - } |
|
| 176 | + ]; |
|
| 177 | + } |
|
| 178 | 178 | |
| 179 | - return $data; |
|
| 180 | - } |
|
| 181 | - |
|
| 182 | - /** |
|
| 183 | - * {@inheritDoc} |
|
| 184 | - */ |
|
| 185 | - public function getBadgeValue(): int |
|
| 186 | - { |
|
| 187 | - return count(static::$queries); |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - /** |
|
| 191 | - * {@inheritDoc} |
|
| 192 | - * |
|
| 193 | - * @return string Le nombre de requêtes (entre parenthèses) ou une chaîne vide. |
|
| 194 | - */ |
|
| 195 | - public function getTitleDetails(): string |
|
| 196 | - { |
|
| 197 | - return '(' . count(static::$queries) . ' Queries across ' . ($countConnection = count($this->connections)) . ' Connection' . |
|
| 198 | - ($countConnection > 1 ? 's' : '') . ')'; |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - /** |
|
| 202 | - * {@inheritDoc} |
|
| 203 | - */ |
|
| 204 | - public function isEmpty(): bool |
|
| 205 | - { |
|
| 206 | - return empty(static::$queries); |
|
| 207 | - } |
|
| 208 | - |
|
| 209 | - /** |
|
| 210 | - * {@inheritDoc} |
|
| 211 | - */ |
|
| 212 | - public function icon(): string |
|
| 213 | - { |
|
| 214 | - return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADMSURBVEhLY6A3YExLSwsA4nIycQDIDIhRWEBqamo/UNF/SjDQjF6ocZgAKPkRiFeEhoYyQ4WIBiA9QAuWAPEHqBAmgLqgHcolGQD1V4DMgHIxwbCxYD+QBqcKINseKo6eWrBioPrtQBq/BcgY5ht0cUIYbBg2AJKkRxCNWkDQgtFUNJwtABr+F6igE8olGQD114HMgHIxAVDyAhA/AlpSA8RYUwoeXAPVex5qHCbIyMgwBCkAuQJIY00huDBUz/mUlBQDqHGjgBjAwAAACexpph6oHSQAAAAASUVORK5CYII='; |
|
| 215 | - } |
|
| 179 | + return $data; |
|
| 180 | + } |
|
| 181 | + |
|
| 182 | + /** |
|
| 183 | + * {@inheritDoc} |
|
| 184 | + */ |
|
| 185 | + public function getBadgeValue(): int |
|
| 186 | + { |
|
| 187 | + return count(static::$queries); |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * {@inheritDoc} |
|
| 192 | + * |
|
| 193 | + * @return string Le nombre de requêtes (entre parenthèses) ou une chaîne vide. |
|
| 194 | + */ |
|
| 195 | + public function getTitleDetails(): string |
|
| 196 | + { |
|
| 197 | + return '(' . count(static::$queries) . ' Queries across ' . ($countConnection = count($this->connections)) . ' Connection' . |
|
| 198 | + ($countConnection > 1 ? 's' : '') . ')'; |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * {@inheritDoc} |
|
| 203 | + */ |
|
| 204 | + public function isEmpty(): bool |
|
| 205 | + { |
|
| 206 | + return empty(static::$queries); |
|
| 207 | + } |
|
| 208 | + |
|
| 209 | + /** |
|
| 210 | + * {@inheritDoc} |
|
| 211 | + */ |
|
| 212 | + public function icon(): string |
|
| 213 | + { |
|
| 214 | + return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADMSURBVEhLY6A3YExLSwsA4nIycQDIDIhRWEBqamo/UNF/SjDQjF6ocZgAKPkRiFeEhoYyQ4WIBiA9QAuWAPEHqBAmgLqgHcolGQD1V4DMgHIxwbCxYD+QBqcKINseKo6eWrBioPrtQBq/BcgY5ht0cUIYbBg2AJKkRxCNWkDQgtFUNJwtABr+F6igE8olGQD114HMgHIxAVDyAhA/AlpSA8RYUwoeXAPVex5qHCbIyMgwBCkAuQJIY00huDBUz/mUlBQDqHGjgBjAwAAACexpph6oHSQAAAAASUVORK5CYII='; |
|
| 215 | + } |
|
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | 218 | * Obtient les connexions à partir de la configuration de la base de données |
@@ -429,7 +429,7 @@ |
||
| 429 | 429 | */ |
| 430 | 430 | protected function idValue(array|object $data) |
| 431 | 431 | { |
| 432 | - if (is_object($data) && isset($data->{$this->primaryKey})) { |
|
| 432 | + if (is_object($data) && isset($data->{$this->primaryKey})) { |
|
| 433 | 433 | return $data->{$this->primaryKey}; |
| 434 | 434 | } |
| 435 | 435 | |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * @var Email |
|
| 26 | - */ |
|
| 25 | + * @var Email |
|
| 26 | + */ |
|
| 27 | 27 | protected $mailer; |
| 28 | 28 | |
| 29 | 29 | private ?Mailer $transporter = null; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * {@inheritDoc} |
|
| 163 | + * {@inheritDoc} |
|
| 164 | 164 | */ |
| 165 | 165 | public function alt(string $content) : self |
| 166 | 166 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * {@inheritDoc} |
|
| 171 | + * {@inheritDoc} |
|
| 172 | 172 | */ |
| 173 | 173 | public function attach(array|string $path, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'attachment'): self |
| 174 | 174 | { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | - * {@inheritDoc} |
|
| 187 | + * {@inheritDoc} |
|
| 188 | 188 | */ |
| 189 | 189 | public function attachBinary($binary, string $name, string $encoding = self::ENCODING_BASE64, string $type = '', string $disposition = 'attachment'): self |
| 190 | 190 | { |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | - * {@inheritDoc} |
|
| 213 | + * {@inheritDoc} |
|
| 214 | 214 | */ |
| 215 | 215 | public function cc(array|string $address, bool|string $name = '', bool $set = false): self |
| 216 | 216 | { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * {@inheritDoc} |
|
| 262 | + * {@inheritDoc} |
|
| 263 | 263 | */ |
| 264 | 264 | public function from(string $address, string $name = ''): self |
| 265 | 265 | { |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | - * {@inheritDoc} |
|
| 272 | + * {@inheritDoc} |
|
| 273 | 273 | */ |
| 274 | 274 | public function header(array|string $name, ?string $value = null): self |
| 275 | 275 | { |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | - * {@inheritDoc} |
|
| 298 | + * {@inheritDoc} |
|
| 299 | 299 | */ |
| 300 | 300 | public function message(string $message): self |
| 301 | 301 | { |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | - * {@inheritDoc} |
|
| 306 | + * {@inheritDoc} |
|
| 307 | 307 | */ |
| 308 | 308 | public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self |
| 309 | 309 | { |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | /** |
| 352 | - * {@inheritDoc} |
|
| 352 | + * {@inheritDoc} |
|
| 353 | 353 | */ |
| 354 | 354 | public function subject(string $subject) : self |
| 355 | 355 | { |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | /** |
| 372 | - * {@inheritDoc} |
|
| 372 | + * {@inheritDoc} |
|
| 373 | 373 | */ |
| 374 | 374 | public function to(array|string $address, bool|string $name = '', bool $set = false): self |
| 375 | 375 | { |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | - * {@inheritDoc} |
|
| 388 | + * {@inheritDoc} |
|
| 389 | 389 | */ |
| 390 | 390 | public function lastId(): string |
| 391 | 391 | { |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | ]; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @var Mailer |
|
| 20 | - */ |
|
| 19 | + * @var Mailer |
|
| 20 | + */ |
|
| 21 | 21 | protected $mailer; |
| 22 | 22 | |
| 23 | 23 | public function __construct(bool $debug = false) |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * {@inheritDoc} |
|
| 164 | + * {@inheritDoc} |
|
| 165 | 165 | */ |
| 166 | 166 | public function alt(string $content) : self |
| 167 | 167 | { |
@@ -171,8 +171,8 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * {@inheritDoc} |
|
| 175 | - * |
|
| 174 | + * {@inheritDoc} |
|
| 175 | + * |
|
| 176 | 176 | * @throws \PHPMailer\PHPMailer\Exception |
| 177 | 177 | */ |
| 178 | 178 | public function attach(array|string $path, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'attachment'): self |
@@ -189,8 +189,8 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
| 192 | - * {@inheritDoc} |
|
| 193 | - * |
|
| 192 | + * {@inheritDoc} |
|
| 193 | + * |
|
| 194 | 194 | * @throws \PHPMailer\PHPMailer\Exception |
| 195 | 195 | */ |
| 196 | 196 | public function attachBinary($binary, string $name, string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'attachment'): self |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | - * {@inheritDoc} |
|
| 225 | - * |
|
| 224 | + * {@inheritDoc} |
|
| 225 | + * |
|
| 226 | 226 | * @throws \PHPMailer\PHPMailer\Exception |
| 227 | 227 | */ |
| 228 | 228 | public function cc(array|string $address, bool|string $name = '', bool $set = false): self |
@@ -255,8 +255,8 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
| 258 | - * {@inheritDoc} |
|
| 259 | - * |
|
| 258 | + * {@inheritDoc} |
|
| 259 | + * |
|
| 260 | 260 | * @throws \PHPMailer\PHPMailer\Exception |
| 261 | 261 | */ |
| 262 | 262 | public function embedded(string $path, string $cid, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'inline'): self |
@@ -267,8 +267,8 @@ discard block |
||
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | - * {@inheritDoc} |
|
| 271 | - * |
|
| 270 | + * {@inheritDoc} |
|
| 271 | + * |
|
| 272 | 272 | * @throws \PHPMailer\PHPMailer\Exception |
| 273 | 273 | */ |
| 274 | 274 | public function embeddedBinary($binary, string $cid, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'inline'): self |
@@ -279,8 +279,8 @@ discard block |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
| 282 | - * {@inheritDoc} |
|
| 283 | - * |
|
| 282 | + * {@inheritDoc} |
|
| 283 | + * |
|
| 284 | 284 | * @throws \PHPMailer\PHPMailer\Exception |
| 285 | 285 | */ |
| 286 | 286 | public function from(string $address, string $name = '') : self |
@@ -291,8 +291,8 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | - * {@inheritDoc} |
|
| 295 | - * |
|
| 294 | + * {@inheritDoc} |
|
| 295 | + * |
|
| 296 | 296 | * @throws \PHPMailer\PHPMailer\Exception |
| 297 | 297 | */ |
| 298 | 298 | public function header(array|string $name, ?string $value = null) : self |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | /** |
| 322 | - * {@inheritDoc} |
|
| 322 | + * {@inheritDoc} |
|
| 323 | 323 | */ |
| 324 | 324 | public function lastId(): string |
| 325 | 325 | { |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | /** |
| 330 | - * {@inheritDoc} |
|
| 330 | + * {@inheritDoc} |
|
| 331 | 331 | */ |
| 332 | 332 | public function message(string $message): self |
| 333 | 333 | { |
@@ -337,8 +337,8 @@ discard block |
||
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | /** |
| 340 | - * {@inheritDoc} |
|
| 341 | - * |
|
| 340 | + * {@inheritDoc} |
|
| 341 | + * |
|
| 342 | 342 | * @throws \PHPMailer\PHPMailer\Exception |
| 343 | 343 | */ |
| 344 | 344 | public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | /** |
| 380 | - * {@inheritDoc} |
|
| 380 | + * {@inheritDoc} |
|
| 381 | 381 | */ |
| 382 | 382 | public function subject(string $subject): self |
| 383 | 383 | { |
@@ -397,8 +397,8 @@ discard block |
||
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | /** |
| 400 | - * {@inheritDoc} |
|
| 401 | - * |
|
| 400 | + * {@inheritDoc} |
|
| 401 | + * |
|
| 402 | 402 | * @throws \PHPMailer\PHPMailer\Exception |
| 403 | 403 | */ |
| 404 | 404 | public function to(array|string $address, bool|string $name = '', bool $set = false): self |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | public const ICAL_METHOD_DECLINECOUNTER = 'DECLINECOUNTER'; |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * Ajoute un texte alternatif pour le message en cas de nom prise en charge du html |
|
| 52 | + * Ajoute un texte alternatif pour le message en cas de nom prise en charge du html |
|
| 53 | 53 | */ |
| 54 | 54 | public function alt(string $content): self; |
| 55 | 55 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function header(array|string $name, ?string $value = null): self; |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * Defini le message à envoyer au format html |
|
| 113 | + * Defini le message à envoyer au format html |
|
| 114 | 114 | */ |
| 115 | 115 | public function html(string $content): self; |
| 116 | 116 | |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | public function init(array $config): self; |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * Renvoie l'identifiant du dernier mail envoyé |
|
| 123 | + * Renvoie l'identifiant du dernier mail envoyé |
|
| 124 | 124 | */ |
| 125 | 125 | public function lastId(): string; |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * Defini le message à envoyer |
|
| 128 | + * Defini le message à envoyer |
|
| 129 | 129 | */ |
| 130 | 130 | public function message(string $message) : self; |
| 131 | 131 | |
@@ -150,17 +150,17 @@ discard block |
||
| 150 | 150 | public function sign(string $cert_filename, string $key_filename, string $key_pass, string $extracerts_filename = ''): self; |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * Defini le sujet du mail |
|
| 153 | + * Defini le sujet du mail |
|
| 154 | 154 | */ |
| 155 | 155 | public function subject(string $subject): self; |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * Defini le message à envoyer au format texte |
|
| 158 | + * Defini le message à envoyer au format texte |
|
| 159 | 159 | */ |
| 160 | 160 | public function text(string $content): self; |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * Ajoute l'adresse de destination (To) du mail |
|
| 163 | + * Ajoute l'adresse de destination (To) du mail |
|
| 164 | 164 | */ |
| 165 | 165 | public function to(array|string $address, bool|string $name = '', bool $set = false): self; |
| 166 | 166 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * {@inheritDoc} |
|
| 126 | + * {@inheritDoc} |
|
| 127 | 127 | */ |
| 128 | 128 | public function alt(string $content) : self |
| 129 | 129 | { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | - * {@inheritDoc} |
|
| 136 | + * {@inheritDoc} |
|
| 137 | 137 | */ |
| 138 | 138 | public function attach(array|string $path, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'attachment'): self |
| 139 | 139 | { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
| 166 | - * {@inheritDoc} |
|
| 166 | + * {@inheritDoc} |
|
| 167 | 167 | */ |
| 168 | 168 | public function cc(array|string $address, bool|string $name = '', bool $set = false): self |
| 169 | 169 | { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * {@inheritDoc} |
|
| 186 | + * {@inheritDoc} |
|
| 187 | 187 | */ |
| 188 | 188 | public function embedded(string $path, string $cid, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'inline'): self |
| 189 | 189 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * {@inheritDoc} |
|
| 196 | + * {@inheritDoc} |
|
| 197 | 197 | */ |
| 198 | 198 | public function embeddedBinary($binary, string $cid, string $name = '', string $type = '', string $encoding = self::ENCODING_BASE64, string $disposition = 'inline'): self |
| 199 | 199 | { |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | - * {@inheritDoc} |
|
| 206 | + * {@inheritDoc} |
|
| 207 | 207 | */ |
| 208 | 208 | public function from(string $address, string $name = ''): self |
| 209 | 209 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * {@inheritDoc} |
|
| 216 | + * {@inheritDoc} |
|
| 217 | 217 | */ |
| 218 | 218 | public function header(array|string $name, ?string $value = null): self |
| 219 | 219 | { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | /** |
| 244 | - * {@inheritDoc} |
|
| 244 | + * {@inheritDoc} |
|
| 245 | 245 | */ |
| 246 | 246 | public function message(string $message): self |
| 247 | 247 | { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | - * {@inheritDoc} |
|
| 256 | + * {@inheritDoc} |
|
| 257 | 257 | */ |
| 258 | 258 | public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self |
| 259 | 259 | { |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | /** |
| 284 | - * {@inheritDoc} |
|
| 284 | + * {@inheritDoc} |
|
| 285 | 285 | */ |
| 286 | 286 | public function subject(string $subject) : self |
| 287 | 287 | { |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | /** |
| 304 | - * {@inheritDoc} |
|
| 304 | + * {@inheritDoc} |
|
| 305 | 305 | */ |
| 306 | 306 | public function to(array|string $address, bool|string $name = '', bool $set = false): self |
| 307 | 307 | { |