setProperties([ 'id' => 'tab', 'name' => __('Tabulations'), 'description' => __('Replace tabulation by four space in php files'), 'priority' => 820, 'types' => ['plugin', 'theme'], ]); return true; } public function readFile(&$content): ?bool { if (!in_array($this->path_extension, ['php', 'md'])) { return null; } $clean = preg_replace('/(\t)/', ' ', $content);// . "\n"; if ($content != $clean) { $this->setSuccess(__('Replace tabulation by spaces')); $content = $clean; } return true; } public function isConfigured(): bool { return true; } }