@@ -21,12 +21,12 @@ try {
2121 echo $ e ->getMessage () . PHP_EOL ;
2222}
2323try {
24- imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , array ( new A ()) );
24+ imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , [ new A ()] );
2525} catch (\ValueError $ e ) {
2626 echo $ e ->getMessage () . PHP_EOL ;
2727}
2828try {
29- imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , array (- 1 ) );
29+ imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , [- 1 ] );
3030} catch (\ValueError $ e ) {
3131 echo $ e ->getMessage () . PHP_EOL ;
3232}
@@ -36,38 +36,38 @@ try {
3636 echo $ e ->getMessage () . PHP_EOL ;
3737}
3838try {
39- imagecrop ($ img , array ( "x " => 0 , "y " => PHP_INT_MIN , "width " => 0 , "height " => 0 ) );
39+ imagecrop ($ img , [ "x " => 0 , "y " => PHP_INT_MIN , "width " => 0 , "height " => 0 ] );
4040} catch (\ValueError $ e ) {
4141 echo $ e ->getMessage () . PHP_EOL ;
4242}
4343try {
44- imagecrop ($ img , array ( "x " => 0 , "y " => 0 , "width " => PHP_INT_MAX , "height " => 0 ) );
44+ imagecrop ($ img , [ "x " => 0 , "y " => 0 , "width " => PHP_INT_MAX , "height " => 0 ] );
4545} catch (\ValueError $ e ) {
4646 echo $ e ->getMessage () . PHP_EOL ;
4747}
4848try {
49- imagecrop ($ img , array ( "x " => 0 , "y " => 0 , "width " => 0 , "height " => PHP_INT_MAX ) );
49+ imagecrop ($ img , [ "x " => 0 , "y " => 0 , "width " => 0 , "height " => PHP_INT_MAX ] );
5050} catch (\ValueError $ e ) {
5151 echo $ e ->getMessage () . PHP_EOL ;
5252}
5353
5454try {
55- imagecrop ($ img , array ( "x " => new A (), "y " => 0 , "width " => 0 , "height " => 0 ) );
55+ imagecrop ($ img , [ "x " => new A (), "y " => 0 , "width " => 0 , "height " => 0 ] );
5656} catch (\ValueError $ e ) {
5757 echo $ e ->getMessage () . PHP_EOL ;
5858}
5959try {
60- imagecrop ($ img , array ( "x " => 0 , "y " => new A (), "width " => 0 , "height " => 0 ) );
60+ imagecrop ($ img , [ "x " => 0 , "y " => new A (), "width " => 0 , "height " => 0 ] );
6161} catch (\ValueError $ e ) {
6262 echo $ e ->getMessage () . PHP_EOL ;
6363}
6464try {
65- imagecrop ($ img , array ( "x " => 0 , "y " => 0 , "width " => new A (), "height " => 0 ) );
65+ imagecrop ($ img , [ "x " => 0 , "y " => 0 , "width " => new A (), "height " => 0 ] );
6666} catch (\ValueError $ e ) {
6767 echo $ e ->getMessage () . PHP_EOL ;
6868}
6969try {
70- imagecrop ($ img , array ( "x " => 0 , "y " => 0 , "width " => 0 , "height " => new A ()) );
70+ imagecrop ($ img , [ "x " => 0 , "y " => 0 , "width " => 0 , "height " => new A ()] );
7171} catch (\ValueError $ e ) {
7272 echo $ e ->getMessage ();
7373}
0 commit comments