Fixed phpcs errors that cause exception "Notice:  Undefined index: Conte...

...ntAfterOpen"