CourtesyPageController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * BEdita, API-first content management framework
4
 * Copyright 2021 ChannelWeb Srl, Chialab Srl
5
 *
6
 * This file is part of BEdita: you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser General Public License as published
8
 * by the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
12
 */
13
namespace App\Controller;
14
15
use Cake\Controller\Controller;
16
use Cake\Core\Configure;
17
use Cake\Http\Response;
18
19
/**
20
 * CourtesyPage Controller
21
 */
22
class CourtesyPageController extends Controller
23
{
24
    /**
25
     * Index method
26
     *
27
     * @return \Cake\Http\Response|null
28
     */
29
    public function index(): ?Response
30
    {
31
        $message = Configure::read('Maintenance.message');
32
        $this->set(compact('message'));
33
34
        return null;
35
    }
36
}
37