Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367698 - Invalid code formatting after local variable extraction
Summary: Invalid code formatting after local variable extraction
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 03:14 EST by Wojciech Galanciak CLA
Modified: 2020-05-14 11:18 EDT (History)
3 users (show)

See Also:


Attachments
patch (1.02 KB, patch)
2012-01-02 03:16 EST, Wojciech Galanciak CLA
jacek.pospychala: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Galanciak CLA 2012-01-02 03:14:33 EST
Problem occurs when extracting local variable from a code which is in a php block root (not e.g. inside a class). For example:

<?php 
echo $a+$b+1;

echo $a+$b+1;

After extraction of $a+$b+1, file content is not formatted correctly:

<?php 
$b2 = $a+$b+1;echo $b2;

echo $b2;
Comment 1 Wojciech Galanciak CLA 2012-01-02 03:16:58 EST
Created attachment 208904 [details]
patch
Comment 2 Zhongwei Zhao CLA 2012-01-03 06:24:54 EST
thanks!
Comment 3 Sylvia Tancheva CLA 2012-01-06 09:10:29 EST
Verified - thanks.
Closing the bug.