Skip to content

Commit 719f4d4

Browse files
docs: update PSR-2 reference to PSR-12 (superseded 2019)
PSR-2 was officially superseded by PSR-12 in August 2019. The PHP-FIG still redirects the old URL but marks PSR-2 as deprecated. Update prose and link to reflect the current standard. Note: the vim set expandtab → noexpandtab fix is covered in PR Cacti#212.
1 parent c11fa00 commit 719f4d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Standards-Code-Formatting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
Over the years Cacti has attempted to adhere to standards in code construction,
66
syntax, style, etc. It has been a very organic grow which has resulted in some
77
mixed styles. Cacti is in the process of moving to [PHP Standards
8-
Recommendations](http://www.php-fig.org/psr/) (PSR) standards.
8+
Recommendations](https://www.php-fig.org/psr/) (PSR) standards.
99

10-
Initially we are moving towards [PSR-2](http://www.php-fig.org/psr/psr-2/) code
11-
syntax standard with the following exceptions:
10+
Initially we are moving towards [PSR-12](https://www.php-fig.org/psr/psr-12/)
11+
(Extended Coding Style) with the following exceptions:
1212

1313
- Initial white space must be tabs not spaces followed by the use of spaces to
1414
align elements after initial tab.
@@ -47,7 +47,7 @@ Tab stops should be set to 4 spaces.
4747
Below are the vim rules to accomplish this:
4848

4949
```console
50-
set expandtab
50+
set noexpandtab
5151
set shiftwidth=4
5252
set softtabstop=4
5353
set tabstop=4

0 commit comments

Comments
 (0)