Skip to content

Commit

Permalink
Add Dev dependencies for Code quality.
Browse files Browse the repository at this point in the history
Update code quality
  • Loading branch information
emerham committed Nov 14, 2023
1 parent c53ea89 commit 55c4125
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 19 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,23 @@
}
],
"minimum-stability": "stable",
"require": {}
"scripts": {
"cs": "phpcs",
"cs-checkstyle": "phpcs -q --report=checkstyle",
"phpcs": "phpcs",
"cbf": "phpcbf",
"phpcbf": "phpcbf",
"twigcs": "twigcs --twig-version=2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"squizlabs/php_codesniffer": "^3.7",
"drupal/coder": "^8.3",
"friendsoftwig/twigcs": "^6.2"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
4 changes: 1 addition & 3 deletions osu_custom_blocks.module
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
* Primary module hooks for OSU Custom Blocks module.
*/

use Drupal\block\Entity\Block;

/**
* Implements hook_page_attachments().
*/
function osu_custom_blocks_page_attachments(array &$page) {
$page['#attached']['library'][] = 'osu_custom_blocks/osu-custom-blocks';
}
}

0 comments on commit 55c4125

Please sign in to comment.