~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/xhpast/space-around-more-operators.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
$a.$b;
 
3
$a . $b;
 
4
$a. $b;
 
5
$a .$b;
 
6
$a.
 
7
$b;
 
8
$a.   // This should be okay.
 
9
$b;
 
10
 
 
11
array($x => $y);
 
12
array($x=>$y);
 
13
array($x =>$y);
 
14
array($x=> $y);
 
15
 
 
16
array(
 
17
  $x => $y,
 
18
);
 
19
array(
 
20
  $x =>
 
21
    $y,
 
22
);
 
23
array(
 
24
  $x=>$y,
 
25
);
 
26
~~~~~~~~~~
 
27
warning:3:3
 
28
warning:3:5
 
29
warning:4:4
 
30
warning:5:3
 
31
warning:12:9
 
32
warning:13:10
 
33
warning:14:9
 
34
warning:24:5
 
35
~~~~~~~~~~
 
36
<?php
 
37
$a.$b;
 
38
$a.$b;
 
39
$a.$b;
 
40
$a.$b;
 
41
$a.
 
42
$b;
 
43
$a.   // This should be okay.
 
44
$b;
 
45
 
 
46
array($x => $y);
 
47
array($x => $y);
 
48
array($x => $y);
 
49
array($x => $y);
 
50
 
 
51
array(
 
52
  $x => $y,
 
53
);
 
54
array(
 
55
  $x =>
 
56
    $y,
 
57
);
 
58
array(
 
59
  $x => $y,
 
60
);