Change some phpdocs to simple comments (#4945)

This commit is contained in:
John Paul E. Balandan, CPA 2021-07-18 22:13:55 +08:00 committed by GitHub
parent 52c814525b
commit 36152b39b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 20 additions and 42 deletions

View File

@ -11,7 +11,7 @@ if (file_exists(SYSTEMPATH . 'Config/Routes.php')) {
require SYSTEMPATH . 'Config/Routes.php';
}
/**
/*
* --------------------------------------------------------------------
* Router Setup
* --------------------------------------------------------------------

View File

@ -11,7 +11,7 @@
use CodeIgniter\Exceptions\PageNotFoundException;
/**
/*
* System URI Routing
*
* This file contains any routing to system tools, such as command-line

View File

@ -9,9 +9,7 @@
* file that was distributed with this source code.
*/
/**
* CodeIgniter Array Helpers
*/
// CodeIgniter Array Helpers
if (! function_exists('dot_array_search')) {
/**

View File

@ -9,9 +9,7 @@
* file that was distributed with this source code.
*/
/**
* CodeIgniter Date Helpers
*/
// CodeIgniter Date Helpers
if (! function_exists('now')) {
/**

View File

@ -9,9 +9,7 @@
* file that was distributed with this source code.
*/
/**
* CodeIgniter File System Helpers
*/
// CodeIgniter File System Helpers
// ------------------------------------------------------------------------
if (! function_exists('directory_map')) {

View File

@ -11,9 +11,7 @@
use Config\App;
/**
* CodeIgniter Form Helpers
*/
// CodeIgniter Form Helpers
use Config\Services;

View File

@ -15,9 +15,7 @@ use Config\Mimes;
// --------------------------------------------------------------------
/**
* CodeIgniter HTML Helpers
*/
// CodeIgniter HTML Helpers
if (! function_exists('ul')) {
/**
* Unordered List

View File

@ -11,9 +11,7 @@
// --------------------------------------------------------------------
/**
* CodeIgniter Inflector Helpers
*/
// CodeIgniter Inflector Helpers
if (! function_exists('singular')) {
/**
* Singular

View File

@ -11,9 +11,7 @@
use Config\Services;
/**
* CodeIgniter Number Helpers
*/
// CodeIgniter Number Helpers
if (! function_exists('number_to_size')) {
/**

View File

@ -11,9 +11,7 @@
use Config\Services;
/**
* CodeIgniter Security Helpers
*/
// CodeIgniter Security Helpers
if (! function_exists('sanitize_filename')) {
/**

View File

@ -12,9 +12,7 @@
use CodeIgniter\Model;
use CodeIgniter\Test\Fabricator;
/**
* CodeIgniter Test Helpers
*/
// CodeIgniter Test Helpers
//--------------------------------------------------------------------
if (! function_exists('fake')) {

View File

@ -11,9 +11,7 @@
use Config\ForeignCharacters;
/**
* CodeIgniter Text Helpers
*/
// CodeIgniter Text Helpers
//--------------------------------------------------------------------
if (! function_exists('word_limiter')) {

View File

@ -15,9 +15,7 @@ use CodeIgniter\Router\Exceptions\RouterException;
use Config\App;
use Config\Services;
/**
* CodeIgniter URL Helpers
*/
// CodeIgniter URL Helpers
if (! function_exists('_get_uri')) {
/**

View File

@ -9,9 +9,7 @@
* file that was distributed with this source code.
*/
/**
* CodeIgniter XML Helpers
*/
// CodeIgniter XML Helpers
if (! function_exists('xml_convert')) {
/**

View File

@ -465,7 +465,7 @@ class Parser extends View
{
$pattern = '/\{\s*(if|elseif)\s*((?:\()?(.*?)(?:\))?)\s*\}/ms';
/**
/*
* For each match:
* [0] = raw match `{if var}`
* [1] = conditional `if`

View File

@ -2,7 +2,5 @@
namespace Tests\Support\Config;
/**
* This is a simple file to include for testing the RouteCollection class.
*/
// This is a simple file to include for testing the RouteCollection class.
$routes->add('testing', 'TestController::index', ['as' => 'testing-index']);

View File

@ -384,6 +384,10 @@ final class CodeIgniter4 extends AbstractRuleset
'phpdoc_summary' => false,
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
'phpdoc_to_comment' => false,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => false,
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']],