1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 14:57:37 +02:00

[ticket/16748] Adjust coding guidelines to put static after visibility

PHPBB3-16748
This commit is contained in:
Marc Alexander
2021-04-03 22:41:58 +02:00
parent 7d48254cc9
commit 95496ebd38
2 changed files with 7 additions and 7 deletions

View File

@@ -718,18 +718,18 @@ switch ($mode)
<h4>Class Members</h4>
<p>Use the explicit visibility qualifiers <code>public</code>, <code>private</code> and <code>protected</code> for all properties instead of <code>var</code>.
<p>Place the <code>static</code> qualifier before the visibility qualifiers.</p>
<p>Place the <code>static</code> qualifier after the visibility qualifiers.</p>
<p class="bad">//Wrong </p>
<div class="codebox"><pre>
var $x;
private static function f()</pre>
static private function f()</pre>
</div>
<p class="good">// Right </p>
<div class="codebox"><pre>
public $x;
static private function f()</pre>
private static function f()</pre>
</div>
<h4>Constants</h4>