File "ObjectOperatorSpacingUnitTest.inc"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc
File size: 1.17 KB
MIME-type: text/x-php
Charset: utf-8

<?php
$this->testThis();
$this-> testThis();
$this    ->  testThis();
$this-> /* comment here */testThis();
$this/* comment here */ -> testThis();
$this
    ->testThis();
$this->
    testThis();

// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines true

$this->testThis();
$this-> testThis();
$this    ->  testThis();
$this->/* comment here */testThis();
$this/* comment here */ -> testThis();
$this
    ->testThis();
$this->
    testThis();

// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines false

thisObject::testThis();
thisObject:: testThis();
thisObject    ::  testThis();
thisObject::/* comment here */testThis();
thisObject/* comment here */ :: testThis();
thisObject
    ::testThis();
thisObject::
    testThis();
	
// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines true

thisObject::testThis();
thisObject:: testThis();
thisObject    ::  testThis();
thisObject::/* comment here */testThis();
thisObject/* comment here */ :: testThis();
thisObject
    ::testThis();
thisObject::
    testThis();

// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines false

$this?->testThis();
$this?-> testThis();
$this    ?->  testThis();