1<?php
2
3/**
4 * Github Issue:    https://github.com/emacs-php/php-mode/issues/14
5 *
6 * The code below should be formatted like so if we run indent-region
7 * on it:
8 *
9 * $post = Post::model()->find(array(
10 *     'select' => 'title',
11 *     'condition' => 'postID=:postID',
12 *     'params' => array(':postID'=>10),
13 * ));
14 *
15 */
16
17$post = Post::model()->find(array(
18    'select' => 'title',              // ###php-mode-test### ((indent c-basic-offset))
19    'condition' => 'postID=:postID',  // ###php-mode-test### ((indent c-basic-offset))
20    'params' => array(':postID'=>10), // ###php-mode-test### ((indent c-basic-offset))
21));                                   // ###php-mode-test### ((indent 0))