Completed
Push — master ( 3228c3...282357 )
by Jason
14:05
created

FoxyStripePageExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCartScript() 0 3 1
1
<?php
2
3
class FoxyStripePageExtension extends DataExtension {
4
5
    // get FoxyCart Store Name for JS call
6
    public function getCartScript() {
7
        return '<script src="https://cdn.foxycart.com/' . FoxyCart::getFoxyCartStoreName() . '/loader.js" async defer></script>';
8
    }
9
10
}