0

I have this code :

public function registerNew ($first_name, $last_name, $email, $phone, $password, $bank_name, $bank_account_number, $bank_account_name, $gender, $birthday, $address, $area, $signup_date, $activated, $first_login, $token, $referred_by, $referral_id, $default_type) {

//some code here

}

and I want to make it pretty like this :

public function registerNew ($first_name, $last_name, $email, $phone, $password,
                             $bank_name, $bank_account_number, $bank_account_name,
                             $gender, $birthday, $address, $area, $signup_date,
                             $activated, $first_login, $token, $referred_by,
                             $referral_id, $default_type) {

//some code here

}

but, since I just hit enter button at the end of the line, then every time I tried to fold this function, my code editor fold everything until only the class name appears like this :

class User {...}

I'm expecting an output like this :

class User {

public function registerNew ($first_name, $last_name, $email, $phone, $password,
                                     $bank_name, $bank_account_number, $bank_account_name,
                                     $gender, $birthday, $address, $area, $signup_date,
                                     $activated, $first_login, $token, $referred_by,
                                     $referral_id, $default_type) {...}
}

do I have to put some character to break the lines instead of just hit enter button? or this just my code editor's problem?

thank you

Gerald Schneider
  • 17,416
  • 9
  • 60
  • 78
Saint Robson
  • 5,475
  • 18
  • 71
  • 118

0 Answers0