public function fix(\SplFileInfo $file, Tokens $tokens)
{
$analyzer = new TokensAnalyzer($tokens);
$elements = array_reverse($analyzer->getClassyElements(), true);
foreach ($elements as $index => $element) {
if (!in_array($element['type'], $this->configuration, true)) {
continue;
// not in configuration
}
$this->fixElement($tokens, $index);
}
}