diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000000..a8f9cf2587 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,47 @@ + + + PHP CodeSniffer configuration for the markie Drupal project. + + + web/modules/custom + web/themes/custom + + + */node_modules/* + */vendor/* + + + + + + + + *.css + + + *.css + + + *.css + + + *.css + + + *.css + + + + + web/themes/custom/* + web/modules/custom/* + + + diff --git a/web/modules/custom/markie/markie.install b/web/modules/custom/markie/markie.install index 1568774b27..3980527766 100644 --- a/web/modules/custom/markie/markie.install +++ b/web/modules/custom/markie/markie.install @@ -1,6 +1,11 @@ set('field_video_checked', TRUE); $node->save(); $node->set('field_video_checked', FALSE); diff --git a/web/modules/custom/markie/markie.module b/web/modules/custom/markie/markie.module index 79f72a551a..a67634b402 100644 --- a/web/modules/custom/markie/markie.module +++ b/web/modules/custom/markie/markie.module @@ -1,8 +1,15 @@ getRouteName() === 'entity.user.canonical' && \Drupal::currentUser()->isAnonymous()) { - throw new \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(); + throw new AccessDeniedHttpException(); } } diff --git a/web/themes/custom/markconroy/README.md b/web/themes/custom/markconroy/README.md index 488f4c5a4d..9056c4d7b0 100644 --- a/web/themes/custom/markconroy/README.md +++ b/web/themes/custom/markconroy/README.md @@ -1 +1 @@ -markconroy theme, generated from starterkit_theme. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme). \ No newline at end of file +markconroy theme, generated from starterkit_theme. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme). diff --git a/web/themes/custom/markconroy/css/base/base.css b/web/themes/custom/markconroy/css/base/base.css index 1b431a7d47..0ae494bfd3 100644 --- a/web/themes/custom/markconroy/css/base/base.css +++ b/web/themes/custom/markconroy/css/base/base.css @@ -118,4 +118,4 @@ blockquote { blockquote > * + * { margin-block-start: var(--spacing-small); -} \ No newline at end of file +} diff --git a/web/themes/custom/markconroy/css/components/global/breadcrumbs.css b/web/themes/custom/markconroy/css/components/global/breadcrumbs.css index ad3c67d395..1a7d5cbb38 100644 --- a/web/themes/custom/markconroy/css/components/global/breadcrumbs.css +++ b/web/themes/custom/markconroy/css/components/global/breadcrumbs.css @@ -23,4 +23,4 @@ .breadcrumb a { color: var(--color-primary); font-weight: normal; -} \ No newline at end of file +} diff --git a/web/themes/custom/markconroy/css/components/homepage.css b/web/themes/custom/markconroy/css/components/homepage.css index c7318e8215..6d494c1ca1 100644 --- a/web/themes/custom/markconroy/css/components/homepage.css +++ b/web/themes/custom/markconroy/css/components/homepage.css @@ -30,5 +30,4 @@ justify-content: center; align-items: center; flex-wrap: wrap; - } diff --git a/web/themes/custom/markconroy/css/components/pager.css b/web/themes/custom/markconroy/css/components/pager.css index 87107b69c4..b998600170 100644 --- a/web/themes/custom/markconroy/css/components/pager.css +++ b/web/themes/custom/markconroy/css/components/pager.css @@ -1,4 +1,4 @@ .pager__item.is-active a { color: var(--color-primary); text-decoration: none; -} \ No newline at end of file +} diff --git a/web/themes/custom/markconroy/markconroy.theme b/web/themes/custom/markconroy/markconroy.theme index 96a4b5ea87..3a9d2af9fb 100644 --- a/web/themes/custom/markconroy/markconroy.theme +++ b/web/themes/custom/markconroy/markconroy.theme @@ -24,8 +24,8 @@ function markconroy_preprocess_image_widget(array &$variables) { * Implements hook_preprocess_HOOK() for page templates. */ function markconroy_preprocess_page(array &$variables) { - // $variables['#attached']['library'][] = 'markconroy/course-signup-popup-form'; - $variables['#attached']['library'][] = 'markconroy/mailing-list-signup-popup-form'; + $variables['#attached']['library'][] = + 'markconroy/mailing-list-signup-popup-form'; } /**