Skip to content

Commit 354c0f9

Browse files
committed
Added asset-packagist.org repository to composer.json
1 parent 1dc2858 commit 354c0f9

File tree

2 files changed

+32
-26
lines changed

2 files changed

+32
-26
lines changed

.php_cs

+26-26
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,33 @@ return Symfony\CS\Config\Config::create()
1515
->setUsingCache(true)
1616
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
1717
->fixers([
18-
'-long_array_syntax', /// Arrays should use the long syntax.
19-
'-php4_constructor', /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior.
20-
'-phpdoc_var_to_type', /// @var should always be written as @type.
21-
'-align_double_arrow', /// Align double arrow symbols in consecutive lines.
22-
'-unalign_double_arrow', /// Unalign double arrow symbols in consecutive lines.
23-
'-align_equals', /// Align equals symbols in consecutive lines.
24-
'-unalign_equals', /// Unalign equals symbols in consecutive lines.
25-
'-blankline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline.
26-
'-phpdoc_no_empty_return', /// @return void and @return null annotations should be omitted from phpdocs.
27-
'-empty_return', /// A return statement wishing to return nothing should be simply "return".
28-
'-return', /// An empty line feed should precede a return statement.
29-
'-phpdoc_params', /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically.
30-
'-phpdoc_scalar', /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean".
31-
'-phpdoc_separation', /// Annotations of a different type are separated by a single blank line.
18+
'-long_array_syntax', /// Arrays should use the long syntax
19+
'-php4_constructor', /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior
20+
'-phpdoc_var_to_type', /// @var should always be written as @type
21+
'-align_double_arrow', /// Align double arrow symbols in consecutive lines
22+
'-unalign_double_arrow', /// Unalign double arrow symbols in consecutive lines
23+
'-align_equals', /// Align equals symbols in consecutive lines
24+
'-unalign_equals', /// Unalign equals symbols in consecutive lines
25+
'-blankline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline
26+
'-phpdoc_no_empty_return', /// @return void and @return null annotations should be omitted from phpdocs
27+
'-empty_return', /// A return statement wishing to return nothing should be simply "return"
28+
'-return', /// An empty line feed should precede a return statement
29+
'-phpdoc_params', /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically
30+
'-phpdoc_scalar', /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean"
31+
'-phpdoc_separation', /// Annotations of a different type are separated by a single blank line
3232
'-phpdoc_to_comment', /// Docblocks should only be used on structural elements
33-
'header_comment', /// Add, replace or remove header comment.
34-
'concat_with_spaces', /// Concatenation should be used with at least one whitespace around.
35-
'ereg_to_preg', /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior.
36-
'multiline_spaces_before_semicolon', /// Multi-line whitespace before closing semicolon are prohibited.
37-
'newline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag.
38-
'single_blank_line_before_namespace', /// There should be no blank lines before a namespace declaration.
39-
'ordered_use', /// Ordering use statements.
40-
'phpdoc_order', /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return.
41-
'pre_increment', /// Pre incrementation/decrementation should be used if possible.
42-
'short_array_syntax', /// PHP arrays should use the PHP 5.4 short-syntax.
43-
'strict', /// Comparison should be strict. Warning! This could change code behavior.
44-
'strict_param', /// Functions should be used with $strict param. Warning! This could change code behavior.
33+
'header_comment', /// Add, replace or remove header comment
34+
'concat_with_spaces', /// Concatenation should be used with at least one whitespace around
35+
'ereg_to_preg', /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior
36+
'multiline_spaces_before_semicolon', /// Multi-line whitespace before closing semicolon are prohibited
37+
'newline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag
38+
'single_blank_line_before_namespace', /// There should be no blank lines before a namespace declaration
39+
'ordered_use', /// Ordering use statements
40+
'phpdoc_order', /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return
41+
'pre_increment', /// Pre incrementation/decrementation should be used if possible
42+
'short_array_syntax', /// PHP arrays should use the PHP 5.4 short-syntax
43+
'strict', /// Comparison should be strict. Warning! This could change code behavior
44+
'strict_param', /// Functions should be used with $strict param. Warning! This could change code behavior
4545
])
4646
->finder(
4747
Symfony\CS\Finder\DefaultFinder::create()

composer.json

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
"hiqdev\\hiart\\": "src"
5757
}
5858
},
59+
"repositories": [
60+
{
61+
"type": "composer",
62+
"url": "https://asset-packagist.org"
63+
}
64+
],
5965
"autoload-dev": {
6066
"psr-4": {
6167
"hiqdev\\hiart\\tests\\": "tests"

0 commit comments

Comments
 (0)