Skip to content

Commit

Permalink
Update coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Sep 20, 2023
1 parent 8792955 commit 138a8ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'array_syntax' => ['syntax' => 'short'],
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => true,
'blank_lines_before_namespace' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => [
Expand All @@ -22,19 +23,13 @@
'if', 'foreach', 'return', 'switch', 'try', 'while',
],
],
'braces' => [
'allow_single_line_closure' => false,
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => ['space' => 'single'],
'class_attributes_separation' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'fully_qualified_strict_types' => true,
'function_typehint_space' => true,
'increment_style' => ['style' => 'pre'],
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
Expand Down Expand Up @@ -111,11 +106,11 @@
'semicolon_after_instruction' => true,
'short_scalar_cast' => true,
'simplified_null_return' => true,
'single_blank_line_before_namespace' => true,
'single_quote' => true,
'single_line_comment_style' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'type_declaration_spaces' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Strategies/Mean.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function fitted() : bool
* Fit the guessing strategy to a set of values.
*
* @internal
* @param list<int|float> $values
* @param list<int|float> $values
* @throws \Rubix\ML\Exceptions\InvalidArgumentException
*/
public function fit(array $values) : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Tokenizers/WhitespaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public function tokenize(string $text, array $expected) : void
$this->assertEquals($expected, $tokens);
}

/**
* @return \Generator<mixed[]>
*/
/**
* @return \Generator<mixed[]>
*/
public function tokenizeProvider() : Generator
{
/**
Expand Down

0 comments on commit 138a8ed

Please sign in to comment.