@@ -21,12 +21,12 @@ try {
21
21
echo $ e ->getMessage () . PHP_EOL ;
22
22
}
23
23
try {
24
- imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , array ( new A ()) );
24
+ imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , [ new A ()] );
25
25
} catch (\ValueError $ e ) {
26
26
echo $ e ->getMessage () . PHP_EOL ;
27
27
}
28
28
try {
29
- imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , array (- 1 ) );
29
+ imagefilter ($ img , IMG_FILTER_SCATTER , 0 , 0 , [- 1 ] );
30
30
} catch (\ValueError $ e ) {
31
31
echo $ e ->getMessage () . PHP_EOL ;
32
32
}
@@ -36,38 +36,38 @@ try {
36
36
echo $ e ->getMessage () . PHP_EOL ;
37
37
}
38
38
try {
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 ] );
40
40
} catch (\ValueError $ e ) {
41
41
echo $ e ->getMessage () . PHP_EOL ;
42
42
}
43
43
try {
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 ] );
45
45
} catch (\ValueError $ e ) {
46
46
echo $ e ->getMessage () . PHP_EOL ;
47
47
}
48
48
try {
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 ] );
50
50
} catch (\ValueError $ e ) {
51
51
echo $ e ->getMessage () . PHP_EOL ;
52
52
}
53
53
54
54
try {
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 ] );
56
56
} catch (\ValueError $ e ) {
57
57
echo $ e ->getMessage () . PHP_EOL ;
58
58
}
59
59
try {
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 ] );
61
61
} catch (\ValueError $ e ) {
62
62
echo $ e ->getMessage () . PHP_EOL ;
63
63
}
64
64
try {
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 ] );
66
66
} catch (\ValueError $ e ) {
67
67
echo $ e ->getMessage () . PHP_EOL ;
68
68
}
69
69
try {
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 ()] );
71
71
} catch (\ValueError $ e ) {
72
72
echo $ e ->getMessage ();
73
73
}
0 commit comments