PageRequestSubmitted::main()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
}