Skip to content

Commit 8235f3e

Browse files
authored
Add dependency on slevomat/coding-standard in CircleCI test
Add dependency on slevomat/coding-standard in CircleCI test
2 parents b85ff52 + 7aab4c3 commit 8235f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/code-sniffer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ then
88
fi
99

1010
# Install dependencies and configure phpcs
11-
vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer
11+
vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer,vendor/sirbrillig/phpcs-variable-analysis,vendor/slevomat/coding-standard
1212

1313
vendor/bin/phpmd modules/$1/src html cleancode,codesize,design,unusedcode --ignore-violations-on-exit --reportfile artifacts/phpmd/index.html
1414
vendor/bin/phpmetrics --extensions=php,inc,module --report-html=artifacts/phpmetrics --git modules/$1

src/EventSubscriber/PageNotFoundEventSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function onNotFoundException(GetResponseForExceptionEvent $event) {
7474
if ($event->getException() instanceof NotFoundHttpException
7575
&& ($uri = $event->getRequest()->getRequestUri())
7676
&& $this->pathMatcher->matchPath($uri, '/api/*/*')
77-
&& (list(,, $id) = explode('/', $uri))
77+
&& ([$apitrail, $api, $id] = explode('/', $uri))
7878
&& ($path = "/api/{$id}")
7979
&& $this->pathValidator->isValid($path)
8080
) {

0 commit comments

Comments
 (0)