Browse Source

Flatten source structure a bit

Timothy J. Warren 9 months ago
parent
commit
369ca6eb04

+ 20
- 0
.editorconfig View File

@@ -0,0 +1,20 @@
1
+# EditorConfig is awesome: http://EditorConfig.org
2
+
3
+# top-most EditorConfig file
4
+root = true
5
+
6
+# Unix-style newlines with a newline ending every file
7
+[*]
8
+end_of_line = lf
9
+insert_final_newline = false
10
+charset = utf-8
11
+indent_style = tab
12
+trim_trailing_whitespace = true
13
+
14
+[*.{cpp,c,h,hpp,cxx}]
15
+insert_final_newline = true
16
+
17
+# Yaml files
18
+[*.{yml,yaml}]
19
+indent_style = space
20
+indent_size = 4

+ 8
- 3
composer.json View File

@@ -30,7 +30,7 @@
30 30
 		"pdepend/pdepend": "^2.5",
31 31
 		"phploc/phploc": "^4.0",
32 32
 		"phpmd/phpmd": "^2.4",
33
-		"phpstan/phpstan": "*",
33
+		"phpstan/phpstan": "^0.9.1",
34 34
 		"phpunit/phpunit": "^5.5",
35 35
 		"sebastian/phpcpd": "^2.0",
36 36
 		"simpletest/simpletest": "^1.1",
@@ -38,14 +38,19 @@
38 38
 	},
39 39
 	"autoload": {
40 40
 		"psr-4": {
41
-			"Query\\": "src/Query"
41
+			"Query\\": "src"
42 42
 		},
43 43
 		"files": ["src/common.php"]
44 44
 	},
45
+  	"autoload-dev": {
46
+		"psr-4": {
47
+			"Query\\Tests\\": "tests"
48
+		}
49
+	},
45 50
 	"scripts": {
46 51
 		"coverage": "phpdbg -qrr -- vendor/bin/phpunit -c build",
47 52
 		"phpstan": "phpstan analyse -l 3 -c phpstan.neon src tests",
48
-		"test": "vendor/bin/phpunit"
53
+		"test": "phpunit -c build"
49 54
 	},
50 55
 	"scripts-descriptions": {
51 56
 		"coverage": "Generate test coverage report",

src/Query/AbstractQueryBuilder.php → src/AbstractQueryBuilder.php View File


src/Query/BadDBDriverException.php → src/BadDBDriverException.php View File


src/Query/ConnectionManager.php → src/ConnectionManager.php View File


src/Query/Drivers/AbstractDriver.php → src/Drivers/AbstractDriver.php View File


src/Query/Drivers/AbstractSQL.php → src/Drivers/AbstractSQL.php View File


src/Query/Drivers/AbstractUtil.php → src/Drivers/AbstractUtil.php View File


src/Query/Drivers/DriverInterface.php → src/Drivers/DriverInterface.php View File


src/Query/Drivers/Firebird/Driver.php → src/Drivers/Firebird/Driver.php View File


src/Query/Drivers/Firebird/Result.php → src/Drivers/Firebird/Result.php View File


src/Query/Drivers/Firebird/SQL.php → src/Drivers/Firebird/SQL.php View File


src/Query/Drivers/Firebird/Util.php → src/Drivers/Firebird/Util.php View File


src/Query/Drivers/Mysql/Driver.php → src/Drivers/Mysql/Driver.php View File


src/Query/Drivers/Mysql/SQL.php → src/Drivers/Mysql/SQL.php View File


src/Query/Drivers/Mysql/Util.php → src/Drivers/Mysql/Util.php View File


src/Query/Drivers/PDOInterface.php → src/Drivers/PDOInterface.php View File


src/Query/Drivers/PDOStatementInterface.php → src/Drivers/PDOStatementInterface.php View File


src/Query/Drivers/Pgsql/Driver.php → src/Drivers/Pgsql/Driver.php View File


src/Query/Drivers/Pgsql/SQL.php → src/Drivers/Pgsql/SQL.php View File


src/Query/Drivers/Pgsql/Util.php → src/Drivers/Pgsql/Util.php View File


src/Query/Drivers/SQLInterface.php → src/Drivers/SQLInterface.php View File


src/Query/Drivers/Sqlite/Driver.php → src/Drivers/Sqlite/Driver.php View File


src/Query/Drivers/Sqlite/SQL.php → src/Drivers/Sqlite/SQL.php View File


src/Query/Drivers/Sqlite/Util.php → src/Drivers/Sqlite/Util.php View File


src/Query/QueryBuilder.php → src/QueryBuilder.php View File


src/Query/QueryBuilderInterface.php → src/QueryBuilderInterface.php View File


src/Query/QueryParser.php → src/QueryParser.php View File