Fix files with Laravel Pint
This commit is contained in:
parent
c714457604
commit
e36f15d391
116 changed files with 409 additions and 378 deletions
10
helpers.php
10
helpers.php
|
@ -68,7 +68,7 @@ if (! function_exists('normalize_url')) {
|
|||
$url['path'] = preg_replace_callback(
|
||||
array_map(
|
||||
function ($str) {
|
||||
return "/%" . strtoupper($str) . "/x";
|
||||
return '/%' . strtoupper($str) . '/x';
|
||||
},
|
||||
$u
|
||||
),
|
||||
|
@ -78,10 +78,10 @@ if (! function_exists('normalize_url')) {
|
|||
$url['path']
|
||||
);
|
||||
// Remove directory index
|
||||
$defaultIndexes = ["/default\.aspx/" => 'default.aspx/', "/default\.asp/" => 'default.asp/',
|
||||
"/index\.html/" => 'index.html/', "/index\.htm/" => 'index.htm/',
|
||||
"/default\.html/" => 'default.html/', "/default\.htm/" => 'default.htm/',
|
||||
"/index\.php/" => 'index.php/', "/index\.jsp/" => 'index.jsp/', ];
|
||||
$defaultIndexes = ["/default\.aspx/" => 'default.aspx/', "/default\.asp/" => 'default.asp/',
|
||||
"/index\.html/" => 'index.html/', "/index\.htm/" => 'index.htm/',
|
||||
"/default\.html/" => 'default.html/', "/default\.htm/" => 'default.htm/',
|
||||
"/index\.php/" => 'index.php/', "/index\.jsp/" => 'index.jsp/', ];
|
||||
foreach ($defaultIndexes as $index => $strip) {
|
||||
if (preg_match($index, $url['path'])) {
|
||||
$url['path'] = str_replace($strip, '', $url['path']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue