PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 1,191 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Concatenation position" > <standard> <![CDATA[ Enforces that the concatenation operator for multi-line concatenations is in a preferred position, either always at the start of the next line or always at the end of the previous line. The preferred position is configurable and defaults to "start" for _start of the next line_. Note: mid-line concatenation is still allowed and will not be flagged by this sniff. ]]> </standard> <code_comparison> <code title="Valid: multi-line concatenation with the concatenation operator at the start of each line."> <![CDATA[ $var = 'text' . $a <em>.</em> $b . 'text' <em>.</em> $c; ]]> </code> <code title="Invalid: multi-line concatenation with the concatenation operator not consistently at the start of each line."> <![CDATA[ $var = 'text' . $a <em>.</em> $b . 'text' <em>.</em> $c; ]]> </code> </code_comparison> </documentation>