File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
/**
10
10
* If this file remains intact after deploying the package to production,
11
11
* preventing it from running outside of Composer may be useful as a means of
12
- * prevent potential attackers from hammering the file and needlessly wasting
12
+ * preventing potential attackers from hammering it and needlessly wasting
13
13
* cycles at the server.
14
14
*/
15
15
if (!isset ($ _SERVER ['COMPOSER_BINARY ' ])) {
49
49
// Fetch the signatures needed for testing the scanner.
50
50
$ ZipObj = new \ZipArchive ();
51
51
if ($ ZipObj ->open ($ TestsPath . 'signatures.zip ' ) === true ) {
52
- $ ZipObj ->extractTo ($ TestsPath . 'signatures ' . DIRECTORY_SEPARATOR );
52
+ $ SigPath = $ TestsPath . 'signatures ' ;
53
+ $ ZipObj ->extractTo ($ SigPath . DIRECTORY_SEPARATOR );
53
54
$ ZipObj ->close ();
54
55
unset($ ZipObj );
55
- $ SigPath = $ TestsPath . 'signatures ' ;
56
56
} else {
57
57
echo 'Problem encountered trying to open signatures.zip. ' . PHP_EOL ;
58
58
exit (3 );
92
92
$ Actual = $ Scanner ->scan ($ Samples , 3 );
93
93
ksort ($ Actual );
94
94
if (serialize ($ Actual ) !== serialize ($ Expected )) {
95
- echo 'Actual scan results does not match expected scan results. ' . PHP_EOL ;
95
+ echo 'Actual scan results don \' t match the expected scan results. ' . PHP_EOL ;
96
96
exit (5 );
97
97
}
98
98
You can’t perform that action at this time.
0 commit comments