Your project should only use iterable types in foreach loops 35

More information: https://insight.symfony.com/what-we-analyse/php.invalid_foreach_iterable

  1. if (!$whitelistMatch) {
  2. return false;
  3. }
  4. // Check if query contains any blacklisted pattern
  5. foreach ($this->queryBlacklist as $pattern) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. if (preg_match($pattern, $query)) {
  7. return false;
  8. }
  9. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. */
  2. private function validateQueryPatterns(string $query): bool
  3. {
  4. // Check if query matches any whitelist pattern
  5. $whitelistMatch = false;
  6. foreach ($this->queryWhitelist as $pattern) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. if (preg_match($pattern, $query)) {
  8. $whitelistMatch = true;
  9. break;
  10. }
  11. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. public function execute()
  2. {
  3. $page = (isset($_GET['page']) && is_numeric($_GET['page'])) ? (int)$_GET['page'] : 1;
  4. if (isset($_POST['selected'])) {
  5. foreach ($_POST['selected'] as $id) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. $Qupdate = $this->app->db->prepare('update :table_countries
  7. set status = 0
  8. where countries_id = :countries_id
  9. ');
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. }
  2. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  3. $embeddings = [];
  4. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. if (is_array($embeddedDocument->embedding)) {
  6. $embeddings[] = $embeddedDocument->embedding;
  7. }
  8. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. public function clearCache(): bool
  2. {
  3. $files = glob($this->cacheDir . '*.json');
  4. $success = true;
  5. foreach ($files as $file) {
    Argument of an invalid type list<string>|false supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. if (!@unlink($file)) {
  7. $success = false;
  8. }
  9. }
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. if ($this->debug == 'True') {
  2. $this->securityLogger->logSecurityEvent("Results found in table {$tableName}: " . count($results), 'info');
  3. }
  4. // Ajouter les résultats à la liste complète
  5. foreach ($results as $document) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. $allResults[] = $document;
  7. }
  8. } catch (\Exception $e) {
  9. if ($this->debug == 'True') {
  10. $this->securityLogger->logSecurityEvent("Error while searching in table {$tableName}: " . $e->getMessage(), 'error');
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. // Ajuster pour gérer plusieurs jeux de résultats
  2. if (isset($results['multi_query_results'])) {
  3. $allResults = [];
  4. foreach ($results['multi_query_results'] as $queryBlock) {
  5. foreach ($queryBlock['results'] as $item) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. $allResults[] = $item;
  7. }
  8. }
  9. $interpretation = $this->interpretResults($question, $allResults);
  10. } else {
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $query->execute();
  2. $tables = $query->fetchAll(\PDO::FETCH_COLUMN);
  3. $this->databaseSchema = [];
  4. foreach ($tables as $table) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. // Validate table name
  6. $safeTable = InputValidator::sanitizeIdentifier($table);
  7. if ($safeTable !== $table) {
  8. $this->securityLogger->logSecurityEvent(
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $query = $this->db->prepare("SHOW TABLES");
  2. $query->execute();
  3. $tables = $query->fetchAll(\PDO::FETCH_COLUMN);
  4. // For each table, analyze the columns to detect potential relationships
  5. foreach ($tables as $table) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. // Validate table name
  7. $safeTable = InputValidator::sanitizeIdentifier($table);
  8. if ($safeTable !== $table) {
  9. $this->securityLogger->logSecurityEvent(
  10. "Suspicious table name sanitized: {$table} -> {$safeTable}",
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $query = $this->db->prepare("DESCRIBE " . $table);
  2. $query->execute();
  3. $columns = $query->fetchAll(\PDO::FETCH_ASSOC);
  4. $schema = [];
  5. foreach ($columns as $column) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. $schema[$column['Field']] = $column['Type'];
  7. }
  8. // Cache the schema
  9. $this->tableSchemaCache[$table] = $schema;
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $columnsQuery->execute();
  2. $columns = $columnsQuery->fetchAll(\PDO::FETCH_ASSOC);
  3. $this->databaseSchema[$table] = [];
  4. foreach ($columns as $column) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. $this->databaseSchema[$table][$column['Field']] = [
  6. 'type' => $column['Type'],
  7. 'null' => $column['Null'],
  8. 'key' => $column['Key'],
  9. 'default' => $column['Default'],
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $stmt = $this->db->prepare('EXPLAIN ' . $sql);
  2. $stmt->execute();
  3. $plan = $stmt->fetchAll(\PDO::FETCH_ASSOC);
  4. $this->securityLogger->logSecurityEvent("EXPLAIN PLAN for SQL:\n" . $sql, 'info');
  5. foreach ($plan as $row) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. $this->securityLogger->logSecurityEvent(print_r($row, true), 'info');
  7. }
  8. } catch (\Exception $e) {
  9. $this->securityLogger->logSecurityEvent("Failed to EXPLAIN query: " . $e->getMessage(), 'error');
  10. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. }
  2. // Ajuster pour gérer plusieurs jeux de résultats
  3. if (isset($results['multi_query_results'])) {
  4. $allResults = [];
  5. foreach ($results['multi_query_results'] as $queryBlock) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. foreach ($queryBlock['results'] as $item) {
  7. $allResults[] = $item;
  8. }
  9. }
  10. $interpretation = $this->interpretResults($question, $allResults);
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. }
  2. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  3. $embeddings = [];
  4. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. if (is_array($embeddedDocument->embedding)) {
  6. $embeddings[] = $embeddedDocument->embedding;
  7. }
  8. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $CLICSHOPPING_Hooks = Registry::get('Hooks');
  2. $page = (isset($_GET['page']) && is_numeric($_GET['page'])) ? (int)$_GET['page'] : 1;
  3. if (!\is_null($_POST['selected'])) {
  4. foreach ($_POST['selected'] as $id) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. if ($id != 3) {
  6. if ($id != 4) {
  7. if ($id != 5) {
  8. $CLICSHOPPING_PageManager->db->delete('pages_manager', ['pages_id' => (int)$id]);
  9. $CLICSHOPPING_PageManager->db->delete('pages_manager_description', ['pages_id' => (int)$id]);
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. *
  2. * @param int $now Current timestamp
  3. */
  4. private function cleanupStorage(int $now): void
  5. {
  6. foreach ($this->storage as $key => $data) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. if (isset($data['first_request']) && $data['first_request'] < ($now - ($this->timeWindow * 2))) {
  8. unset($this->storage[$key]);
  9. }
  10. }
  11. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $rows = "<tbody>";
  2. foreach ($data as $row) {
  3. $rows .= "<tr>";
  4. foreach ($row as $key => $value) {
    Argument of an invalid type mixed supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. if (!is_numeric($key)) {
  6. $value = HTMLOverrideCommon::removeInvisibleCharacters($value);
  7. $rows .= "<td>" . htmlspecialchars(Hash::displayDecryptedDataText($value)) . "</td>";
  8. }
  9. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. }
  2. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  3. $embeddings = [];
  4. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. if (is_array($embeddedDocument->embedding)) {
  6. $embeddings[] = $embeddedDocument->embedding;
  7. }
  8. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant
  1. $embeddedDocuments = NewVector::createEmbedding(null, $embedding_data);
  2. $embeddings = [];
  3. foreach ($embeddedDocuments as $embeddedDocument) {
    Argument of an invalid type array|null supplied for foreach, only iterables are supported.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. if (is_array($embeddedDocument->embedding)) {
  5. $embeddings[] = $embeddedDocument->embedding;
  6. }
  7. }
  • gyakutsuki

    no interesting
  • gyakutsuki

    no relevant
  • gyakutsuki

    not relevant
  • gyakutsuki

    No relevant

Your project should not contain unused code 42

More information: https://insight.symfony.com/what-we-analyse/php.unused_local_variable_or_private_member

  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_countries']);
  2. }
  3. }
  4. private static function removeProductsCountriesDb()
    Static method ClicShopping\Apps\Configuration\Countries\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsCountriesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_countries"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:12:23 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_communication_newsletter']);
  2. }
  3. }
  4. private static function removeDb()
    Static method ClicShopping\Apps\Communication\Newsletter\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_newsletters"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:10:45 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_report_stats_customers']);
  2. }
  3. }
  4. private static function removeDataDb()
    Static method ClicShopping\Apps\Customers\Customers\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDataDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_customers"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:17:23 GMT
  • gyakutsuki

    ignore
  1. class LlmGuardrails
  2. {
  3. private const CONFIDENCE_THRESHOLD = 0.75;
  4. private const HALLUCINATION_THRESHOLD = 0.8; // a implementer
  5. private const MAX_RESPONSE_LENGTH = 8192;
  6. private const MIN_CONFIDENCE_SCORE = 0.6; // a implementer
    Constant ClicShopping\Apps\Configuration\ChatGpt\Classes\Security\LlmGuardrails::MIN_CONFIDENCE_SCORE is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. protected static ?SecurityLogger $securityLogger = null;
  8. // Patterns de détection d'hallucinations e-commerce
  9. //possible to create a specific suspicious pattern
  10. private const SUSPICIOUS_PATTERNS = [];
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:04:44 GMT
  • gyakutsuki

    ignore
  1. * Returns a float score between 0.0 and 1.0 based on the number of citations.
  2. *
  3. * @param string $result The AI-generated response to validate.
  4. * @return float Attribution score (0.0 to 1.0).
  5. */
  6. private static function validateAttribution(string $result): float
    Static method ClicShopping\Apps\Configuration\ChatGpt\Classes\Security\LlmGuardrails::validateAttribution() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. {
  8. $citations = substr_count($result, 'source:') + substr_count($result, '(voir') + preg_match_all('/\[.*?\]/', $result);
  9. if ($citations === 0) return 0.0;
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:11:10 GMT
  • gyakutsuki

    ignore
  1. */
  2. #[AllowDynamicProperties]
  3. class LlmGuardrails
  4. {
  5. private const CONFIDENCE_THRESHOLD = 0.75;
  6. private const HALLUCINATION_THRESHOLD = 0.8; // a implementer
    Constant ClicShopping\Apps\Configuration\ChatGpt\Classes\Security\LlmGuardrails::HALLUCINATION_THRESHOLD is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. private const MAX_RESPONSE_LENGTH = 8192;
  8. private const MIN_CONFIDENCE_SCORE = 0.6; // a implementer
  9. protected static ?SecurityLogger $securityLogger = null;
  10. // Patterns de détection d'hallucinations e-commerce
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:04:39 GMT
  • gyakutsuki

    ignore
  1. */
  2. private function createEmbeddingGenerator(): EmbeddingGeneratorInterface
  3. {
  4. return new class(Gpt::class) implements EmbeddingGeneratorInterface
  5. {
  6. private $gptClass;
    Property LLPhant\Embeddings\EmbeddingGenerator\EmbeddingGeneratorInterface@anonymous/Core/ClicShopping/Apps/Configuration/ChatGpt/Classes/Rag/MultiDBRAGManager.php:139::$gptClass is never read, only written.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. /**
  8. * Constructor for the embedding generator
  9. *
  10. * @param string $gptClass Class name of the Gpt instance
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:08:41 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_customers_reviews']);
  2. }
  3. }
  4. private static function removeDataDb()
    Static method ClicShopping\Apps\Customers\Reviews\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDataDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_reviews"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:17:33 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_catalog_categories']);
  2. }
  3. }
  4. private static function removeDb()
    Static method ClicShopping\Apps\Catalog\Categories\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_categories"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:09:09 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_tax_geo_zones']);
  2. }
  3. }
  4. private static function removeProductsTaxGeoZonesDb()
    Static method ClicShopping\Apps\Configuration\TaxGeoZones\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsTaxGeoZonesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_geo_zones"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:14:42 GMT
  • gyakutsuki

    ignore
  1. *
  2. * @param string $sqlQuery Original SQL query containing unknown column
  3. * @param string $unknownColumn Name of the unknown column to correct
  4. * @return string Corrected SQL query or original if no correction possible
  5. */
  6. private function correctUnknownColumn(string $sqlQuery, string $unknownColumn): string {
    Method ClicShopping\Apps\Configuration\ChatGpt\Classes\Rag\AnalyticsAgent::correctUnknownColumn() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. // Check if the column contains a dot (alias.column)
  8. if (strpos($unknownColumn, '.') !== false) {
  9. list($alias, $column) = explode('.', $unknownColumn);
  10. // Look for a similar column in the schema's tables
  • gyakutsuki

    Ignored on Fri, 05 Sep 2025 19:32:26 GMT
  • gyakutsuki

    not insteresting
  • gyakutsuki

    no relevant
  • gyakutsuki

    ignore
  1. {
  2. private mixed $chat;
  3. private mixed $db;
  4. private int $languageId;
  5. private array $tableSchemaCache = [];
  6. private array $tableRelationships = [];
    Property ClicShopping\Apps\Configuration\ChatGpt\Classes\Rag\AnalyticsAgent::$tableRelationships is never read, only written.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. private array $columnSynonyms = [];
  8. private array $correctionLog = [];
  9. private array $databaseSchema = [];
  10. private array $columnIndex = [];
  11. private mixed $cache;
  • gyakutsuki

    Ignored on Fri, 05 Sep 2025 19:32:33 GMT
  • gyakutsuki

    not insteresting
  • gyakutsuki

    no relevant
  • gyakutsuki

    ignore
  1. * - Unresolved placeholders
  2. *
  3. * @param string $sqlQuery SQL query to validate
  4. * @return array Validation results with 'is_valid' boolean and array of 'issues'
  5. */
  6. private function validateSqlSyntax(string $sqlQuery): array {
    Method ClicShopping\Apps\Configuration\ChatGpt\Classes\Rag\AnalyticsAgent::validateSqlSyntax() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. $issues = [];
  8. // Check the balance of parentheses
  9. $openParenCount = substr_count($sqlQuery, '(');
  10. $closeParenCount = substr_count($sqlQuery, ')');
  • gyakutsuki

    Ignored on Fri, 05 Sep 2025 19:32:30 GMT
  • gyakutsuki

    not insteresting
  • gyakutsuki

    no relevant
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_settings']);
  2. }
  3. }
  4. private static function removeProductsSettingsDb()
    Static method ClicShopping\Apps\Configuration\Settings\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsSettingsDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_settings"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:13:42 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_administrators']);
  2. }
  3. }
  4. private static function removeProductsAdministratorsDb()
    Static method ClicShopping\Apps\Configuration\Administrators\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsAdministratorsDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_administrators"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:09:46 GMT
  • gyakutsuki

    ignore
  1. }
  2. /**
  3. *
  4. */
  5. private static function removeProductsRecommendationsDb(): void
    Static method ClicShopping\Apps\Marketing\Recommendations\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsRecommendationsDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. {
  7. $CLICSHOPPING_Db = Registry::get('Db');
  8. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products_recommendations"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:19:23 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('actions_recorder', ['app_code' => 'app_tools_actions_recorder']);
  2. }
  3. }
  4. private static function removeProductsActionsRecorderDb()
    Static method ClicShopping\Apps\Tools\ActionsRecorder\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsActionsRecorderDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_actions_recorder"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:20:32 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_modules']);
  2. }
  3. }
  4. private static function removeProductsModulesDb()
    Static method ClicShopping\Apps\Configuration\Modules\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsModulesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_currencies"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:07:10 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_tax_rates']);
  2. }
  3. }
  4. private static function removeProductsTaxRatesDb()
    Static method ClicShopping\Apps\Configuration\TaxRates\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsTaxRatesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_tax_rates"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:15:04 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_products_length']);
  2. }
  3. }
  4. private static function removeProductsProductsLengthDb()
    Static method ClicShopping\Apps\Configuration\ProductsLength\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsProductsLengthDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products_length"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:12:53 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_products_quantity_unit']);
  2. }
  3. }
  4. private static function removeProductsProductsQuantityUnitDb()
    Static method ClicShopping\Apps\Configuration\ProductsQuantityUnit\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsProductsQuantityUnitDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products_quantity_unit"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:13:17 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_tax_class']);
  2. }
  3. }
  4. private static function removeProductsTaxClassDb()
    Static method ClicShopping\Apps\Configuration\TaxClass\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsTaxClassDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_tax_class"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:14:07 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_orders_status']);
  2. }
  3. }
  4. private static function removeProductsOrdersStatusDb()
    Static method ClicShopping\Apps\Configuration\OrdersStatus\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsOrdersStatusDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_orders_status"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:08:02 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_marketing_featured']);
  2. }
  3. }
  4. private static function removeProductsFeaturedDb()
    Static method ClicShopping\Apps\Marketing\Featured\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsFeaturedDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products_featured"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:18:55 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_tools_define_language']);
  2. }
  3. }
  4. private static function removeProductsDefineLanguageDb()
    Static method ClicShopping\Apps\Tools\DefineLanguage\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsDefineLanguageDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_currencies"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:21:46 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_zones']);
  2. }
  3. }
  4. private static function removeProductsZonesDb()
    Static method ClicShopping\Apps\Configuration\Zones\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsZonesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_zones"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:16:30 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_marketing_seo']);
  2. }
  3. }
  4. private static function removeDb()
    Static method ClicShopping\Apps\Marketing\SEO\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_seo"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:19:42 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_currency']);
  2. }
  3. }
  4. private static function removeProductsCurrencyDb()
    Static method ClicShopping\Apps\Configuration\Currency\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsCurrencyDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_currencies"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:12:38 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_marketing_favorites']);
  2. }
  3. }
  4. private static function removeProductsFavoritesDb()
    Static method ClicShopping\Apps\Marketing\Favorites\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsFavoritesDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products_favorites"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:18:26 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_marketing_specials']);
  2. }
  3. }
  4. private static function removeProductsSpecialsDb()
    Static method ClicShopping\Apps\Marketing\Specials\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsSpecialsDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_specials"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:20:08 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_cache']);
  2. }
  3. }
  4. private static function removeProductsCacheDb()
    Static method ClicShopping\Apps\Configuration\Cache\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsCacheDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_cache"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:10:58 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_weight']);
  2. }
  3. }
  4. private static function removeProductsWeightDb()
    Static method ClicShopping\Apps\Configuration\Weight\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsWeightDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_weight"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:16:02 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('cronjob', ['app_code' => 'app_tools_cronjob']);
  2. }
  3. }
  4. private static function removeProductsCronjobDb()
    Static method ClicShopping\Apps\Tools\Cronjob\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsCronjobDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_cronjob"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:21:21 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_administrator_menu']);
  2. }
  3. }
  4. private static function removeProductsAdministratorMenuDb()
    Static method ClicShopping\Apps\Tools\AdministratorMenu\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsAdministratorMenuDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_administrator_menu"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:20:58 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_marketing_banner_manager']);
  2. }
  3. }
  4. private static function removeProductsBannerManagerDb()
    Static method ClicShopping\Apps\Marketing\BannerManager\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsBannerManagerDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_banner_manager"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:17:57 GMT
  • gyakutsuki

    ignore
  1. * Logs an error message if debugging is enabled.
  2. * This function is used to log errors related to database operations.
  3. *
  4. * @param string $message The error message to log
  5. */
  6. private static function logError($message)
    Static method ClicShopping\Apps\Configuration\ChatGpt\Classes\Rag\DoctrineOrm::logError() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. {
  8. if (\defined('CLICSHOPPING_APP_CHATGPT_RA_DEBUG_RAG_MANAGER') && CLICSHOPPING_APP_CHATGPT_RA_OPENAI_EMBEDDING == 'True') {
  9. error_log($message);
  10. }
  11. }
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:04:18 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_template_email']);
  2. }
  3. }
  4. private static function removeProductsTemplateEmailDb()
    Static method ClicShopping\Apps\Configuration\TemplateEmail\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsTemplateEmailDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_template_email"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:15:33 GMT
  • gyakutsuki

    ignore
  1. Cache::clear('menu-administrator');
  2. }
  3. private static function removeDb()
    Static method ClicShopping\Apps\Catalog\Products\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  4. {
  5. $CLICSHOPPING_Db = Registry::get('Db');
  6. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_products"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:09:27 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_customers_groups']);
  2. }
  3. }
  4. private static function removeDataDb()
    Static method ClicShopping\Apps\Customers\Groups\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeDataDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. /*
  7. $CLICSHOPPING_Db = Registry::get('Db');
  8. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_customers_groups"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:17:29 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_api']);
  2. }
  3. }
  4. private static function removeProductsApiDb()
    Static method ClicShopping\Apps\Configuration\Api\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsApiDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_api"');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 14:10:31 GMT
  • gyakutsuki

    ignore
  1. $CLICSHOPPING_Db->delete('administrator_menu', ['app_code' => 'app_configuration_chatgpt']);
  2. }
  3. }
  4. private static function removeProductsChatGptDb()
    Static method ClicShopping\Apps\Configuration\ChatGpt\Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure\Delete::removeProductsChatGptDb() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. {
  6. $CLICSHOPPING_Db = Registry::get('Db');
  7. $Qcheck = $CLICSHOPPING_Db->query('show tables like ":table_gpt"');
  • gyakutsuki

    ignore
  1. /**
  2. * Initializes and returns an OpenAIChat instance configured with specified parameters.
  3. *
  4. * @return mixed An instance of the OpenAIChat class configured for GPT functionality.
  5. */
  6. private static function chat(): mixed // Not use currently
    Static method ClicShopping\Apps\Configuration\ChatGpt\Classes\ClicShoppingAdmin\NewVector::chat() is unused.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. {
  8. $api_key = self::getApiKey();
  9. $parameters = ['model' => CLICSHOPPING_APP_CHATGPT_RA_EMBEDDING_MODEL];
  10. $config = new OpenAIConfig();
  • gyakutsuki

    Ignored on Fri, 05 Sep 2025 19:38:41 GMT
  • gyakutsuki

    not insteresting
  • gyakutsuki

    no relevant
  • gyakutsuki

    ignore

Your project should always define methods and properties visibility explicitly

More information: https://insight.symfony.com/what-we-analyse/php.method_or_property_missing_visibility

  1. public function keys()
  2. {
  3. return array('CLICSHOPPING_APP_TABLE_TA_SORT_ORDER');
  4. }
  5. function getShippableTotal()
    This method has no explicit visibility which may lead to maintainability issues. You should always declare a visibility for methods and properties.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  6. {
  7. $CLICSHOPPING_Db = Registry::get('Db');
  8. $CLICSHOPPING_Currencies = Registry::get('Currencies');
  9. $CLICSHOPPING_ShoppingCart = Registry::get('ShoppingCart');
  10. $CLICSHOPPING_Order = Registry::get('Order');
  • gyakutsuki

    Ignored on Mon, 03 Nov 2025 13:57:08 GMT