StubDMSDocumentCheckoutPageExtension   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 4
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A updateDMSDocumentRequestForm() 0 4 1
A updateSend() 0 4 1
A updateDMSCartEditForm() 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 DMSCheckoutController::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 DMSCheckoutController::DMSDocumentRequestForm}
17
     *
18
     * @param Email $email
19
     */
20
    public function updateSend(Email $email)
21
    {
22
        $email->setSubject('Subject is changed');
23
    }
24
25
    /**
26
     * For method {@link DMSCheckoutController::DMSDocumentRequestForm}
27
     *
28
     * @param  Form $form
29
     */
30
    public function updateDMSCartEditForm(Form $form)
31
    {
32
        $form->Fields()->push(TextField::create('NewTextField'));
33
    }
34
}
35