Skip to content

Commit c6bcfc8

Browse files
committed
Apply fixes from StyleCI
1 parent 1e76779 commit c6bcfc8

File tree

20 files changed

+30
-14
lines changed

20 files changed

+30
-14
lines changed

src/Illuminate/Console/View/Components/Component.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Console\QuestionHelper;
77
use ReflectionClass;
88
use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
9+
910
use function Termwind\render;
1011
use function Termwind\renderUsing;
1112

src/Illuminate/Console/View/Components/Task.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
namespace Illuminate\Console\View\Components;
44

55
use Symfony\Component\Console\Output\OutputInterface;
6-
use function Termwind\terminal;
76
use Throwable;
87

8+
use function Termwind\terminal;
9+
910
class Task extends Component
1011
{
1112
/**
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="mx-2 mb-1 mt-<?php echo $marginTop ?>">
22
<span class="px-1 bg-<?php echo $bgColor ?> text-<?php echo $fgColor ?> uppercase"><?php echo $title ?></span>
33
<span class="<?php if ($title) {
4-
echo 'ml-1';
5-
} ?>">
4+
echo 'ml-1';
5+
} ?>">
66
<?php echo htmlspecialchars($content) ?>
77
</span>
88
</div>

src/Illuminate/Database/Eloquent/Casts/ArrayObject.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/**
1010
* @template TKey of array-key
1111
* @template TItem
12+
*
1213
* @extends \ArrayObject<TKey, TItem>
1314
*/
1415
class ArrayObject extends BaseArrayObject implements Arrayable, JsonSerializable

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Process\PhpExecutableFinder;
1111
use Symfony\Component\Process\Process;
12+
1213
use function Termwind\terminal;
1314

1415
#[AsCommand(name: 'serve')]

src/Illuminate/Foundation/Exceptions/Whoops/WhoopsExceptionRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
namespace Illuminate\Foundation\Exceptions\Whoops;
44

55
use Illuminate\Contracts\Foundation\ExceptionRenderer;
6-
use function tap;
76
use Whoops\Run as Whoops;
87

8+
use function tap;
9+
910
class WhoopsExceptionRenderer implements ExceptionRenderer
1011
{
1112
/**

src/Illuminate/Queue/Console/WorkCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Illuminate\Support\Carbon;
1515
use Symfony\Component\Console\Attribute\AsCommand;
1616
use Symfony\Component\Console\Terminal;
17+
1718
use function Termwind\terminal;
1819

1920
#[AsCommand(name: 'queue:work')]

tests/Foundation/FoundationViteTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public function testItCanSpecifyAttributesForPreloadedAssets()
829829
.'<link rel="modulepreload" href="https://example.com/'.$buildDir.'/assets/import.versioned.js" general="attribute" crossorigin data-persistent-across-pages="YES" keep-me empty-string="" zero="0" />'
830830
.'<link rel="stylesheet" href="https://example.com/'.$buildDir.'/assets/app.versioned.css" />'
831831
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/app.versioned.js"></script>',
832-
$result->toHtml());
832+
$result->toHtml());
833833

834834
$this->assertSame([
835835
"https://example.com/$buildDir/assets/app.versioned.css" => [
@@ -1041,7 +1041,7 @@ public function testPreloadAssetsGetAssetNonce()
10411041
.'<link rel="modulepreload" href="https://example.com/'.$buildDir.'/assets/app.versioned.js" nonce="expected-nonce" />'
10421042
.'<link rel="stylesheet" href="https://example.com/'.$buildDir.'/assets/app.versioned.css" nonce="expected-nonce" />'
10431043
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/app.versioned.js" nonce="expected-nonce"></script>',
1044-
$result->toHtml());
1044+
$result->toHtml());
10451045

10461046
$this->assertSame([
10471047
"https://example.com/$buildDir/assets/app.versioned.css" => [
@@ -1088,7 +1088,7 @@ public function testCrossoriginAttributeIsIneritedByPreloadTags()
10881088
.'<link rel="modulepreload" href="https://example.com/'.$buildDir.'/assets/app.versioned.js" crossorigin="script-crossorigin" />'
10891089
.'<link rel="stylesheet" href="https://example.com/'.$buildDir.'/assets/app.versioned.css" crossorigin="style-crossorigin" />'
10901090
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/app.versioned.js" crossorigin="script-crossorigin"></script>',
1091-
$result->toHtml());
1091+
$result->toHtml());
10921092

10931093
$this->assertSame([
10941094
"https://example.com/$buildDir/assets/app.versioned.css" => [
@@ -1127,7 +1127,7 @@ public function testItCanConfigureTheManifestFilename()
11271127
$this->assertSame(
11281128
'<link rel="modulepreload" href="https://example.com/'.$buildDir.'/assets/app-from-custom-manifest.versioned.js" />'
11291129
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/app-from-custom-manifest.versioned.js"></script>',
1130-
$result->toHtml());
1130+
$result->toHtml());
11311131

11321132
unlink(public_path("{$buildDir}/custom-manifest.json"));
11331133
rmdir(public_path($buildDir));
@@ -1166,7 +1166,7 @@ public function testItOnlyOutputsUniquePreloadTags()
11661166
.'<link rel="stylesheet" href="https://example.com/'.$buildDir.'/assets/app-versioned.css" />'
11671167
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/app-versioned.js"></script>'
11681168
.'<script type="module" src="https://example.com/'.$buildDir.'/assets/Welcome-versioned.js"></script>',
1169-
$result->toHtml());
1169+
$result->toHtml());
11701170

11711171
$this->assertSame([
11721172
"https://example.com/$buildDir/assets/app-versioned.css" => [

tests/Support/SupportStrTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ public function testStrExcerpt()
172172
$this->assertSame('...abc...', Str::excerpt('z abc d', 'b', ['radius' => 1]));
173173
$this->assertSame('[...]is a beautiful morn[...]', Str::excerpt('This is a beautiful morning', 'beautiful', ['omission' => '[...]', 'radius' => 5]));
174174
$this->assertSame(
175-
'This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome tempera[...]',
176-
Str::excerpt('This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome temperatures. So what are you gonna do about it?', 'very',
177-
['omission' => '[...]'],
178-
));
175+
'This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome tempera[...]',
176+
Str::excerpt('This is the ultimate supercalifragilisticexpialidoceous very looooooooooooooooooong looooooooooooong beautiful morning with amazing sunshine and awesome temperatures. So what are you gonna do about it?', 'very',
177+
['omission' => '[...]'],
178+
));
179179

180180
$this->assertSame('...y...', Str::excerpt('taylor', 'y', ['radius' => 0]));
181181
$this->assertSame('...ayl...', Str::excerpt('taylor', 'Y', ['radius' => 1]));

tests/Testing/TestResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ public function testAssertLocation()
19501950
app()->instance('url', $url = new UrlGenerator(new RouteCollection, new Request));
19511951

19521952
$response = TestResponse::fromBaseResponse(
1953-
(new RedirectResponse($url->to('https://foo.com')))
1953+
new RedirectResponse($url->to('https://foo.com'))
19541954
);
19551955

19561956
$response->assertLocation('https://foo.com');

0 commit comments

Comments
 (0)