File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ This variable can take one of the following symbol values:
305
305
(brace-list-entry . c-lineup-cascaded-calls)
306
306
(arglist-close . php-lineup-arglist-close)
307
307
(arglist-intro . php-lineup-arglist-intro)
308
+ (knr-argdecl . [0])
308
309
(statement-cont . (first c-lineup-cascaded-calls + ))))))
309
310
310
311
(defun php-enable-pear-coding-style ()
@@ -325,6 +326,7 @@ code and modules."
325
326
(arglist-close . php-lineup-arglist-close)
326
327
(arglist-intro . php-lineup-arglist-intro)
327
328
(arglist-cont-nonempty . c-lineup-math)
329
+ (knr-argdecl . [0])
328
330
(statement-cont . (first c-lineup-cascaded-calls + ))))))
329
331
330
332
(defun php-enable-drupal-coding-style ()
@@ -351,6 +353,7 @@ working with Drupal."
351
353
(arglist-close . 0 )
352
354
(defun-close . 0 )
353
355
(defun-block-intro . + )
356
+ (knr-argdecl . [0])
354
357
(statement-cont . (first c-lineup-cascaded-calls + ))))))
355
358
356
359
(defun php-enable-wordpress-coding-style ()
@@ -376,6 +379,7 @@ working with Wordpress."
376
379
(statement-case-intro . 4 )
377
380
(defun-close . 0 )
378
381
(defun-block-intro . + )
382
+ (knr-argdecl . [0])
379
383
(statement-cont . php-lineup-hanging-semicolon)))))
380
384
381
385
(defun php-enable-symfony2-coding-style ()
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Github Issue: https://github.com/ejmr/php-mode/issues/102
5
+ *
6
+ * Every line of code in the form of
7
+ *
8
+ * $broken = true;
9
+ *
10
+ * in the code below should have no indentation. This test makes sure
11
+ * that files containing magic constants, e.g. __FILE__, do not
12
+ * incorrectly affect the indentation of following lines.
13
+ *
14
+ */
15
+
16
+ $ x = some_function (__FILE__ ) . '' ;
17
+ $ broken = true ;
18
+
19
+ some_function (__FILE__ ) . '' ;
20
+ $ broken = true ;
21
+
22
+ some_function (__FILE__ ) + 1 ;
23
+ $ broken = true ;
You can’t perform that action at this time.
0 commit comments