PHP Classes

File: phpcf-src/test/original/alignment.php

Recommend this page to a friend!
  Packages of Alex Krash   PHP Code formatter   phpcf-src/test/original/alignment.php   Download  
File: phpcf-src/test/original/alignment.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: 12 years ago
Size: 725 bytes
 

 

Contents

Class file image Download
<?

define('QUERY_SOMETHING',    'SELECT * FROM table');
define('QUERY_OTHER_THING',  'SELECT * FROM table');

define('QUERY_SOMETHING','SELECT * FROM table');
define('QUERY_OTHER_THING','SELECT * FROM table');

$arr = array(
    'some-test'         => true,
    'other-test'        => false,
    'slight-misalign'  => 'oh shi!'
);

class Test {
    public function doSomething() {
        
    }
    
    const QUERY_MULTILINE  = "SELECT
            col1, col2
        FROM
            some_table";

    const OTHER_QUERY      = "INSERT INTO
        table1 (col2, col3)
        VALUES ('#col2#', '#col3#')";

    const MISALIGNED_QUERY  = "INSERT INTO
        table1 (col2, col3)
        VALUES ('#col2#', '#col3#')";
}

?>