Your project uses non-strict array lookups
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.strict_array_lookup
- ];
- // Check if detected MIME type matches expected extension
- if (isset($allowedMimeTypes[$mimeType])) {
- $fileExtension = strtolower($this->getExtension());
- return in_array($fileExtension, $allowedMimeTypes[$mimeType]);
- }
- return false;
- }
Your project should use dedicated PHP string functions
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/php.use_string_function
- // Simple keyword matching (replaces deleted PatternAnalysisPattern)
- $patternKeywords = ['pattern', 'trend', 'style', 'dominant', 'recurring', 'common'];
- $queryLower = strtolower($queryToAnalyze);
- foreach ($patternKeywords as $keyword) {
- if (strpos($queryLower, $keyword) !== false) {
- if ($this->debug) {
- $this->logDebug("Pattern analysis keyword detected: $keyword");
- }
- return true;
- }