PHP Classes
elePHPant
Icontem

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

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

 

Contents

Class file image Download
<?php

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#')"
;
}