PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc
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: 2 days ago
Size: 548 bytes
 

Contents

Class file image Download
<?php

$i
= 10;
--
$i;
--
$i;
--
/*comment*/ $i;
++
$i;
++
  
$i;
++
/*comment*/$i;

$i--;
$i --;
$i /*comment*/ --;
$i++;
$i ++;
$i /*comment*/ ++;

// Handle properties and array access too.
$i['key']++;
$i['key'] ++;
$i['key']['id']++;
$i['key']['id'] ++;

$obj->prop++;
$obj->prop ++;
$obj?->prop ++;

$obj->obj->prop++;
$obj->obj->prop ++;
$obj?->obj->prop ++;

$obj->prop['key']++;
$obj->prop['key'] ++;

--
ClassName::$prop;
--
ClassName::$prop;

getObject()->count
++;
getObject()->count++;
++
getObject()->count;
++
getObject()->count;