Fixed phpcs errors that cause exception "Notice:  Undefined index: ContentAfterOpen"