PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Beautifier » Bug #7310

rewrite include/require to single quotes without ()

Details

Request #7310rewrite include/require to single quotes without ()
Submitted2006-04-05 12:01 UTC
Frompear at sebastianmendel dot de
StatusBogus
PackagePHP_Beautifier
PHP Version5.1.2
OSWindows
Roadmaps(Not assigned)

Comments

[2006-04-05 12:01 UTC] pear at sebastianmendel dot de

Description:
------------
include("file"); becomes
include ("file"); but should become
include 'file'; following PEAR standard

Expected result:
----------------
include 'file';

Actual result:
--------------
incldue ("file");

[2006-06-06 03:42 UTC] clbustos at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

If the developer use a expression inside the include or requiere, will be very tricky to compute where put the quotes or parenthesis.
Example:

include_once dirname(__FILE__)."/$test/".'nice';