Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antriver committed May 29, 2020
1 parent 4180d29 commit 4411fd2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Coders/Console/Model/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@ public function dataForTestPhpTypeHint()
'Non-nullable int' => [
'castType' => 'int',
'nullable' => false,
'expect' => 'int'
'expect' => 'int',
],
'Nullable int' => [
'castType' => 'int',
'nullable' => true,
'expect' => 'int|null'
'expect' => 'int|null',
],
'Non-nullable json' => [
'castType' => 'json',
'nullable' => false,
'expect' => 'array'
'expect' => 'array',
],
'Nullable json' => [
'castType' => 'json',
'nullable' => true,
'expect' => 'array|null'
'expect' => 'array|null',
],
'Non-nullable date' => [
'castType' => 'date',
'nullable' => false,
'expect' => '\Carbon\Carbon'
'expect' => '\Carbon\Carbon',
],
'Nullable date' => [
'castType' => 'date',
'nullable' => true,
'expect' => '\Carbon\Carbon|null'
]
'expect' => '\Carbon\Carbon|null',
],
];
}

/**
* @dataProvider dataForTestPhpTypeHint
*
* @param string$castType
* @param string $castType
* @param bool $nullable
* @param string $expect
*/
Expand Down

0 comments on commit 4411fd2

Please sign in to comment.