Community
Participate
Working Groups
Hi, steps to reproduce: 1. import and define code formatter profile provided with this bug report 2. create a php file with following content: <?php class LineTest { public function testStyleArray() { $oLine = new Line(array( 'width' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(14), 'height' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(4), 'positioning' => 'absolute', 'posHorizontalRel' => 'page', 'posVerticalRel' => 'page', 'flip' => true, 'marginLeft' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(5), 'marginTop' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(3), 'wrappingStyle' => \PhpOffice\PhpWord\Style\Image::WRAPPING_STYLE_SQUARE, 'beginArrow' => \PhpOffice\PhpWord\Style\Line::ARROW_STYLE_BLOCK, 'endArrow' => \PhpOffice\PhpWord\Style\Line::ARROW_STYLE_OVAL, 'dash' => \PhpOffice\PhpWord\Style\Line::DASH_STYLE_LONG_DASH_DOT_DOT )); } } ?> 3. each time you format this file, the array() code formatting part will cycle between 2 presentations: $oLine = new Line(array( 'width' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(14), ... )); or $oLine = new Line( array( 'width' => \PhpOffice\PhpWord\Shared\Converter::cmToPixel(14), ... )); Thierry. NB: that's probably a long-standing bug (and the problem happens before all my recent code formatter patches).
Created attachment 273077 [details] code formatter profile
New Gerrit change created: https://git.eclipse.org/r/119152
Gerrit change https://git.eclipse.org/r/119152 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=14fbf2eafff402f764c35e076ee220ca093b7ab5
Fixed.
New Gerrit change created: https://git.eclipse.org/r/119178
Gerrit change https://git.eclipse.org/r/119178 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=f84849c7d293eef346bf44ee18f6c08e0fdaee63