PHP Classes
elePHPant
Icontem

File: phpcf-src/test/original/class-comm.php

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/original/class-comm.php  >  Download  
File: phpcf-src/test/original/class-comm.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 4 years ago
Size: 516 bytes
 

Contents

Class file image Download
<?php

/**
 * Class with constants, check alignment, if comment is present
 * THE EXPECTED FILE MUST BE LIKE THIS
 */

class Constants
{
    const
LOAD_RESULT_SUCCESS = 0; // code
   
const LOAD_RESULT_SH = 6; // ok -> finalize
   
const LOAD_RESULT_OTHER = 0; // code

   
const LOAD_RESULT_SUCCESS_2 = 0; // code
   
const LOAD_RESULT_SH_2 = 6;
    const
LOAD_RESULT_OTHER_2 = 0; // code

   
private $a_long_name = 15; // comment
   
private $a_name = 15;
}