Cater for PHPCS when phpcodesniffer-composer-installer is not loaded
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3557601. -->
Reported by: [jonathan1055](https://www.drupal.org/user/92645)
Related to !427
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In the d7 pipelines, we need to support PHP5.6 as this is the minimum for Drupal 7. During the testing of <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates/issues/3557341" title="Status: Closed (fixed)">#3557341: Symlink project script needs to be PHP5.6 compatible</a></span> we discovered that the PHPCS job fails at PHP5.6 with </p>
<pre>$COMPOSER_BIN_DIR/phpcs -e || true<br>ERROR: Referenced sniff "Drupal" does not exist.<br>ERROR: No sniffs were registered.</pre><p>More details are on the GTD issue <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates_downstream/issues/3557370" title="Status: Closed (fixed)">#3557370: PHPCS fails on d7-basic - The Drupal standard is not found</a></span></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Implement the solution tested in the above issue, but do it the main-d7.yml <code>composer: script:</code>, as this should not be down to each separate project to fix it in their own <code>after_script</code></p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
issue