Skip to content

Commit

Permalink
Merge pull request #14790 from jackwh/patch-1
Browse files Browse the repository at this point in the history
Fix typo in 02-stats-overview.md
  • Loading branch information
zepfietje authored Nov 14, 2024
2 parents f930a75 + 61981b1 commit 0dac280
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/actions/resources/lang/ca/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'placeholder' => 'Carregar un arxiu CSV',
'rules' => [
'duplicate_columns' => '{0} El fitxer no ha de contenir més d\'un encapçalament de columna buit.|{1,*} El fitxer no ha de contenir encapçalaments de columna duplicats: :columns.',
],
],
],

'columns' => [
Expand Down
1 change: 0 additions & 1 deletion packages/actions/src/Concerns/CanImportRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ public function getUploadedFileStream(TemporaryUploadedFile $file)
$s3Adapter = Storage::disk($fileDisk)->getAdapter();

invade($s3Adapter)->client->registerStreamWrapper(); /** @phpstan-ignore-line */

$fileS3Path = (string) str('s3://' . config("filesystems.disks.{$fileDisk}.bucket") . '/' . $filePath)->replace('\\', '/');

$resource = fopen($fileS3Path, mode: 'r', context: stream_context_create([
Expand Down
1 change: 0 additions & 1 deletion packages/forms/resources/lang/ca/components.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@

],


'delete' => [
'label' => 'Esborrar',
],
Expand Down
1 change: 0 additions & 1 deletion packages/forms/resources/lang/de/components.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@

],


'reorder' => [
'label' => 'Verschieben',
],
Expand Down
1 change: 0 additions & 1 deletion packages/tables/resources/lang/ca/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
'label' => 'Acció|Accions',
],


'text' => [

'actions' => [
Expand Down
8 changes: 4 additions & 4 deletions packages/widgets/docs/02-stats-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ protected static bool $isLazy = false;

## Adding a header and description

You may also add a header and description text above the widget by overriding the `$header` and `$description` properties:
You may also add a header and description text above the widget by overriding the `$heading` and `$description` properties:

```php
protected ?string $header = 'Analytics';
protected ?string $heading = 'Analytics';

protected ?string $description = 'An overview of some analytics.';
```

If you need to dynamically generated the header or description text, you can instead override the `getHeader()` and `getDescription()` methods:
If you need to dynamically generated the header or description text, you can instead override the `getHeading()` and `getDescription()` methods:

```php
protected function getHeader(): ?string
protected function getHeading(): ?string
{
return 'Analytics';
}
Expand Down

0 comments on commit 0dac280

Please sign in to comment.