To paste code I usually place the cursor in a new line and then I press TAB once, for example:
/**
* Sign Out
* @return void
*/
public function getOut()
{
Auth::logout();
return Redirect::route('sign_in');
}
Usually, it does not require any other adjustment because, in my editor, I always indent the code. Otherwise you have to select the pasted code and press TAB. By pressing Shift Tab
, instead, you remove one tab space. So you can adjust the code block as you like. Hope it helps, bye!