This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206970 - Formatting of unused variable value
Summary: Formatting of unused variable value
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 07:24 UTC by Vladimir Riha
Modified: 2016-09-22 01:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshoot of the fonctionnality (13.18 KB, image/png)
2016-09-22 01:41 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-01-06 07:24:17 UTC
Detect if a value of some variable is never used and mark this variable (hint, gray color...). It can help to find useless parts of code.

Example:
$foo = 1;
$foo = 2;
echo $foo;

The value 1 is never used and the text "$foo=1;" could be underlined or gray.
Comment 1 amobilia 2016-09-22 01:41:37 UTC
Created attachment 162163 [details]
Screenshoot of the fonctionnality

Hi,

It's done on the 8.2 (rc) with warning of two assignements.
Probalby added before.