Your project uses non-strict array lookups 2
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.strict_array_lookup
- exit;
- }
- // Validate feedback_type
- $validTypes = ['positive', 'negative', 'correction'];
- if (!in_array($input['feedback_type'], $validTypes)) {
- echo json_encode([
- 'success' => false,
- 'error' => 'feedback_type must be one of: ' . implode(', ', $validTypes)
- ]);
- exit;
- unset($this->storage[$scopedKey]);
- unset($this->metadata[$scopedKey]);
- // Remove from the scope's key list
- $scopeKeys = $this->scopes[$this->currentScope] ?? [];
- $index = array_search($scopedKey, $scopeKeys);
- if ($index !== false) {
- array_splice($this->scopes[$this->currentScope], $index, 1);
- }
Your project uses legacy callable syntax instead of first-class callable syntax
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/php.use_first_class_callable_syntax
- if (self::isTable($lines)) {
- $html[] = self::renderTable($lines);
- } elseif (self::isList($lines)) {
- $html[] = self::renderList($lines);
- } else {
- $html[] = '<p>' . implode('<br>', array_map([self::class, 'inline'], $lines)) . '</p>';
- }
- }
- return implode("\n", $html);
- }
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki
gyakutsuki