isChanged() public method

Check if collection was change: collection itself (like insert new tokens) or any of collection's elements.
public isChanged ( ) : boolean
return boolean
 private function runHelperFixers(\SplFileInfo $file, Tokens $tokens)
 {
     /** @var AbstractAlignFixerHelper $helper */
     foreach ($this->alignFixerHelpers as $helper) {
         if ($tokens->isChanged()) {
             $tokens->clearEmptyTokens();
         }
         $helper->fix($file, $tokens);
     }
 }