Skip to content

Commit

Permalink
Inital commitgit add build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ircmaxell committed Jul 28, 2015
0 parents commit 5982fbc
Show file tree
Hide file tree
Showing 17 changed files with 11,839 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
vendor
51 changes: 51 additions & 0 deletions .php_cs
@@ -0,0 +1,51 @@
<?php

$header = <<<'EOF'
This file is part of Tuli, a static analyzer for PHP
@copyright 2015 Anthony Ferrara. All rights reserved
@license MIT See LICENSE at the root of the project for more info
EOF;

Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers([
'header_comment',
'linefeed',
'indentation',
'elseif',
'line_after_namespace',
'lowercase_constants',
'lowercase_keywords',
'method_argument_space',
'single_blank_line_before_namespace',
'ordered_use',
'short_array_syntax',
'single_line_after_imports',
'visibility',
'trailing_spaces',
'concat_with_spaces',
'align_double_arrow',
'unused_use',
'ternary_spaces',
'remove_leading_slash_use',
'remove_lines_between_uses',
'phpdoc_indent',
'phpdoc_no_access',
'phpdoc_params',
'phpdoc_scalar',
'phpdoc_separation',
'phpdoc_trim',
'phpdoc_var_without_name',
'phpdoc_order',
'no_empty_lines_after_phpdocs',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__ . "/lib")
->in(__DIR__ . "/bin")
->in(__DIR__ . "/test")
)
;
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Anthony Ferrara <ircmaxell@php.net>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4 changes: 4 additions & 0 deletions build.sh
@@ -0,0 +1,4 @@
#!/bin/bash

vendor/bin/php-cs-fixer fix
vendor/bin/phpunit
25 changes: 25 additions & 0 deletions composer.json
@@ -0,0 +1,25 @@
{
"name": "ircmaxell/php-types",
"description": "A PHP CFG Type Inference / Reconstruction Engine",
"license": "MIT",
"authors": [
{
"name": "Anthony Ferrara",
"email": "ircmaxell@gmail.com"
}
],
"require": {
"php": ">=5.5",
"ircmaxell/php-cfg": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "^4.7",
"fabpot/php-cs-fixer": "1.*"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"PHPTypes\\": "lib/PHPTypes/"
}
}
}

0 comments on commit 5982fbc

Please sign in to comment.