Your project must not contain invalid PHP files

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

  1. DomainConfig::loadLanguageFile('rag_result_interpreter');
  2. $array = [
  3. 'question' => $question,
  4. 'results' => json_encode($cleanResults, JSON_PRETTY_PRINT)
  5. 'currentDate' => date('Y-m-d')
    Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ']' or ')'
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. ];
  7. $prompt = $this->language->getDef('text_interpret_results', $array);
  8. if ($this->debug) {

Your project uses non-strict array lookups 18

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

  1. }
  2. // ============================================================================
  3. // 3. Reset Database Query Cache
  4. // ============================================================================
  5. if (in_array('database', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $db = Registry::get('Db');
  8. $prefix = CLICSHOPPING::getConfig('db_table_prefix');
  9. // Count entries before
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 9. Reset Embedding Cache
  4. // ============================================================================
  5. if (in_array('embedding', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count embedding cache files before (new location)
  8. $embeddingCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Embedding/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 13. Reset Embeddings Cache (PHASE 2 - NewVector cache)
  4. // ============================================================================
  5. if (in_array('embeddings', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $embeddingsCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Embeddings/';
  8. $filesBefore = 0;
  9. if (is_dir($embeddingsCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 17. Reset Config Cache
  4. // ============================================================================
  5. if (in_array('config', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $configCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Config/';
  8. $filesBefore = 0;
  9. if (is_dir($configCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 7. Reset Translation Ambiguity Cache
  4. // ============================================================================
  5. if (in_array('translation_ambiguity', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count translation ambiguity cache files before (new location)
  8. $translationAmbiguityCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Translation/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 15. Reset Security Cache
  4. // ============================================================================
  5. if (in_array('security', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $securityCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Security/';
  8. $filesBefore = 0;
  9. if (is_dir($securityCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 8.5. Reset Memory Cache (file-based)
  4. // ============================================================================
  5. if (in_array('memory', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $memoryCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Memory/';
  8. $filesBefore = 0;
  9. if (is_dir($memoryCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 12. Reset Semantic Query Cache (TASK 8: Multi-temporal query caching)
  4. // ============================================================================
  5. if (in_array('semantic', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count hybrid cache files before
  8. $semanticCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Semantic/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 8. Reset Context Cache
  4. // ============================================================================
  5. if (in_array('context', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count context cache files before (new location)
  8. $contextCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Context/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 5. Reset Intent Classification Cache (TASK 5.1.7.6)
  4. // ============================================================================
  5. if (in_array('intent', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count intent cache files before (new location - all files)
  8. $intentCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Intent/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 16. Reset Reputation Cache
  4. // ============================================================================
  5. if (in_array('reputation', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $reputationCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Reputation/';
  8. $filesBefore = 0;
  9. if (is_dir($reputationCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 10. Reset EmbeddingSearch Cache
  4. // ============================================================================
  5. if (in_array('embedding_search', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count embedding search cache files before (new location)
  8. $embeddingSearchCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/EmbeddingSearch/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 4. Reset Schema Query Cache (TASK 5 - ITEM 1)
  4. // ============================================================================
  5. if (in_array('schema', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count schema cache files before (new location)
  8. $schemaCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/SchemaQuery/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 3. Reset Classification Cache
  4. // ============================================================================
  5. if (in_array('classification', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $classificationCache = new ClassificationCache();
  8. // Get stats before
  9. $statsBefore = $classificationCache->getStatistics();
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 14. Reset SQL Query Cache (PHASE 4)
  4. // ============================================================================
  5. if (in_array('sql', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $sqlCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/SQL/';
  8. $filesBefore = 0;
  9. if (is_dir($sqlCacheDir)) {
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 6. Reset Ambiguity Cache (TASK 4 - Cache Migration)
  4. // ============================================================================
  5. if (in_array('ambiguity', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count ambiguity cache files before (new location - all files)
  8. $ambiguityCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Ambiguity/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. $errors = [];
  2. // ============================================================================
  3. // 1. Reset Translation Cache
  4. // ============================================================================
  5. if (in_array('translations', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. $translationCache = new TranslationCache();
  8. // Count files before
  9. $cacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Translation/';
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented
  1. }
  2. // ============================================================================
  3. // 11. Reset Hybrid Query Cache (TASK 8: Multi-temporal query caching)
  4. // ============================================================================
  5. if (in_array('hybrid', $cacheTypes)) {
    in_array() should be called with the third parameter set to true to enable strict comparison and avoid type juggling bugs.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by clicshopping
  6. try {
  7. // Count hybrid cache files before
  8. $hybridCacheDir = CLICSHOPPING::getConfig('dir_root', 'Shop') . 'Work/Cache/Rag/Hybrid/';
  9. $filesBefore = 0;
  • gyakutsuki

    not implemented
  • gyakutsuki

    not included
  • gyakutsuki

    no included
  • gyakutsuki

    no implemented