PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed
Role: Example script
Content type: text/plain
Description: Example script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 460 bytes
 

Contents

Class file image Download
phpcs:set Generic.WhiteSpace.ScopeIndent tabIndent false
phpcs:set Generic.WhiteSpace.ScopeIndent exact true
<?php
function test()
{
    echo
'test';
    echo
'test2';
    echo
'test3';
    if (
true) {
        echo
'test3';
    }
    echo
'test3';
   
$x = f1(
       
'test1', 'test2',
       
'test3'
   
);
}

if (
$foo) {
    [
     
'enabled' => $enabled,
     
'compression' => $compression,
    ] =
$options;
}

$this->foo()
    ->
bar()
    ->
baz();