PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/TypeSeparatorSpacingStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/TypeSeparatorSpacingStandard.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,007 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="Type Separator Spacing" > <standard> <![CDATA[ There should be no spacing around the union type separator or the intersection type separator. This applies to all locations where type declarations can be used, i.e. property types, parameter types and return types. ]]> </standard> <code_comparison> <code title="Valid: No space around the separators."> <![CDATA[ function foo( int<em>|</em>string $paramA, TypeA<em>&</em>TypeB $paramB ): int<em>|</em>false {} ]]> </code> <code title="Invalid: Space around the separators."> <![CDATA[ function foo( int<em> | </em>string $paramA, TypeA<em> & </em>TypeB $paramB ): int<em> | </em>false {} ]]> </code> </code_comparison> </documentation>