Bug 493449 - Wrong auto indentation after call chain
Summary: Wrong auto indentation after call chain
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 480474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-11 13:00 EDT by Dawid Pakula CLA
Modified: 2020-05-14 10:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Pakula CLA 2016-05-11 13:00:29 EDT
Formatter profile: PSR

Example (after formatting):

$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy([
    'clientId' => $soapHeaders->get('api_key')
]);| // enter here

Result:
$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy([
    'clientId' => $soapHeaders->get('api_key')
]);
    |

Expected:
$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy([
    'clientId' => $soapHeaders->get('api_key')
]);
|

Second example:
$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy();| // use enter twice

Result:
$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy();

    |

Expected:
$this->getDoctrine()
    ->getRepository(Partner::class)
    ->findOneBy();

|
Comment 1 Dawid Pakula CLA 2020-01-12 12:18:26 EST
*** Bug 480474 has been marked as a duplicate of this bug. ***