Differential D13534 Diff 33881 src/lint/linter/__tests__/xhpast/language-construct-parentheses.lint-test
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/xhpast/language-construct-parentheses.lint-test
<?php | <?php | ||||
include 'foo.php'; | include 'foo.php'; | ||||
include_once 'foo.php'; | include_once 'foo.php'; | ||||
require 'foo.php'; | require 'foo.php'; | ||||
require_once 'foo.php'; | require_once 'foo.php'; | ||||
echo 'foo'; | echo 'foo'; | ||||
include('bar.php'); | include('bar.php'); | ||||
include_once('bar.php'); | include_once('bar.php'); | ||||
require('bar.php'); | require('bar.php'); | ||||
require_once('bar.php'); | require_once('bar.php'); | ||||
echo('bar'); | echo('bar'); | ||||
include ('baz.php'); | include ('baz.php'); | ||||
include_once ('baz.php'); | include_once ('baz.php'); | ||||
require ('baz.php'); | require ('baz.php'); | ||||
require_once ('baz.php'); | require_once ('baz.php'); | ||||
echo ('baz'); | echo ('baz'); | ||||
~~~~~~~~~~ | ~~~~~~~~~~ | ||||
warning:8:8 | warning:9:8 | ||||
warning:9:13 | warning:10:13 | ||||
warning:10:8 | warning:11:8 | ||||
warning:11:13 | warning:12:13 | ||||
warning:12:5 | warning:13:5 | ||||
warning:14:9 | warning:15:9 | ||||
warning:15:14 | warning:16:14 | ||||
warning:16:9 | warning:17:9 | ||||
warning:17:14 | warning:18:14 | ||||
warning:18:6 | warning:19:6 | ||||
~~~~~~~~~~ | ~~~~~~~~~~ | ||||
<?php | <?php | ||||
include 'foo.php'; | include 'foo.php'; | ||||
include_once 'foo.php'; | include_once 'foo.php'; | ||||
require 'foo.php'; | require 'foo.php'; | ||||
require_once 'foo.php'; | require_once 'foo.php'; | ||||
echo 'foo'; | echo 'foo'; | ||||
include 'bar.php'; | include 'bar.php'; | ||||
include_once 'bar.php'; | include_once 'bar.php'; | ||||
Show All 9 Lines |