Skip to content

Commit e2a62c3

Browse files
committed
fix wording (mostly in docs)
1 parent ac96b71 commit e2a62c3

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

doc/01-Basic-Menus.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Creating Menus: The Basics
33

44
Let's face it, creating menus sucks. Menus - a common aspect of any
55
site - can range from being simple and mundane to giant monsters that
6-
become a headache to code and maintain.
6+
becomes a headache to code and maintain.
77

88
This bundle solves the issue by giving you a small, yet powerful and flexible
99
framework for handling your menus. While most of the examples shown here
@@ -15,7 +15,7 @@ Creating a menu
1515
The menu framework centers around one main interface: `Knp\Menu\ItemInterface`.
1616
Items are created by a factory implementing `Knp\Menu\FactoryInterface`.
1717
It's best to think of each `ItemInterface` object as an `<li>` tag that can
18-
hold children objects (`<li>` tags that are wrapped in a `<ul>` tag).
18+
hold child objects (`<li>` tags that are wrapped in a `<ul>` tag).
1919
For example:
2020

2121
```php
@@ -55,13 +55,13 @@ The above would render the following html code:
5555
>The menu framework automatically adds `first` and `last` classes to each
5656
>`<li>` tag at each level for easy styling. Notice also that a `current`
5757
>class is added to the "current" menu item by uri and `current_ancestor`
58-
>to its ancestors (the classes are configurable) The above example assumes
58+
>to its ancestors (the classes are configurable). The above example assumes
5959
>the menu is being rendered on the `/comments` page, making the Comments
6060
>menu the "current" item.
6161
6262
When the menu is rendered, it's actually spaced correctly so that it appears
6363
as shown in the source html. This is to allow for easier debugging and can
64-
be turned off by passing the `true` as the second argument to the renderer.
64+
be turned off by passing `true` as the second argument to the renderer.
6565

6666
```php
6767
<?php

doc/04-Iterators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Filtering only displayed items
143143
------------------------------
144144

145145
The `Knp\Menu\Iterator\DisplayedItemFilterIterator` allows you to filter
146-
items to keep only displayed ones. As hiding an item also hides its children,
146+
items to keep only the displayed ones. As hiding an item also hides its children,
147147
this filter is a recursive filter iterator and is applied on the recursive
148148
iterator, not on the flattened iterator.
149149

doc/05-Matcher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MyAwesomeVoter implements VoterInterface
4949
}
5050
```
5151

52-
Note: You can also write your own *matcher* that implements the `MatcherInterface`
53-
if you need something different than the voter approach.
52+
Note: You can also write your own *matcher* that implements the `MatcherInterface`,
53+
if you need something different from the voter approach.
5454

5555
If you use the [KnpMenuBundle](http://symfony.com/doc/master/bundles/KnpMenuBundle/index.html), the RouteVoter is automatically loaded.

doc/examples/01_apply_active_class_to_whole_tree.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
How to apply the active class to a item and all ancestors
2-
=========================================================
1+
How to apply the active class to an item and all ancestors
2+
==========================================================
33

4-
By default the active menu item is applied with a `current` class and it's ancestors are applied with a `current_ancestor`
5-
class. To apply a class other than the default or apply the same class to both you can either pass it as option to the
4+
By default the active menu item is applied with a `current` class and its ancestors are applied with a `current_ancestor`
5+
class. To apply a class other than the default or apply the same class to both, you can either pass it as option to the
66
render method of your used renderer:
77

88
```php

src/Knp/Menu/Provider/MenuProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface MenuProviderInterface
1111
*
1212
* @param array<string, mixed> $options
1313
*
14-
* @throws \InvalidArgumentException if the menu does not exists
14+
* @throws \InvalidArgumentException if the menu does not exist
1515
*/
1616
public function get(string $name, array $options = []): ItemInterface;
1717

src/Knp/Menu/Renderer/RendererProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface RendererProviderInterface
99
*
1010
* If null is given, a renderer marked as default is returned.
1111
*
12-
* @throws \InvalidArgumentException if the renderer does not exists
12+
* @throws \InvalidArgumentException if the renderer does not exist
1313
*/
1414
public function get(?string $name = null): RendererInterface;
1515

0 commit comments

Comments
 (0)