Skip to content

Commit 0863484

Browse files
committed
Added phpstan, code sniffer, updated to datagrid v6
1 parent 0a6a935 commit 0863484

File tree

9 files changed

+261
-277
lines changed

9 files changed

+261
-277
lines changed

composer.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,24 @@
2525
}
2626
},
2727
"require": {
28-
"nette/application" : "^2.3|^2.4",
29-
"ublaboo/datagrid" : "~2.3|~3.0|~4.0|~5.0",
30-
"nette/database" : "^2.3|^2.4",
31-
"nette/caching" : "^2.3|^2.4",
32-
"greenlion/php-sql-parser" : "~4.0"
28+
"php": "^7.2",
29+
"nette/database" : "^3.0",
30+
"ublaboo/datagrid" : "^6.0",
31+
"greenlion/php-sql-parser" : "^4.2"
3332
},
3433
"require-dev": {
35-
"nette/tester" : "~1.6.1",
36-
"tracy/tracy" : "^2.3|^2.4",
37-
"mockery/mockery" : "~0.9"
34+
"nette/tester": "^2.2",
35+
"tracy/tracy": "^2.6",
36+
"mockery/mockery" : "^1.2",
37+
"phpstan/phpstan": "^0.11",
38+
"phpstan/phpstan-strict-rules": "^0.11",
39+
"ninjify/coding-standard": "^0.9"
40+
},
41+
"prefer-stable": true,
42+
"minimum-stability": "dev",
43+
"scripts": {
44+
"phpstan": "vendor/phpstan/phpstan/bin/phpstan analyse -c vendor/phpstan/phpstan-strict-rules/rules.neon src --level 7",
45+
"phpcs": "vendor/bin/phpcs --standard=vendor/ninjify/coding-standard/ruleset-gamee.xml --extensions=php,phpt --tab-width=4 --ignore=temp -sp src tests",
46+
"phpcsfix": "vendor/bin/phpcbf --standard=vendor/ninjify/coding-standard/ruleset-gamee.xml --extensions=php,phpt --tab-width=4 --ignore=temp -sp src tests"
3847
}
3948
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Ublaboo\NetteDatabaseDataSource\Exception;
46

57
class NetteDatabaseDataSourceException extends \Exception
68
{
9+
710
}

0 commit comments

Comments
 (0)