getValue() . "\n"; } } class Foo { function hello() { return "hello"; } function hello_1($arg) { return "hello"; } function bar($arg = '') { echo "In bar(); argument was '$arg'.
\n"; } function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName() { return "hello"; } function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName(): ?string { return "hello"; } function reeeeeeeeeeaaaaaaaallllllllyyyyyy_llloooooooonnnnnnggggg($soooooooooooo_looooooooonnnng, $eeeeeeeeevvveeeeeeeennnn_loooooonnngggeeeerrrr) { return $soooooooooooo_looooooooonnnng; } function type_hinting_test(array $array_test, callable $callable_test, bool $bool_test, float $float_test, iterable $iterable_test, int $int_test, string $string_test = '') { return $int_test; } function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongNameOther( $string, $max_length, // @codingStandardsIgnoreLine $ellipses = ' … ', // the spaces are non-breaking spaces &$flag = null ) { return "hello"; } static function staticmethod() {} public static function ellipsizeMiddle( $string, $max_length, // @codingStandardsIgnoreLine $ellipses = ' … ', // the spaces are non-breaking spaces &$flag = null ) { $string = trim($string); } public static function hello_2() {} public static function hello_3($var = 1) {} public static function hello_4($var = 1, $other_var = 2, $other_other_other_var = 3) {} public static function hello_5($var = 1, $other_var = 2, $other_other_other_var = 3): ?string {} public static function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName() {} public static function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName($var = 1) {} public static function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName($var = 1, $other_var = 2, $other_other_other_var = 3) {} public static function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName($var = 1, $other_var = 2, $other_other_other_var = 3) : ?string {} public static function newlines( $var = 1, $other_var = 2 ) {} public static function veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName( $var = 1, $other_var = 2 ) {} }