Skip to content

Commit 138a8ed

Browse files
committed
Update coding style
1 parent 8792955 commit 138a8ed

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
'array_syntax' => ['syntax' => 'short'],
1515
'backtick_to_shell_exec' => true,
1616
'binary_operator_spaces' => true,
17+
'blank_lines_before_namespace' => true,
1718
'blank_line_after_namespace' => true,
1819
'blank_line_after_opening_tag' => true,
1920
'blank_line_before_statement' => [
@@ -22,19 +23,13 @@
2223
'if', 'foreach', 'return', 'switch', 'try', 'while',
2324
],
2425
],
25-
'braces' => [
26-
'allow_single_line_closure' => false,
27-
'position_after_control_structures' => 'same',
28-
'position_after_functions_and_oop_constructs' => 'next',
29-
],
3026
'cast_spaces' => ['space' => 'single'],
3127
'class_attributes_separation' => true,
3228
'combine_consecutive_issets' => true,
3329
'combine_consecutive_unsets' => true,
3430
'compact_nullable_typehint' => true,
3531
'concat_space' => ['spacing' => 'one'],
3632
'fully_qualified_strict_types' => true,
37-
'function_typehint_space' => true,
3833
'increment_style' => ['style' => 'pre'],
3934
'linebreak_after_opening_tag' => true,
4035
'list_syntax' => ['syntax' => 'short'],
@@ -111,11 +106,11 @@
111106
'semicolon_after_instruction' => true,
112107
'short_scalar_cast' => true,
113108
'simplified_null_return' => true,
114-
'single_blank_line_before_namespace' => true,
115109
'single_quote' => true,
116110
'single_line_comment_style' => true,
117111
'ternary_operator_spaces' => true,
118112
'ternary_to_null_coalescing' => true,
113+
'type_declaration_spaces' => true,
119114
'trim_array_spaces' => true,
120115
'unary_operator_spaces' => true,
121116
'whitespace_after_comma_in_array' => true,

src/Strategies/Mean.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function fitted() : bool
5151
* Fit the guessing strategy to a set of values.
5252
*
5353
* @internal
54-
* @param list<int|float> $values
54+
* @param list<int|float> $values
5555
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
5656
*/
5757
public function fit(array $values) : void

tests/Tokenizers/WhitespaceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function tokenize(string $text, array $expected) : void
4646
$this->assertEquals($expected, $tokens);
4747
}
4848

49-
/**
50-
* @return \Generator<mixed[]>
51-
*/
49+
/**
50+
* @return \Generator<mixed[]>
51+
*/
5252
public function tokenizeProvider() : Generator
5353
{
5454
/**

0 commit comments

Comments
 (0)