Skip to content

Commit 108236e

Browse files
committed
Merge pull request php-debugbar#8 from pborreli/typos
Fixed typos
2 parents c7f4e76 + 68dfa87 commit 108236e

24 files changed

+61
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You can use the following snippet to autoload DebugBar classes:
6161

6262
## Quick start
6363

64-
DebugBar is very easy to use and you can add it to any of your projets in no time.
64+
DebugBar is very easy to use and you can add it to any of your projects in no time.
6565
The easiest way is using the `render()` functions
6666

6767
<?php

demo/bridge/propel/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
include __DIR__ . '/vendor/autoload.php';
4-
include __DIR__ . '/../../bootstrap.php';
4+
include __DIR__ . '/../../bootstrap.php';
55

66
$debugbarRenderer->setBaseUrl('../../../src/DebugBar/Resources');
77

docs/base_collectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Collectors provided in the `DebugBar\DataCollector` namespace.
55

66
## Messages
77

8-
Provides a way to log messages (compotible with [PSR-3 logger](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)).
8+
Provides a way to log messages (compatible with [PSR-3 logger](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)).
99

1010
$debugbar->addCollector(new DebugBar\DataCollector\MessagesCollector());
1111
$debugbar['messages']->info('hello world');

docs/bridge_collectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bridge collectors
22

33
DebugBar comes with some "bridge" collectors. This collectors provides a way to integrate
4-
other projets with the DebugBar.
4+
other projects with the DebugBar.
55

66
## CacheCache
77

docs/javascript_bar.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ part of the bar.
1515
The bar handles multiple datasets by displaying a select box
1616
which allows you to switch between them.
1717

18-
The state of the bar (height, visibilty, active panel) can be saved
18+
The state of the bar (height, visibility, active panel) can be saved
1919
between requests (enabled in the standard bar).
2020

2121
Each panel is composed of a widget which is used to display the
@@ -81,7 +81,7 @@ Although you shouldn't have to do anything regarding managing datasets,
8181
it is interesting to know a few functions related to them.
8282

8383
`addDataSet(data, id)` adds a dataset to the bar. The select box that
84-
allows to swtich between sets is only displayed if more than one are added.
84+
allows to switch between sets is only displayed if more than one are added.
8585
`id` is optional and will be auto-generated if not specified.
8686

8787
`showDataSet(id)` allows you to switch to a specific dataset.
@@ -100,14 +100,14 @@ New widgets can be created using `extend()`:
100100
The Widget class defines a `set(attr, value)` function which can be used
101101
to set the value of attributes.
102102

103-
Using `bindAttr(attr, callback)`, you can trigger a callback everytime
103+
Using `bindAttr(attr, callback)`, you can trigger a callback every time
104104
the value of the attribute is changed. `callback` can also be a `jQuery`
105105
object and in that case it will use the `text()` function to fill the element.
106106

107107
Widgets should define a `render()` function which initializes the widget
108108
elements.
109109

110-
`initiliaze(options)` will always be called after the constructor.
110+
`initialize(options)` will always be called after the constructor.
111111

112112
var MyWidget = PhpDebugBar.Widget.extend({
113113

@@ -175,7 +175,7 @@ An OpenHandler object can be provided using `setOpenHandler()`. The object is in
175175
of loading datasets. The only requirement is to provide a `show()` method which takes
176176
as only parameter a callback which expects an id and data parameter.
177177

178-
The default implementation is `PhpDebugBar.OpenHandler` which must be use in conjonction
178+
The default implementation is `PhpDebugBar.OpenHandler` which must be use in conjunction
179179
with the server side `DebugBar\OpenHandler` (see previous section).
180180

181181
debugbar.setOpenHandler(new PhpDebugBar.OpenHandler({ url: "open.php" }));

docs/rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Thus in almost all cases, you should only have to use `render()` right away:
7272
</body>
7373
</html>
7474

75-
This will print the initilization code for the toolbar and the dataset for the request.
75+
This will print the initialization code for the toolbar and the dataset for the request.
7676
When you are performing AJAX requests, you do not want to initialize a new toolbar but
7777
add the dataset to the existing one. You can disable initialization using ̀false` as
7878
the first argument of ̀render()`.

src/DebugBar/Bridge/PropelCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function log($message, $severity = null)
169169
if (!$this->logQueriesToLogger) {
170170
return;
171171
}
172-
$message = "$sql ($duration_str)";
172+
$message = "$sql ($duration_str)";
173173
}
174174

175175
if ($this->logger !== null) {

src/DebugBar/Bridge/SwiftMailer/SwiftMailCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Swift_Plugins_MessageLogger;
1717

1818
/**
19-
* Collects data abotu sent mails
19+
* Collects data about sent mails
2020
*
2121
* http://swiftmailer.org/
2222
*/

src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class TraceableTwigEnvironment extends Twig_Environment
3535

3636
/**
3737
* @param Twig_Environment $twig
38+
* @param TimeDataCollector $timeDataCollector
3839
*/
3940
public function __construct(Twig_Environment $twig, TimeDataCollector $timeDataCollector = null)
4041
{

src/DebugBar/Bridge/Twig/TraceableTwigTemplate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class TraceableTwigTemplate implements Twig_TemplateInterface
2121
protected $template;
2222

2323
/**
24+
* @param TraceableTwigEnvironment $env
2425
* @param Twig_Template $template
2526
*/
2627
public function __construct(TraceableTwigEnvironment $env, Twig_Template $template)

0 commit comments

Comments
 (0)