PageRequestSubmitted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A main() 0 8 1
1
<?php
2
/******************************************************************************
3
 * Wikipedia Account Creation Assistance tool                                 *
4
 * ACC Development Team. Please see team.json for a list of contributors.     *
5
 *                                                                            *
6
 * This is free and unencumbered software released into the public domain.    *
7
 * Please see LICENSE.md for the full licencing statement.                    *
8
 ******************************************************************************/
9
10
namespace Waca\Pages\Request;
11
12
use Waca\Tasks\PublicInterfacePageBase;
13
14
class PageRequestSubmitted extends PublicInterfacePageBase
15
{
16
    /**
17
     * Main function for this page, when no specific actions are called.
18
     * @return void
19
     */
20
    protected function main()
21
    {
22
        // clear any requests for client hints. Should have been done already prior to
23
        // email confirmation, but this catches the case where email confirmation is
24
        // disabled.
25
        $this->headerQueue[] = "Accept-CH:";
26
27
        $this->setTemplate('request/email-confirmed.tpl');
28
    }
29
}