code: protected function applyFix(\SplFileInfo $file, Tokens $tokens)
      {
          foreach ($tokens as $index => $token) {
              if ($this->isElseif($tokens, $index) && $this->isSuperfluousElse($tokens, $index)) {
                  $this->convertElseifToIf($tokens, $index);
              }
          }
      }
docs: {@inheritdoc}