Skip to content

Commit 7a6609d

Browse files
authored
Fix more typos (#625)
* Fix more typos * Fix StrTest * fix the fix
1 parent c216e9f commit 7a6609d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bin/docblock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function resolveDocParamType( $method, $parameter ) {
192192
$paramTypeNode = collect( parseDocblock( $method->getDocComment() )->getParamTagValues() )
193193
->firstWhere( 'parameterName', '$' . $parameter->getName() );
194194

195-
// As we didn't find a param type, we will now recursivly check if the prototype has a value specified...
195+
// As we didn't find a param type, we will now recursively check if the prototype has a value specified...
196196

197197
if ( $paramTypeNode === null ) {
198198
try {
@@ -523,7 +523,7 @@ function resolveDocTags( $docblock, $tag ) {
523523
}
524524

525525
/**
526-
* Recursivly resolve docblock mixins.
526+
* Recursively resolve docblock mixins.
527527
*
528528
* @param \ReflectionClass $class
529529
* @return \Illuminate\Support\Collection<\ReflectionClass>

tests/Support/StrTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ public function testStrExcerpt() {
149149
$this->assertSame( 'This is a...', Str::excerpt( 'This is a beautiful morning', 'this', [ 'radius' => 5 ] ) );
150150
$this->assertSame( '...iful morning', Str::excerpt( 'This is a beautiful morning', 'morning', [ 'radius' => 5 ] ) );
151151
$this->assertNull( Str::excerpt( 'This is a beautiful morning', 'day' ) );
152-
$this->assertSame( '...is a beautiful! mor...', Str::excerpt( 'This is a beautiful! morning', 'Beautiful', [ 'radius' => 5 ] ) );
153-
$this->assertSame( '...is a beautiful? mor...', Str::excerpt( 'This is a beautiful? morning', 'beautiful', [ 'radius' => 5 ] ) );
152+
$this->assertSame( '...is a beautiful! morn...', Str::excerpt( 'This is a beautiful! morning', 'Beautiful', [ 'radius' => 6 ] ) );
153+
$this->assertSame( '...is a beautiful? morn...', Str::excerpt( 'This is a beautiful? morning', 'beautiful', [ 'radius' => 6 ] ) );
154154
$this->assertSame( '', Str::excerpt( '', '', [ 'radius' => 0 ] ) );
155155
$this->assertSame( 'a', Str::excerpt( 'a', 'a', [ 'radius' => 0 ] ) );
156156
$this->assertSame( '...b...', Str::excerpt( 'abc', 'B', [ 'radius' => 0 ] ) );
@@ -173,9 +173,9 @@ public function testStrExcerpt() {
173173
)
174174
);
175175
$this->assertSame(
176-
'This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome tempera[...]',
176+
'This is the ultimate supercalifragilisticexpialidocious very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome tempera[...]',
177177
Str::excerpt(
178-
'This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome temperatures. So what are you gonna do about it?',
178+
'This is the ultimate supercalifragilisticexpialidocious very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome temperatures. So what are you gonna do about it?',
179179
'very',
180180
[ 'omission' => '[...]' ],
181181
)

0 commit comments

Comments
 (0)