Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367698

Summary: Invalid code formatting after local variable extraction
Product: z_Archived Reporter: Wojciech Galanciak <wojciech.galanciak>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jacek.pospychala, silviya, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch jacek.pospychala: iplog+

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.