Skip to content

Commit 8788a78

Browse files
authored
Merge pull request #43 from yadaiio/typos
Fix typos in documentation
2 parents c11d91a + a6f6e30 commit 8788a78

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/EventSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function request()
191191
return;
192192
}
193193

194-
// match `Content-Type: text/event-stream` (case insensitve and ignore additional parameters)
194+
// match `Content-Type: text/event-stream` (case insensitive and ignore additional parameters)
195195
if (!preg_match('/^text\/event-stream(?:$|;)/i', $response->getHeaderLine('Content-Type'))) {
196196
$this->readyState = self::CLOSED;
197197
$this->emit('error', array(new \UnexpectedValueException('Unexpected Content-Type')));

tests/MessageEventTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ public function testParseDataOverTwoLinesWillBeCombined()
2121
$this->assertEquals("hello\nworld", $message->data);
2222
}
2323

24-
public function testParseDataOverTwoLinesWithCarrigeReturnsWillBeCombinedWithNewline()
24+
public function testParseDataOverTwoLinesWithCarriageReturnsWillBeCombinedWithNewline()
2525
{
2626
$message = MessageEvent::parse("data: hello\rdata: world", '');
2727

2828
$this->assertEquals("hello\nworld", $message->data);
2929
}
3030

31-
public function testParseDataOverTwoLinesWithCarrigeReturnsAndNewlinesWillBeCombinedWithNewline()
31+
public function testParseDataOverTwoLinesWithCarriageReturnsAndNewlinesWillBeCombinedWithNewline()
3232
{
3333
$message = MessageEvent::parse("data: hello\r\ndata: world", '');
3434

@@ -42,14 +42,14 @@ public function testParseDataWithTrailingNewlineOverTwoLines()
4242
$this->assertEquals("hello\n", $message->data);
4343
}
4444

45-
public function testParseDataWithCarrigeReturnOverTwoLines()
45+
public function testParseDataWithCarriageReturnOverTwoLines()
4646
{
4747
$message = MessageEvent::parse("data: hello\rdata:", '');
4848

4949
$this->assertEquals("hello\n", $message->data);
5050
}
5151

52-
public function testParseDataWithCarrigeReturnAndNewlineOverTwoLines()
52+
public function testParseDataWithCarriageReturnAndNewlineOverTwoLines()
5353
{
5454
$message = MessageEvent::parse("data: hello\r\ndata:", '');
5555

0 commit comments

Comments
 (0)