code style: multi statements
This commit is contained in:
parent
d4f83172d9
commit
257be26ca1
|
@ -2,10 +2,8 @@
|
|||
<ruleset name="Migration Adjustments for the DokuWiki Coding Standard Standard" namespace="DokuWiki\CS\Standard">
|
||||
<description>These are exceptions to the Coding Standard used for DokuWiki that are intended to be removed over time.</description>
|
||||
|
||||
<!-- rules on top of PSR-12 -->
|
||||
<!-- extend the standard configuration -->
|
||||
<rule ref="./phpcs.xml">
|
||||
<!-- Rules with automatic fixes that we want to adhere to, but currently don't -->
|
||||
<exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine"/>
|
||||
</rule>
|
||||
|
||||
<!-- for now we mix declarations and execution here (mostly for defines) -->
|
||||
|
|
|
@ -197,7 +197,7 @@ function js_load($file)
|
|||
|
||||
$idata = '';
|
||||
if (file_exists($ifile)) {
|
||||
$ismin = (substr($ifile, -7) == '.min.js');;
|
||||
$ismin = (substr($ifile, -7) == '.min.js');
|
||||
if ($ismin) $idata .= "\n/* BEGIN NOCOMPRESS */\n";
|
||||
$idata .= io_readFile($ifile);
|
||||
if ($ismin) $idata .= "\n/* END NOCOMPRESS */\n";
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
<body>
|
||||
|
||||
<?php
|
||||
$fi_list = ''; $fi_list32 = '';
|
||||
$fi_list = '';
|
||||
$fi_list32 = '';
|
||||
foreach (glob('*.png') as $img) {
|
||||
$fi_list .= '<img src="' . $img . '" alt="' . $img . '" title="' . $img . '" /> ';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue