Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fieg committed Jun 2, 2014
0 parents commit 46347da
Show file tree
Hide file tree
Showing 21 changed files with 1,630 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
57 changes: 57 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# inherit the next configuration down the chain
inherit: true

filter:
paths:
- 'src/*'

before_commands:
- 'composer install --no-interaction --no-scripts'

tools:
php_mess_detector:
config:
code_size_rules:
cyclomatic_complexity: true
npath_complexity: true
excessive_method_length: true
excessive_class_length: true
excessive_parameter_list: true
excessive_public_count: true
too_many_fields: true
too_many_methods: true
excessive_class_complexity: true
design_rules:
number_of_class_children: true
depth_of_inheritance: true
coupling_between_objects: true
unused_code_rules:
unused_local_variable: true
unused_private_method: true
unused_formal_parameter: true
naming_rules:
short_variable: false
long_variable: true
short_method: true
boolean_method_name: true
controversial_rules: ~
php_cs_fixer:
config:
level: all
php_analyzer:
config:
suspicious_code: { enabled: true, overriding_parameter: true }
verify_php_doc_comments: { enabled: true }
loops_must_use_braces: { enabled: true }
simplify_boolean_return: { enabled: true }
phpunit_checks: { enabled: true }
reflection_fixes: { enabled: true }
use_statement_fixes: { enabled: true, order_alphabetically: true }
php_code_sniffer:
config:
standard: PSR2
sensiolabs_security_checker: true
php_loc: true
php_pdepend: true
php_sim: true
php_changetracking: true
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

php:
- 5.6
- 5.5
- hhvm

env:
global:
- SYMFONY_ENV=test

cache:
directories:
- $HOME/.composer

matrix:
fast_finish: true
allow_failures:
- php: 5.6
- php: hhvm

before_script:
- composer selfupdate
- composer install --no-interaction --no-scripts

script:
- ./vendor/bin/phpunit
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Propositional Calculus
======================

Implementation of a Propositional Calculus in PHP.

Based on the book [Artificial Intelligence - foundations of computational agents](http://artint.info) chapter [5 Propositions and Inference](http://artint.info/html/ArtInt_100.html).
25 changes: 25 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "fieg/propositional-calculus",
"license": "MIT",
"description": "Implementation of a Propositional Calculus in PHP",
"type": "library",
"keywords": ["artificial", "intelligence", "propositional", "calculus"],
"homepage": "https://github.com/fieg/csp",
"authors": [
{
"name": "fieg",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"require": {
},
"require-dev": {
"phpunit/phpunit": "~4.1"
},
"autoload": {
"psr-4": {
"Fieg\\PC\\": "src/Fieg/PC/"
}
}
}
Loading

0 comments on commit 46347da

Please sign in to comment.