| <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN"> |
| <html> |
| <head> |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| <meta name="generator" content="Adobe RoboHelp - www.adobe.com"> |
| <title>Applying Quick Fixes</title> |
| <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss"> |
| <!-- |
| if (navigator.appName !="Netscape") |
| { document.write("<link rel='stylesheet' href='default.css'>");} |
| //--> |
| </script> |
| <style> |
| <!-- |
| body { border-left-style:None; border-right-style:None; border-bottom-style:None; background-color:Transparent; border-top-style:None; } |
| --> |
| </style><style type="text/css"> |
| <!-- |
| h1.whs1 { color:#00709e; } |
| table.whs2 { x-cell-content-align:top; width:100%; border-spacing:0px; } |
| col.whs3 { width:7.093%; } |
| col.whs4 { width:92.907%; } |
| tr.whs5 { x-cell-content-align:top; } |
| td.whs6 { width:7.093%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; border-top-style:none; } |
| p.whs7 { font-size:6pt; } |
| td.whs8 { width:92.907%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-top-style:none; border-right-style:none; } |
| p.whs9 { font-weight:bold; } |
| td.whs10 { width:7.093%; padding-right:10px; padding-left:10px; border-left-style:none; border-right-style:none; border-bottom-style:none; } |
| img_whs11 { border:none; width:28px; height:33px; float:none; border-style:none; } |
| td.whs12 { width:92.907%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; } |
| ol.whs13 { list-style:decimal; } |
| p.whs14 { font-weight:normal; } |
| img_whs15 { border:none; width:16px; height:16px; float:none; border-style:none; } |
| img_whs16 { border:none; width:268px; height:127px; border-style:none; float:none; } |
| td.whs17 { width:100%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; } |
| table.whs18 { x-cell-content-align:top; width:100%; x-condition:Online; border-spacing:0px; } |
| tr.whs19 { x-cell-content-align:top; height:16px; x-condition:Online; } |
| td.whs20 { width:7.093%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-bottom-style:none; border-top-style:none; x-condition:Online; } |
| td.whs21 { width:92.907%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-top-style:none; x-condition:Online; } |
| tr.whs22 { x-cell-content-align:top; height:35px; x-condition:Online; } |
| td.whs23 { width:7.093%; padding-right:10px; padding-left:10px; border-left-style:none; border-right-style:none; border-bottom-style:none; x-condition:Online; } |
| img_whs24 { border:none; width:28px; height:18px; float:none; x-condition:Online; border-style:none; } |
| td.whs25 { width:92.907%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; x-condition:Online; } |
| tr.whs26 { x-cell-content-align:top; height:19px; x-condition:Online; } |
| div.whs27 { width:100%; } |
| p.whs28 { text-align:right; x-condition:Product, Online; } |
| p.whs29 { text-align:right; x-condition:Online; } |
| p.whs30 { text-align:center; x-condition:PDT; text-decoration:underline; } |
| --> |
| </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript"> |
| <!-- |
| function reDo() { |
| if (innerWidth != origWidth || innerHeight != origHeight) |
| location.reload(); |
| } |
| if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) { |
| origWidth = innerWidth; |
| origHeight = innerHeight; |
| onresize = reDo; |
| } |
| onerror = null; |
| //--> |
| </script> |
| <style type="text/css"> |
| <!-- |
| div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; } |
| p.WebHelpNavBar { text-align:right; } |
| --> |
| </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script> |
| <script type="text/javascript" language="javascript" src="whver.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whutils.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whlang.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script> |
| <script type="text/javascript" language="javascript1.2"> |
| <!-- |
| if (window.gbWhTopic) |
| { |
| if (window.setRelStartPage) |
| { |
| |
| } |
| |
| |
| if(1) |
| { |
| |
| } |
| |
| if (window.setRelStartPage) |
| { |
| setRelStartPage("IDE_Help.htm"); |
| |
| autoSync(1); |
| sendSyncInfo(); |
| sendAveInfoOut(); |
| } |
| |
| } |
| else |
| if (window.gbIE4) |
| document.location.reload(); |
| //--> |
| </script> |
| </head> |
| <body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5"><script type="text/javascript" language="javascript1.2"> |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(4); |
| //--> |
| </script> |
| <h1 class="whs1">Applying Quick Fixes</h1> |
| <p>Quick Fixes are suggestions for corrections to badly written code provided |
| by the Semantic Analysis mechanism |
| which can be easily applied to code to fix code errors.</p> |
| <table x-use-null-cells cellspacing="0" width="100%" class="whs2"> |
| <col class="whs3"> |
| <col class="whs4"> |
| |
| <tr valign="top" class="whs5"> |
| <td colspan="1" rowspan="1" width="7.093%" class="whs6"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs8"> |
| <p class="whs9"> </td></tr> |
| <tr valign="top" class="whs5"> |
| <td width="7.093%" class="whs10"> |
| <p class="whs7"><img src="ref_icon.png" x-maintain-ratio="TRUE" alt="Instructions on how to complete a procedure" width="28px" height="33px" border="0" class="img_whs11"></td> |
| <td width="92.907%" class="whs12"> |
| <p class="whs9">To apply a quick fix suggestion:</p> |
| <ol type="1" class="whs13"> |
| <li style="margin-left: -20px; font-weight: normal; " class=p><p class="whs14">Open |
| the file containing the problematic code.<br> |
| The line(s) containing code to which a quick fix can be applied will |
| be indicated by a lightbulb icon <img src="quickfix_warning_obj.gif" x-maintain-ratio="TRUE" width="16px" height="16px" border="0" class="img_whs15"> in the vertical marker bar to the left of the editor window.<br> |
| See <a HREF="Real_Time_Error_Detection.htm">Real Time Error Detection</a> |
| for more information on how errors are indicated.</p></li> |
| <li style="margin-left: -20px; font-weight: normal; " class=p><p class="whs14">Place |
| the cursor on the problematic code section and press Ctrl + 1 -or- click |
| the lightbulb icon in the marker bar.<br> |
| The Quick Fix list suggests options for fixing the code.</p></li> |
| </ol> |
| <p class=picture><img src="quick_fix_example.png" x-maintain-ratio="TRUE" width="268px" height="127px" border="0" class="img_whs16"></p> |
| <ol start="3" type="1" class="whs13"> |
| <li style="margin-left: -20px;" class=p><p>Select the required fix |
| from the list by clicking on it or by using the arrow keys and pressing |
| Enter.</p></li> |
| <li style="margin-left: -20px;" class=p><p>The selected fix is applied |
| and the code is changed accordingly.</p></li> |
| </ol></td></tr> |
| <tr valign="top" class="whs5"> |
| <td rowspan="1" colspan="2" width="100%" class="whs17"> |
| <p> </td> |
| </tr> |
| </table> |
| <table x-use-null-cells cellspacing="0" width="100%" class="whs18"> |
| <col class="whs3"> |
| <col class="whs4"> |
| |
| <tr valign="top" class="whs19"><td colspan="1" rowspan="1" width="7.093%" class="whs20"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs21"> |
| <p> </td></tr> |
| <tr valign="top" class="whs22"><td width="7.093%" class="whs23"> |
| <p class="whs7"><img src="link_icon.png" x-maintain-ratio="TRUE" alt="Related Links" width="28px" height="18px" border="0" class="img_whs24"></td> |
| <td width="92.907%" class="whs25"> |
| <p class="whs9">Related Links:</p> |
| <p class="whs14">Code |
| Analyzer and Semantic Analysis</p> |
| <p><a HREF="Semantic_Analysis_Preferences.htm">Semantic Analysis Preferences</a></td></tr> |
| <tr valign="top" class="whs26"><td colspan="1" rowspan="1" width="7.093%" class="whs23"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs25"> |
| <p> </td></tr> |
| </table> |
| <div placeholder id="footer" class="whs27"> |
| <p align="right" class="whs28"><span |
| style="background-color: #ffffff; x-condition: Online, Product;">V</span>iew |
| the Zend Product <a href="http://www.zend.com/en/resources/zend-documentation/zend-studio/zend-studio.htm" |
| style="color: #000000; x-condition: Product, Online;">Online Documentation</a> |
| for the most up-to-date information.</p> |
| <p align="right" class="whs29"><span style="background-color: #ffffff;"><a |
| href="javascript:crlf=" |
| ";h=location.href;t=document.title;e = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (e!=null) location="mailto:documentation@zend.com" + "?Subject= Feedback on " + escape(t) + "&Body=" + escape(e).replace(/ /g, "+") + crlf + " "; void 0" |
| style="x-condition: Online;">Submit Documentation Feedback</a></span></p> |
| <p align="center" class="whs30">PHP Development |
| Tools</p> |
| </div> |
| <script type="text/javascript" language="javascript1.2"> |
| <!-- |
| highlightSearch(); |
| if (window.writeIntopicBar) |
| writeIntopicBar(0); |
| if(0) |
| { |
| |
| } |
| //--> |
| </script> |
| </body> |
| </html> |