Completed
Pull Request — master (#10)
by Franco
01:59
created

StubDMSDocumentCheckoutPageExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A updateDMSDocumentRequestForm() 0 4 1
A updateSend() 0 4 1
1
<?php
2
3
class StubDMSDocumentCheckoutPageExtension extends Extension implements TestOnly
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
    /**
6
     * For method {@link DMSDocumentCartCheckoutPage_Controller::DMSDocumentRequestForm}
7
     *
8
     * @param  Form $form
9
     */
10
    public function updateDMSDocumentRequestForm(Form $form)
11
    {
12
        $form->Fields()->push(TextField::create('NewTextField'));
13
    }
14
15
    /**
16
     * For method {@link DMSDocumentCartCheckoutPage_Controller::DMSDocumentRequestForm}
17
     *
18
     * @param Email $email
19
     */
20
    public function updateSend(Email $email)
21
    {
22
        $email->setSubject('Subject is changed');
23
    }
24
}
25