Skip to content

Commit 36152b3

Browse files
authored
Change some phpdocs to simple comments (#4945)
1 parent 52c8145 commit 36152b3

17 files changed

+20
-42
lines changed

app/Config/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require SYSTEMPATH . 'Config/Routes.php';
1212
}
1313

14-
/**
14+
/*
1515
* --------------------------------------------------------------------
1616
* Router Setup
1717
* --------------------------------------------------------------------

system/Config/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use CodeIgniter\Exceptions\PageNotFoundException;
1313

14-
/**
14+
/*
1515
* System URI Routing
1616
*
1717
* This file contains any routing to system tools, such as command-line

system/Helpers/array_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
/**
13-
* CodeIgniter Array Helpers
14-
*/
12+
// CodeIgniter Array Helpers
1513

1614
if (! function_exists('dot_array_search')) {
1715
/**

system/Helpers/date_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
/**
13-
* CodeIgniter Date Helpers
14-
*/
12+
// CodeIgniter Date Helpers
1513

1614
if (! function_exists('now')) {
1715
/**

system/Helpers/filesystem_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
/**
13-
* CodeIgniter File System Helpers
14-
*/
12+
// CodeIgniter File System Helpers
1513
// ------------------------------------------------------------------------
1614

1715
if (! function_exists('directory_map')) {

system/Helpers/form_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
use Config\App;
1313

14-
/**
15-
* CodeIgniter Form Helpers
16-
*/
14+
// CodeIgniter Form Helpers
1715

1816
use Config\Services;
1917

system/Helpers/html_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515

1616
// --------------------------------------------------------------------
1717

18-
/**
19-
* CodeIgniter HTML Helpers
20-
*/
18+
// CodeIgniter HTML Helpers
2119
if (! function_exists('ul')) {
2220
/**
2321
* Unordered List

system/Helpers/inflector_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
// --------------------------------------------------------------------
1313

14-
/**
15-
* CodeIgniter Inflector Helpers
16-
*/
14+
// CodeIgniter Inflector Helpers
1715
if (! function_exists('singular')) {
1816
/**
1917
* Singular

system/Helpers/number_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
use Config\Services;
1313

14-
/**
15-
* CodeIgniter Number Helpers
16-
*/
14+
// CodeIgniter Number Helpers
1715

1816
if (! function_exists('number_to_size')) {
1917
/**

system/Helpers/security_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
use Config\Services;
1313

14-
/**
15-
* CodeIgniter Security Helpers
16-
*/
14+
// CodeIgniter Security Helpers
1715

1816
if (! function_exists('sanitize_filename')) {
1917
/**

system/Helpers/test_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
use CodeIgniter\Model;
1313
use CodeIgniter\Test\Fabricator;
1414

15-
/**
16-
* CodeIgniter Test Helpers
17-
*/
15+
// CodeIgniter Test Helpers
1816
//--------------------------------------------------------------------
1917

2018
if (! function_exists('fake')) {

system/Helpers/text_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
use Config\ForeignCharacters;
1313

14-
/**
15-
* CodeIgniter Text Helpers
16-
*/
14+
// CodeIgniter Text Helpers
1715
//--------------------------------------------------------------------
1816

1917
if (! function_exists('word_limiter')) {

system/Helpers/url_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
use Config\App;
1616
use Config\Services;
1717

18-
/**
19-
* CodeIgniter URL Helpers
20-
*/
18+
// CodeIgniter URL Helpers
2119

2220
if (! function_exists('_get_uri')) {
2321
/**

system/Helpers/xml_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
/**
13-
* CodeIgniter XML Helpers
14-
*/
12+
// CodeIgniter XML Helpers
1513

1614
if (! function_exists('xml_convert')) {
1715
/**

system/View/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ protected function parseConditionals(string $template): string
465465
{
466466
$pattern = '/\{\s*(if|elseif)\s*((?:\()?(.*?)(?:\))?)\s*\}/ms';
467467

468-
/**
468+
/*
469469
* For each match:
470470
* [0] = raw match `{if var}`
471471
* [1] = conditional `if`

tests/_support/Config/Routes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
namespace Tests\Support\Config;
44

5-
/**
6-
* This is a simple file to include for testing the RouteCollection class.
7-
*/
5+
// This is a simple file to include for testing the RouteCollection class.
86
$routes->add('testing', 'TestController::index', ['as' => 'testing-index']);

utils/PhpCsFixer/CodeIgniter4.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ public function __construct()
384384
'phpdoc_summary' => false,
385385
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
386386
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
387+
'phpdoc_to_comment' => false,
388+
'phpdoc_to_param_type' => false,
389+
'phpdoc_to_property_type' => false,
390+
'phpdoc_to_return_type' => false,
387391
'phpdoc_trim' => true,
388392
'phpdoc_trim_consecutive_blank_line_separation' => true,
389393
'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']],

0 commit comments

Comments
 (0)