PHP Classes

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

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   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: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
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();