Skip to content

Commit

Permalink
Merge pull request #5540 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos all around
  • Loading branch information
pxpm authored Jun 17, 2024
2 parents 01270cd + 92e8cf1 commit f0cd235
Show file tree
Hide file tree
Showing 51 changed files with 75 additions and 75 deletions.
10 changes: 5 additions & 5 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ newIssueWelcomeComment: >
Hello there! Thanks for opening your first issue on this repo!
Just a heads-up: **Here at Backpack we use Github Issues only for tracking bugs**. Talk about new features is also acceptable. This helps _a lot_ in keeping our focus on improving Backpack. **If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below)**. If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Just a heads-up: **Here at Backpack we use GitHub Issues only for tracking bugs**. Talk about new features is also acceptable. This helps _a lot_ in keeping our focus on improving Backpack. **If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below)**. If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Backpack communication channels:
- Bug Reports, Feature Requests - Github Issues (here);
- Bug Reports, Feature Requests - GitHub Issues (here);
- Quick help (_How do I do X_) - [Gitter Chatroom](https://gitter.im/BackpackForLaravel/Lobby);
- Long questions (_I have done X and Y and it won't do Z wtf_) - [Stackoverflow](https://stackoverflow.com/questions/tagged/backpack-for-laravel), using the ```backpack-for-laravel``` tag;
- Showing off something you've made, asking for opinion on Backpack/Laravel matters - [Reddit](https://www.reddit.com/r/BackpackForLaravel/);
Expand Down Expand Up @@ -55,18 +55,18 @@ newPRWelcomeComment: >

# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
WHOOP-WHOOP! Congrats, your first PR on this repo has officialy been merged.
WHOOP-WHOOP! Congrats, your first PR on this repo has officially been merged.
![party](https://media1.giphy.com/media/3KC2jD2QcBOSc/giphy.gif "Party!!!")
You should also receive an email inviting you to [the Community Members team](https://github.com/orgs/Laravel-Backpack/teams/community-members). That's where we, commited community members, debate new features and decide what's in the Backpack roadmap. Feel free to ignore the invitation if you're not interested :-)
You should also receive an email inviting you to [the Community Members team](https://github.com/orgs/Laravel-Backpack/teams/community-members). That's where we, committed community members, debate new features and decide what's in the Backpack roadmap. Feel free to ignore the invitation if you're not interested :-)
If you want to help out the community in other ways, you can:
- **give your opinion on other Github Issues & PRs**;
- **give your opinion on other GitHub Issues & PRs**;
- **chat with others** in the [Gitter Chatroom](https://gitter.im/BackpackForLaravel/Lobby) (usually for quick help: _How do I do X_);
- **answer Backpack questions on [Stackoverflow](https://stackoverflow.com/questions/tagged/backpack-for-laravel)**; you get points, people get help; you can subscribe to the ```backpack-for-laravel``` tag by [adding a new filter](https://stackexchange.com/filters/256210/my-filter-3); that will send you emails when new questions come up with our tag;
Expand Down
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#####################################
# Github Stale Probot Configuration #
# GitHub Stale Probot Configuration #
# ###################################
# https://probot.github.io/apps/stale/

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- Long questions (_I have done X and Y and it won't do Z wtf_): [Stackoverflow](https://stackoverflow.com/questions/tagged/backpack-for-laravel), using the ```backpack-for-laravel``` tag; this is recommended for most questions, since other developers can then find the answer on a simple Google search; also, people get points for answering - and who doesn't like StackOverflow points?!
- Quick help (_How do I do X_): [Gitter Chatroom](https://gitter.im/BackpackForLaravel/Lobby);
- Bug Reports, Feature Requests: Github Issues (here);
- Bug Reports, Feature Requests: GitHub Issues (here);
Thank you for understanding.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you've never submitted a PR before, don't worry, it's not that difficult. Rea
Thank you, thank you, thank you! You can:
- [add a StackOverflow filter](https://stackexchange.com/filters) to receive emails for backpack-for-laravel questions;
- [install Gitter](https://gitter.im/BackpackForLaravel/Lobby) and help people out in real-time;
- [star Backpack\CRUD on Github](https://github.com/laravel-backpack/crud) so the repository can get more views;
- [star Backpack\CRUD on GitHub](https://github.com/laravel-backpack/crud) so the repository can get more views;
- [purchase a commercial license](https://www.backpackforlaravel.com/commercial-license/form), if you use Backpack to make money;
- ALL OF THE ABOVE. Groundbreaking, I know, right? :-)

Expand Down
2 changes: 1 addition & 1 deletion src/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function sendUsageStats()
/**
* Make a request using CURL.
*
* It spins up a separate process for this, and doesn't listen for a reponse,
* It spins up a separate process for this, and doesn't listen for a response,
* so it has minimal to no impact on pageload.
*
* @param string $method HTTP Method to use for the request.
Expand Down
2 changes: 1 addition & 1 deletion src/ThemeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ThemeServiceProvider extends ServiceProvider
*/

/**
* Boot method may be overrided by AddonServiceProvider.
* Boot method may be overridden by AddonServiceProvider.
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ViewNamespaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function getWithFallbackFor(string $domain, string $viewNamespaces

/**
* This is an helper function that returns the view namespace with the view name appended.
* It's usefull to use in blade templates with `@includeFirst(ViewNamespaces::getViewPathsFor('columns', 'some_column'))`.
* It's useful to use in blade templates with `@includeFirst(ViewNamespaces::getViewPathsFor('columns', 'some_column'))`.
*
* @param string $domain
* @param string $viewName
Expand Down
4 changes: 2 additions & 2 deletions src/app/Console/Commands/Themes/InstallsTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trait InstallsTheme
// public static $addon = [
// 'name' => 'CoreUIv2',
// 'description' => [
// 'UI provided by CoreUIv2, a Boostrap 4 template.',
// 'UI provided by CoreUIv2, a Bootstrap 4 template.',
// '<fg=blue>https://github.com/laravel-backpack/theme-coreuiv2/</>',
// ],
// 'repo' => 'backpack/theme-coreuiv2',
Expand Down Expand Up @@ -74,7 +74,7 @@ public function installTheme()
if (! $this->isInstalled()) {
$this->errorProgressBlock();
$this->note('For further information please check the log file.');
$this->note('You can also follow the manual installation process documented on Github.');
$this->note('You can also follow the manual installation process documented on GitHub.');
$this->newLine();

return;
Expand Down
2 changes: 1 addition & 1 deletion src/app/Console/Commands/Themes/RequireThemeCoreuiv2.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RequireThemeCoreuiv2 extends Command
public static $addon = [
'name' => 'CoreUIv2',
'description' => [
'UI provided by CoreUIv2, a Boostrap 4 template. Considered legacy, but useful for IE support.',
'UI provided by CoreUIv2, a Bootstrap 4 template. Considered legacy, but useful for IE support.',
'<fg=blue>https://github.com/laravel-backpack/theme-coreuiv2/</>',
],
'repo' => 'backpack/theme-coreuiv2',
Expand Down
2 changes: 1 addition & 1 deletion src/app/Console/Commands/Themes/RequireThemeCoreuiv4.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RequireThemeCoreuiv4 extends Command
public static $addon = [
'name' => 'CoreUIv4',
'description' => [
'UI provided by CoreUIv4, a Boostrap 5 template.',
'UI provided by CoreUIv4, a Bootstrap 5 template.',
'<fg=blue>https://github.com/laravel-backpack/theme-coreuiv4/</>',
],
'repo' => 'backpack/theme-coreuiv4',
Expand Down
2 changes: 1 addition & 1 deletion src/app/Console/Commands/Themes/RequireThemeTabler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RequireThemeTabler extends Command
public static $addon = [
'name' => 'Tabler <fg=green>(default)</>',
'description' => [
'UI provided by Tabler, a Boostrap 5 template. Lots of new features, including a dark mode.',
'UI provided by Tabler, a Bootstrap 5 template. Lots of new features, including a dark mode.',
'<fg=blue>https://github.com/laravel-backpack/theme-tabler/</>',
],
'repo' => 'backpack/theme-tabler',
Expand Down
2 changes: 1 addition & 1 deletion src/app/Http/Controllers/Operations/ShowOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function removeColumnsThatDontBelongInsideShowOperation()
}
}

// remove bulk actions colums
// remove bulk actions columns
$this->crud->removeColumns(['blank_first_column', 'bulk_actions']);
}
}
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/CrudButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* - CRUD::button('create')->stack('top')->view('crud::buttons.create');
*
* And if the developer uses CrudButton as Button in their CrudController:
* - Button::name('create')->stack('top')->view('crud::butons.create');
* - Button::name('create')->stack('top')->view('crud::buttons.create');
*/
class CrudButton implements Arrayable
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/CrudFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function forget($attribute)

/**
* Remove an attribute from one field's definition array.
* (ununsed function).
* (unused function).
*
* @param string $field The name of the field.
* @param string $attribute The name of the attribute being removed.
Expand Down
8 changes: 4 additions & 4 deletions src/app/Library/CrudPanel/CrudPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ public function getRelatedEntriesAttributes($model, $relationString, $attribute)

if (is_array($entries)) {
//if attribute does not exist in main array we have more than one entry OR the attribute
//is an acessor that is not in $appends property of model.
//is an accessor that is not in $appends property of model.
if (! isset($entries[$attribute])) {
//we first check if we don't have the attribute because it's an acessor that is not in appends.
//we first check if we don't have the attribute because it's an accessor that is not in appends.
if ($model_instance->hasGetMutator($attribute) && isset($entries[$modelKey])) {
$entry_in_database = $model_instance->find($entries[$modelKey]);
$attributes[$entry_in_database->{$modelKey}] = $this->parseTranslatableAttributes($model_instance, $attribute, $entry_in_database->{$attribute});
} else {
//we have multiple entries
//for each entry we check if $attribute exists in array or try to check if it's an acessor.
//for each entry we check if $attribute exists in array or try to check if it's an accessor.
foreach ($entries as $entry) {
if (isset($entry[$attribute])) {
$attributes[$entry[$modelKey]] = $this->parseTranslatableAttributes($model_instance, $attribute, $entry[$attribute]);
Expand All @@ -418,7 +418,7 @@ public function getRelatedEntriesAttributes($model, $relationString, $attribute)
}
}
} else {
//if we have the attribute we just return it, does not matter if it is direct attribute or an acessor added in $appends.
//if we have the attribute we just return it, does not matter if it is direct attribute or an accessor added in $appends.
$attributes[$entries[$modelKey]] = $this->parseTranslatableAttributes($model_instance, $attribute, $entries[$attribute]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ private function handleManyRelationItemRemoval($modelInstance, $removedEntries,
* @param $entry - eg: story
* @param $relation - eg story HasMany monsters
* @param $relationMethod - eg: monsters
* @param $relationDetails - eg: info about relation including submited values
* @param $relationDetails - eg: info about relation including submitted values
* @return void
*/
private function createManyEntries($entry, $relation, $relationMethod, $relationDetails)
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function setFieldLabel($field, $label)

/**
* Check if field is the first of its type in the given fields array.
* It's used in each field_type.blade.php to determine wether to push the css and js content or not (we only need to push the js and css for a field the first time it's loaded in the form, not any subsequent times).
* It's used in each field_type.blade.php to determine whether to push the css and js content or not (we only need to push the js and css for a field the first time it's loaded in the form, not any subsequent times).
*
* @param array $field The current field being tested if it's the first of its type.
* @return bool true/false
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function getRelationDetailsFromInput($input, $crudFields = [], $relation
$key = Str::before($this->getOnlyRelationEntity(['entity' => $fieldName]), '.');

// if the field entity contains the attribute we want to add that attribute in the correct relation key.
// eg: adress.street, we want to add `street` as an attribute in `address` relation, `street` is not
// eg: address.street, we want to add `street` as an attribute in `address` relation, `street` is not
// a relation of `address`
if ($this->getOnlyRelationEntity($field) !== $field['entity']) {
if (Str::before($field['entity'], '.') === $relationMethod) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/Library/CrudPanel/Traits/MorphRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function addMorphOption($fieldOrName, string $key, $label = null, array $
// set the morphable_id field options with the same key as morphable_type field above.
$morphIdField['morphOptions'][$key] = $options;

// merge aditional options with the fields with setup above.
// merge additional options with the fields with setup above.
$morphTypeField = isset($morphField['morphTypeField']) ? array_merge($morphTypeField, $morphField['morphTypeField']) : $morphTypeField;
$morphIdField = isset($morphField['morphIdField']) ? array_merge($morphIdField, $morphField['morphIdField']) : $morphIdField;

Expand All @@ -126,7 +126,7 @@ public function addMorphOption($fieldOrName, string $key, $label = null, array $
}

/**
* Return the provided morphable_type field with the options infered from key.
* Return the provided morphable_type field with the options inferred from key.
*
* @param array $morphTypeField
* @param string $key
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait Operations
| OPERATIONS
|--------------------------------------------------------------------------
| Helps developers set and get the current CRUD operation, as defined by
| the contoller method being run.
| the controller method being run.
*/
protected $currentOperation;

Expand Down
4 changes: 2 additions & 2 deletions src/app/Library/CrudPanel/Traits/Read.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getCurrentEntryId()
$params = \Route::current()->parameters();

return // use the entity name to get the current entry
// this makes sure the ID is corrent even for nested resources
// this makes sure the ID is current even for nested resources
$this->getRequest()->input($this->entity_name) ??
// otherwise use the next to last parameter
array_values($params)[count($params) - 1] ??
Expand Down Expand Up @@ -178,7 +178,7 @@ public function disableDetailsRow()
}

/**
* Add two more columns at the beginning of the ListEntrie table:
* Add two more columns at the beginning of the ListEntries table:
* - one shows the checkboxes needed for bulk actions
* - one is blank, in order for evenual detailsRow or expand buttons
* to be in a separate column.
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Relationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getFieldsWithRelationType($relation_types, $nested = false): arr
}

/**
* Parse the field name back to the related entity after the form is submited.
* Parse the field name back to the related entity after the form is submitted.
* Its called in getAllFieldNames().
*
* @param array $fields
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/SaveActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getSaveActionByOrder($order)
*/
public function addSaveActions($saveActions)
{
// count vs count recursive will be diferent when counting single dimension vs multiple dimension arrays.
// count vs count recursive will be different when counting single dimension vs multiple dimension arrays.
// count([1,2]) = 2, count([1,[2,3]]) = 2 with recursive it's 3. so if counts are different we have a
// multi dimensional array
if (count($saveActions) != count($saveActions, COUNT_RECURSIVE)) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Traits/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function loadDefaultOperationSettingsFromConfig($configPath = null)
/**
* Get the current CRUD operations loaded.
*
* @return array operaiton names
* @return array operation names
*/
private function getAvailableOperationsList(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/Library/Uploaders/Support/RegisterUploadEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private function setupModelEvents(string $model, UploaderInterface $uploader): v
}

/**
* Return the uploader for the object beeing configured.
* Return the uploader for the object being configured.
* We will give priority to any uploader provided by `uploader => App\SomeUploaderClass` on upload definition.
*
* If none provided, we will use the Backpack defaults for the given object type.
Expand Down
4 changes: 2 additions & 2 deletions src/app/Library/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function after($destination)
}

// TODO: add ability to push a widget right before another widget
public function before($destionation)
public function before($destination)
{
}

Expand Down Expand Up @@ -298,7 +298,7 @@ public function dd()

/**
* Overwritten methods to prevent BC in Laravel 11, since they introduced the `value()` method
* in their Fluent class. Altough the Widget class is Fluent, it does not behave the same
* in their Fluent class. Although the Widget class is Fluent, it does not behave the same
* in regards to `value()`, since we use it as a key in widget definition.
*/
public function value($value, $default = null)
Expand Down
2 changes: 1 addition & 1 deletion src/app/Models/Traits/HasIdentifiableAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function identifiableAttribute()
/**
* Get the most likely column in the db table that could be used as an identifiable attribute.
*
* @return string The name of the column in the database that is most likely to be a good indentifying attribute.
* @return string The name of the column in the database that is most likely to be a good identifying attribute.
*/
private static function guessIdentifiableColumnName()
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/Models/Traits/HasRelationshipFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
trait HasRelationshipFields
{
/**
* Register aditional types in doctrine schema manager for the current connection.
* Register additional types in doctrine schema manager for the current connection.
*
* @return DB
*/
Expand Down
4 changes: 2 additions & 2 deletions src/config/backpack/ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

// IMPORTANT NOTE: The configurations here get overriden by theme config files.
// IMPORTANT NOTE: The configurations here get overridden by theme config files.
//
// Eg. If you're using theme-tabler and config/backpack/theme-tabler.php
// has "breadcrumbs" set as false, then THAT value will be used instead
Expand All @@ -28,7 +28,7 @@
|
| To make the UI feel yours.
|
| Note that values set here might be overriden by theme config files
| Note that values set here might be overridden by theme config files
| (eg. config/backpack/theme-tabler.php) when that theme is in use.
|
*/
Expand Down
Loading

0 comments on commit f0cd235

Please sign in to comment.