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

codeigniter4 / CodeIgniter4 / 12739860967

13 Jan 2025 03:03AM UTC coverage: 84.454%. Remained the same
12739860967

push

github

web-flow
chore: add more trailing commas in more places (#9395)

* Apply to parameters

* Apply to array destructuring

* Apply to match

* Apply for arguments

337 of 397 new or added lines in 117 files covered. (84.89%)

1 existing line in 1 file now uncovered.

20464 of 24231 relevant lines covered (84.45%)

189.67 hits per line

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

0.0
/system/rewrite.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter 4 framework.
7
 *
8
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
/*
15
 * CodeIgniter PHP-Development Server Rewrite Rules
16
 *
17
 * This script works with the CLI serve command to help run a seamless
18
 * development server based around PHP's built-in development
19
 * server. This file simply tries to mimic Apache's mod_rewrite
20
 * functionality so the site will operate as normal.
21
 */
22

23
// @codeCoverageIgnoreStart
24
$uri = urldecode(
×
NEW
25
    parse_url('https://codeigniter.com' . $_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? '',
×
26
);
×
27

28
// All request handle by index.php file.
29
$_SERVER['SCRIPT_NAME'] = '/index.php';
×
30

31
// Full path
32
$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . ltrim($uri, '/');
×
33

34
// If $path is an existing file or folder within the public folder
35
// then let the request handle it like normal.
36
if ($uri !== '/' && (is_file($path) || is_dir($path))) {
×
37
    return false;
×
38
}
39

40
unset($uri, $path);
×
41

42
// Otherwise, we'll load the index file and let
43
// the framework handle the request from here.
44
require_once $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'index.php';
×
45
// @codeCoverageIgnoreEnd
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc