Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp #226

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.idea/
config/config.php
reports/
!src/Reports/
dashboards/
cache/
classes/local/*.php
templates/local
Expand Down
77 changes: 77 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

use Symfony\CS\Config\Config;
use Symfony\CS\FixerInterface;
use Symfony\CS\Finder\DefaultFinder;

$fixers = [
'blankline_after_open_tag',
'braces',
'concat_without_spaces',
'double_arrow_multiline_whitespaces',
'duplicate_semicolon',
'elseif',
'empty_return',
'encoding',
'eof_ending',
'extra_empty_lines',
'function_call_space',
'function_declaration',
'include',
'indentation',
'join_function',
'line_after_namespace',
'linefeed',
'list_commas',
'logical_not_operators_with_successor_space',
'lowercase_constants',
'lowercase_keywords',
'method_argument_space',
'multiline_array_trailing_comma',
'multiline_spaces_before_semicolon',
'multiple_use',
'namespace_no_leading_whitespace',
'no_blank_lines_after_class_opening',
'no_empty_lines_after_phpdocs',
'object_operator',
'operators_spaces',
'parenthesis',
'phpdoc_indent',
'phpdoc_inline_tag',
'phpdoc_no_access',
'phpdoc_no_package',
'phpdoc_scalar',
'phpdoc_short_description',
'phpdoc_to_comment',
'phpdoc_trim',
'phpdoc_type_to_var',
'phpdoc_var_without_name',
'remove_leading_slash_use',
'remove_lines_between_uses',
'return',
'self_accessor',
'short_array_syntax',
'short_echo_tag',
'short_tag',
'single_array_no_trailing_comma',
'single_blank_line_before_namespace',
'single_line_after_imports',
'single_quote',
'spaces_before_semicolon',
'spaces_cast',
'standardize_not_equal',
'ternary_spaces',
'trailing_spaces',
'trim_array_spaces',
'unalign_equals',
'unary_operators_spaces',
'unused_use',
'visibility',
'whitespacy_lines',
];

return Config::create()
->finder(DefaultFinder::create()->in(__DIR__))
->fixers($fixers)
->level(FixerInterface::NONE_LEVEL)
->setUsingCache(true);
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: php

php:
- 5.5.9
- 5.5
- 5.6
- 7.0
- hhvm

env:
global:
- setup=basic

matrix:
include:
- php: 5.5.9
env: setup=lowest
- php: 5.5.9
env: setup=stable

sudo: false

before_install:
- travis_retry composer self-update

install:
- composer install --no-interaction --prefer-dist

script: vendor/bin/phpunit
13 changes: 0 additions & 13 deletions classes/filters/barFilter.php

This file was deleted.

8 changes: 0 additions & 8 deletions classes/filters/classFilter.php

This file was deleted.

26 changes: 0 additions & 26 deletions classes/filters/dateFilter.php

This file was deleted.

89 changes: 0 additions & 89 deletions classes/filters/drilldownFilter.php

This file was deleted.

27 changes: 0 additions & 27 deletions classes/filters/geoipFilter.php

This file was deleted.

6 changes: 0 additions & 6 deletions classes/filters/hideFilter.php

This file was deleted.

7 changes: 0 additions & 7 deletions classes/filters/htmlFilter.php

This file was deleted.

17 changes: 0 additions & 17 deletions classes/filters/imgsizeFilter.php

This file was deleted.

16 changes: 0 additions & 16 deletions classes/filters/linkFilter.php

This file was deleted.

14 changes: 0 additions & 14 deletions classes/filters/paddingFilter.php

This file was deleted.

8 changes: 0 additions & 8 deletions classes/filters/preFilter.php

This file was deleted.

18 changes: 0 additions & 18 deletions classes/filters/twigFilter.php

This file was deleted.

Loading