From eef3e0851efd334110f68e14f95c7884039bc370 Mon Sep 17 00:00:00 2001 From: BrianTeeman Date: Tue, 8 Jul 2025 11:20:16 +0100 Subject: [PATCH] [4.x] typos check integration --- README.md | 4 ++-- src/Sqlsrv/SqlsrvQuery.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0d3cfe2d..ed814252 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ function search($title) In the first case, the title variable is simply escaped and quoted. Any quote characters in the title string will be prepended with a backslash and the whole string will be wrapped in quotes. -In the second case, the example shows how to treat a search string that will be used in a `LIKE` clause. In this case, the title variable is manually escaped using `escape` with a second argument of `true`. This will force other special characters to be escaped (otherwise you could set youself up for serious performance problems if the user includes too many wildcards). Then, the result is passed to the `quote` method but escaping is turned off (because it has already been done manually). +In the second case, the example shows how to treat a search string that will be used in a `LIKE` clause. In this case, the title variable is manually escaped using `escape` with a second argument of `true`. This will force other special characters to be escaped (otherwise you could set yourself up for serious performance problems if the user includes too many wildcards). Then, the result is passed to the `quote` method but escaping is turned off (because it has already been done manually). In the third case, the title variable is an array so the whole array can be passed to the `quote` method (this saves using a closure and a ) @@ -118,7 +118,7 @@ $count = count($iterator); ``` ## Logging -`Database\DatabaseDriver` implements the `Psr\Log\LoggerAwareInterface` so is ready for intergrating with a logging package that supports that standard. +`Database\DatabaseDriver` implements the `Psr\Log\LoggerAwareInterface` so is ready for integrating with a logging package that supports that standard. Drivers log all errors with a log level of `LogLevel::ERROR`. diff --git a/src/Sqlsrv/SqlsrvQuery.php b/src/Sqlsrv/SqlsrvQuery.php index 66937c41..76905340 100644 --- a/src/Sqlsrv/SqlsrvQuery.php +++ b/src/Sqlsrv/SqlsrvQuery.php @@ -712,7 +712,7 @@ protected function fixGroupColumns($selectColumns) $alias = end($table); $table = $table[0]; - // Chek if exists a wildcard with current alias table? + // Check if exists a wildcard with current alias table? if (\in_array($alias, $wildcardTables, true)) { if (!isset($cacheCols[$table])) { $cacheCols[$table] = $this->db->getTableColumns($table); @@ -744,7 +744,7 @@ protected function fixGroupColumns($selectColumns) $table = $matches[1]; $alias = $matches[2] ?? $table; - // Chek if exists a wildcard with current alias table? + // Check if exists a wildcard with current alias table? if (\in_array($alias, $wildcardTables, true)) { if (!isset($cacheCols[$table])) { $cacheCols[$table] = $this->db->getTableColumns($table);