File: issue-102.php

package info (click to toggle)
php-elisp 1.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,220 kB
  • sloc: lisp: 7,069; php: 5,343; makefile: 58; sh: 10
file content (23 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

/**
 * Github Issue:    https://github.com/emacs-php/php-mode/issues/102
 *
 * Every line of code in the form of
 *
 *     $broken = true;
 *
 * in the code below should have no indentation.  This test makes sure
 * that files containing magic constants, e.g. __FILE__, do not
 * incorrectly affect the indentation of following lines.
 *
 */

$x = some_function(__FILE__) . '';
$broken = true;

some_function(__FILE__) . '';
$broken = true;

some_function(__FILE__) + 1;
$broken = true;