mirror of https://github.com/flightphp/core
commit
3941d44c70
@ -1,54 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ruleset
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd"
|
||||
name="pcsg-generated-ruleset">
|
||||
<description>
|
||||
Created with the PHP Coding Standard Generator.
|
||||
http://edorian.github.io/php-coding-standard-generator/
|
||||
</description>
|
||||
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
||||
<!-- <arg name="report" value="source" /> -->
|
||||
<!-- <arg name="report" value="summary" /> -->
|
||||
<!-- <arg name="report" value="diff" /> -->
|
||||
<arg name="report" value="full" />
|
||||
<arg name="report-width" value="80" />
|
||||
<arg name="colors" />
|
||||
<arg name="encoding" value="utf-8" />
|
||||
<arg name="tab-width" value="4" />
|
||||
|
||||
<rule ref="PSR1">
|
||||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
|
||||
</rule>
|
||||
<rule ref="PSR12" />
|
||||
<rule ref="Generic">
|
||||
<exclude name="Generic.PHP.ClosingPHPTag.NotFound" />
|
||||
<exclude name="Generic.PHP.UpperCaseConstant.Found" />
|
||||
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
|
||||
<exclude name="Generic.Files.EndFileNoNewline.Found" />
|
||||
<exclude name="Generic.Files.LowercasedFilename.NotFound" />
|
||||
<exclude name="Generic.Commenting.DocComment.TagValueIndent" />
|
||||
<exclude name="Generic.Classes.OpeningBraceSameLine.BraceOnNewLine" />
|
||||
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
|
||||
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen" />
|
||||
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose" />
|
||||
<exclude name="Generic.Commenting.DocComment.MissingShort" />
|
||||
<exclude name="Generic.Commenting.DocComment.SpacingBeforeShort" />
|
||||
<exclude name="Generic.Formatting.NoSpaceAfterCast.SpaceFound" />
|
||||
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine" />
|
||||
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
|
||||
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine" />
|
||||
<exclude name="Generic.PHP.DisallowRequestSuperglobal.Found" />
|
||||
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsedHeredocCloser" />
|
||||
|
||||
<rule ref="PSR2">
|
||||
</rule>
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
<properties>
|
||||
<property name="ignoreComments" value="true" />
|
||||
</properties>
|
||||
|
||||
<rule ref="PSR12">
|
||||
<exclude name="PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword"/>
|
||||
</rule>
|
||||
<rule ref="Generic.Formatting.SpaceAfterNot">
|
||||
<properties>
|
||||
<property name="spacing" value="0" />
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing">
|
||||
<properties>
|
||||
<property name="ignoreNewlines" value="true" />
|
||||
</properties>
|
||||
</rule>
|
||||
<file>flight/</file>
|
||||
<file>tests/</file>
|
||||
<exclude-pattern>tests/views/*</exclude-pattern>
|
||||
|
||||
<file>index.php</file>
|
||||
<file>flight</file>
|
||||
<file>tests</file>
|
||||
</ruleset>
|
||||
|
||||
@ -1 +1 @@
|
||||
<span id="infotext">Route text:</span> Template <?=$name?> works!
|
||||
<span id="infotext">Route text:</span> Template <?= $name ?> works!
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?php if(isset($name)): ?>
|
||||
<span id="infotext">Route text:</span> Template <?=$name?> works!
|
||||
<?php elseif(isset($data)): ?>
|
||||
<span id="infotext">Route text:</span> Template with variable name "data" works! See: <?=$data?>
|
||||
<?php if (isset($name)): ?>
|
||||
<span id="infotext">Route text:</span> Template <?= $name ?> works!
|
||||
<?php elseif (isset($data)): ?>
|
||||
<span id="infotext">Route text:</span> Template with variable name "data" works! See: <?= $data ?>
|
||||
<?php endif; ?>
|
||||
|
||||
@ -1 +1 @@
|
||||
<html><?php echo $content; ?></html>
|
||||
<body><?= $content ?></body>
|
||||
|
||||
Loading…
Reference in new issue