-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-syntax.php
More file actions
executable file
·28 lines (22 loc) · 824 Bytes
/
test-syntax.php
File metadata and controls
executable file
·28 lines (22 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// Basic syntax check for the ModelSchemaCheckCommand
require_once __DIR__ . '/src/Commands/ModelSchemaCheckCommand.php';
echo "Syntax check passed - ModelSchemaCheckCommand loaded successfully\n";
// Check if the new security methods exist
$reflection = new ReflectionClass('NDEstates\LaravelModelSchemaChecker\Commands\ModelSchemaCheckCommand');
$methods = [
'checkRawDatabaseQueries',
'checkEloquentUsage',
'checkFileOperations',
'checkFileUploads',
'checkSQLInjectionVulnerabilities',
'checkPathTraversalVulnerabilities'
];
foreach ($methods as $method) {
if ($reflection->hasMethod($method)) {
echo "✓ Method {$method} exists\n";
} else {
echo "✗ Method {$method} missing\n";
}
}
echo "\nSecurity enhancement implementation completed successfully!\n";