• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gr8man / kohana-php8 / 32517185409

21 Aug 2026 07:11PM UTC coverage: 80.434% (+26.9%) from 53.492%
32517185409

push

github

gr8man
feat: add markdown parser to userguide module and update gitignore to include it

6783 of 8433 relevant lines covered (80.43%)

12.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/modules/codebench/classes/Controller/Codebench.php
1
<?php
2

3
declare(strict_types=1);
4
defined('SYSPATH') or die('No direct access allowed.');
5
/**
6
 * Codebench — A benchmarking module.
7
 *
8
 * @package    Kohana/Codebench
9
 * @category   Controllers
10
 * @author     Kohana Team
11
 * @copyright  (c) 2009 Kohana Team
12
 * @license    http://kohanaphp.com/license.html
13
 */
14
class Controller_Codebench extends Kohana_Controller_Template
15
{
16
        // The codebench view
17
        public $template = 'codebench';
18

19
        public function action_index(): void
×
20
        {
21
                $class = $this->request->param('class');
×
22

23
                // Convert submitted class name to URI segment
24
                if (isset($_POST['class'])) {
×
25
                        throw HTTP_Exception::factory(302)->location('codebench/'.trim((string) $_POST['class']));
×
26
                }
27

28
                // Pass the class name on to the view
29
                $this->template->class = (string) $class;
×
30

31
                // Try to load the class, then run it
32
                if (is_string($class) && class_exists($class)) {
×
33
                        $codebench = new $class();
×
34
                        $this->template->codebench = $codebench->run();
×
35
                }
36
        }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc