Skip to content

Commit 5b62d4b

Browse files
pborreliNyholm
authored andcommitted
Fixed typos (#127)
1 parent b55c0fa commit 5b62d4b

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

Collector/DebugPluginCollector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ public function addFailure(Exception $exception, $clientName, $depth)
7878
}
7979

8080
/**
81-
* Returns the successful request-resonse pairs.
81+
* Returns the successful request-response pairs.
8282
*
83-
* @return array
83+
* @return int
8484
*/
85-
public function getSucessfulRequests()
85+
public function getSuccessfulRequests()
8686
{
8787
$count = 0;
8888
foreach ($this->data as $client) {
@@ -99,9 +99,9 @@ public function getSucessfulRequests()
9999
}
100100

101101
/**
102-
* Returns the failed request-resonse pairs.
102+
* Returns the failed request-response pairs.
103103
*
104-
* @return array
104+
* @return int
105105
*/
106106
public function getFailedRequests()
107107
{
@@ -126,7 +126,7 @@ public function getFailedRequests()
126126
*/
127127
public function getTotalRequests()
128128
{
129-
return $this->getSucessfulRequests() + $this->getFailedRequests();
129+
return $this->getSuccessfulRequests() + $this->getFailedRequests();
130130
}
131131

132132
/**

Collector/RequestStackProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public static function createFromCollectedData(array $data)
7474
*/
7575
private static function createOne($messages)
7676
{
77-
$orderedFaulure = [];
77+
$orderedFailure = [];
7878
$orderedRequests = [];
7979
$orderedResponses = [];
8080

8181
foreach ($messages['failure'] as $depth => $failures) {
8282
foreach ($failures as $idx => $failure) {
83-
$orderedFaulure[$idx][$depth] = $failure;
83+
$orderedFailure[$idx][$depth] = $failure;
8484
}
8585
}
8686

@@ -96,7 +96,7 @@ private static function createOne($messages)
9696
}
9797
}
9898

99-
return new self($orderedFaulure, $orderedRequests, $orderedResponses);
99+
return new self($orderedFailure, $orderedRequests, $orderedResponses);
100100
}
101101

102102
/**
@@ -114,7 +114,7 @@ public function getStackIndexKeys()
114114
*
115115
* @return array
116116
*/
117-
public function getRequstStack($idx)
117+
public function getRequestStack($idx)
118118
{
119119
return $this->requests[$idx];
120120
}

DependencyInjection/HttplugExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function configureClients(ContainerBuilder $container, array $config)
8989

9090
foreach ($config['clients'] as $name => $arguments) {
9191
if ($first === null) {
92-
// Save the name of the first configurated client.
92+
// Save the name of the first configured client.
9393
$first = $name;
9494
}
9595

@@ -304,7 +304,6 @@ function ($id) {
304304
->addArgument($pluginClientOptions)
305305
;
306306

307-
308307
/*
309308
* Decorate the client with clients from client-common
310309
*/

Resources/public/script/httplug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ var httplug_isHidden = function (el) {
111111
}
112112

113113
/**
114-
* Toggle visibility on elemets
114+
* Toggle visibility on elements
115115
* @param els
116116
* @param display defaults to "block"
117117
*/

Tests/Unit/DependencyInjection/HttplugExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function testProfilingWhenToolbarIsSpecificallyOn()
195195

196196
$this->assertTrue(isset($arguments[3]));
197197
$this->assertTrue(isset($arguments[3]['debug_plugins']));
198-
$this->assertFalse(empty($arguments[3]['debug_plugins']));
198+
$this->assertNotEmpty($arguments[3]['debug_plugins']);
199199
}
200200

201201
private function verifyProfilingDisabled()

0 commit comments

Comments
 (0)