Code Duplication    Length = 9-9 lines in 2 locations

source/LogViewer/Controllers/LogViewerController.php 2 locations

@@ 74-82 (lines=9) @@
71
        $source->removeAll();
72
73
        $uri = $this->vault->uri('logs');
74
        if ($this->input->isAjax()) {
75
            return [
76
                'status'  => 200,
77
                'message' => $this->say('Logs deleted.'),
78
                'action'  => ['redirect' => $uri]
79
            ];
80
        } else {
81
            return $this->response->redirect($uri);
82
        }
83
    }
84
85
    /**
@@ 105-113 (lines=9) @@
102
103
        $uri = $this->removeBackURI($request);
104
105
        if ($this->input->isAjax()) {
106
            return [
107
                'status'  => 200,
108
                'message' => $this->say('Log rotations deleted.'),
109
                'action'  => ['redirect' => $uri]
110
            ];
111
        } else {
112
            return $this->response->redirect($uri);
113
        }
114
    }
115
116
    /**