Add break statement to avoid execution of unwanted post hooks.
Execute post hooks only if the state column has been modified.
Fix CS
Add PHPUnit to composer (dev)