Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Added a new MockeryTestCase class | removed mockery trait | updated p… (
Browse files Browse the repository at this point in the history
#11)

* Added a new MockeryTestCase class | removed mockery trait | updated phpunit to v6.0 | updatedt middleware interfaces to v0.4

* cs fixes
  • Loading branch information
prisis authored Feb 20, 2017
1 parent 503b06b commit 4ed46f6
Show file tree
Hide file tree
Showing 24 changed files with 438 additions and 402 deletions.
1 change: 0 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
use Narrowspark\CS\Config\Config;
use Symfony\CS\Fixer;

$config = new Config();
$config->getFinder()
Expand Down
84 changes: 34 additions & 50 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,44 @@
preset: psr2
preset: recommended

risky: false
risky: true

linting: true

finder:
exclude:
- vendor
- build

enabled:
- align_equals
- combine_consecutive_unsets
- concat_with_spaces
- function_typehint_space
- newline_after_open_tag
- declare_strict_types
- dir_constant
- ereg_to_preg
- mb_str_functions
- modernize_types_casting
- no_blank_lines_after_return
- no_blank_lines_before_namespace
- ordered_use
- phpdoc_order
- short_array_syntax
- alias_functions
- array_element_no_space_before_comma
- array_element_white_space_after_comma
- double_arrow_multiline_whitespaces
- duplicate_semicolon
- empty_return
- extra_empty_lines
- include
- list_commas
- method_separation
- multiline_array_trailing_comma
- namespace_no_leading_whitespace
- new_with_braces
- no_blank_lines_after_class_opening
- no_empty_lines_after_phpdocs
- object_operator
- operators_spaces
- phpdoc_align
- phpdoc_indent
- phpdoc_inline_tag
- phpdoc_no_access
- phpdoc_no_empty_return
- phpdoc_no_package
- phpdoc_scalar
- phpdoc_separation
- phpdoc_to_comment
- phpdoc_trim
- phpdoc_types
- phpdoc_type_to_var
- phpdoc_var_without_name
- remove_leading_slash_use
- return
- short_bool_cast
- single_array_no_trailing_comma
- single_quote
- spaces_after_semicolon
- spaces_before_semicolon
- spaces_cast
- standardize_not_equal
- ternary_spaces
- trim_array_spaces
- unneeded_control_parentheses
- whitespacy_lines
- no_empty_comment
- no_useless_else
- ordered_class_elements
- php_unit_construct
- php_unit_dedicate_assert
- phpdoc_add_missing_param_annotation
- pow_to_exponentiation
- protected_to_private
- random_api_migration
- return_type_declaration
- not_operator_with_successor_space

disabled:
- blank_line_after_opening_tag
- unalign_equals
- self_accessor
- concat_without_spaces
- single_blank_line_before_namespace
- simplified_null_return

finder:
exclude:
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ cache:
- $HOME/.php-cs-fixer

before_install:
- composer self-update
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction

install:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"php" : "^7.0",
"container-interop/container-interop" : "^1.1",
"psr/http-message" : "^1.0",
"http-interop/http-middleware" : "^0.3"
"http-interop/http-middleware" : "^0.4"
},
"require-dev": {
"guzzlehttp/psr7" : "^1.3",
"fzaninotto/faker" : "^1.6",
"phpunit/phpunit" : "^5.1",
"mockery/mockery" : "^0.9",
"narrowspark/php-cs-fixer-config" : "^2.0",
"phpunit/phpunit" : "^6.0",
"mockery/mockery" : "^1.0.0-alpha1",
"narrowspark/php-cs-fixer-config" : "^2.2",
"roave/security-advisories" : "dev-master"
},
"autoload": {
Expand Down
Loading

0 comments on commit 4ed46f6

Please sign in to comment.