Skip to content

Commit 9f4ea27

Browse files
committed
no message
1 parent c259a13 commit 9f4ea27

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ resources
22
composer.lock
33
vendor
44
*~
5+
coverage.xml
6+
public/assets
7+
.phpunit.result.cache
8+
app

src/Shortcodes/UserFormShortcodeProvider.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class UserFormShortcodeProvider implements ShortcodeHandler
3737
* Gets the list of shortcodes provided by this handler
3838
*
3939
* @return string[]
40+
*
41+
* @Metrics( crap = 1 )
4042
*/
4143
public static function get_shortcodes() {
4244
return [
@@ -54,6 +56,8 @@ public static function get_shortcodes() {
5456
* @param string $shortcode Name of shortcode used to register this handler
5557
* @param array $extra (optional) Extra arguments
5658
* @return string Result of the handled shortcode
59+
*
60+
* @Metrics( crap = 6.07 )
5761
*/
5862
public static function handle_shortcode( $args, $content, $parser, $shortcode, $extra = [] ) {
5963
if ( ! isset( $args['id'] ) || ! $args['id'] ) {
@@ -90,6 +94,8 @@ public static function handle_shortcode( $args, $content, $parser, $shortcode, $
9094

9195
/**
9296
*
97+
*
98+
* @Metrics( crap = 5 )
9399
*/
94100
protected static function loadUserFormsRequirements() {
95101
if ( self::config()->get( 'block_default_userforms_requirements' ) ) {
@@ -123,6 +129,8 @@ protected static function loadUserFormsRequirements() {
123129

124130
/**
125131
*
132+
*
133+
* @Metrics( crap = 4.01 )
126134
*/
127135
protected static function addUserFormsValidatei18n() {
128136
$module = ModuleLoader::getModule( 'silverstripe/userforms' );

0 commit comments

Comments
 (0)