Code Duplication    Length = 28-28 lines in 2 locations

risoluto/apps/RisolutoApps/Error.php 1 location

@@ 21-48 (lines=28) @@
18
//------------------------------------------------------//
19
// クラス定義
20
//------------------------------------------------------//
21
class Error extends \Risoluto\RisolutoControllerBase implements \Risoluto\RisolutoControllerInterface
22
{
23
    // View関連の処理を使用する
24
    use \Risoluto\RisolutoViewTrait;
25
26
    /**
27
     * play()
28
     *
29
     * 主処理を行う
30
     *
31
     * @access    public
32
     *
33
     * @param     void
34
     *
35
     * @return    void    なし
36
     */
37
    public function play()
38
    {
39
        // ヘッダ情報のセット
40
        $header = $this->getDefaultHeader();
41
        $header = $this->replaceHeader( $header, 'robots', 'NOINDEX,NOFOLLOW' );
42
        $header = $this->replaceHeader( $header, 'title', 'エラーが発生しました' );
43
44
        // テンプレートエンジン関連の処理
45
        $assign_value = [ 'header' => $header ];
46
        $this->risolutoView( $assign_value );
47
    }
48
}

risoluto/apps/RisolutoApps/ServiceStop.php 1 location

@@ 21-48 (lines=28) @@
18
//------------------------------------------------------//
19
// クラス定義
20
//------------------------------------------------------//
21
class ServiceStop extends \Risoluto\RisolutoControllerBase implements \Risoluto\RisolutoControllerInterface
22
{
23
    // View関連の処理を使用する
24
    use \Risoluto\RisolutoViewTrait;
25
26
    /**
27
     * play()
28
     *
29
     * 主処理を行う
30
     *
31
     * @access    public
32
     *
33
     * @param     void
34
     *
35
     * @return    void    なし
36
     */
37
    public function play()
38
    {
39
        // ヘッダ情報のセット
40
        $header = $this->getDefaultHeader();
41
        $header = $this->replaceHeader( $header, 'robots', 'NOINDEX,NOFOLLOW' );
42
        $header = $this->replaceHeader( $header, 'title', '現在サービスを停止しています' );
43
44
        // テンプレートエンジン関連の処理
45
        $assign_value = [ 'header' => $header ];
46
        $this->risolutoView( $assign_value );
47
    }
48
}