Skip to content

Commit 82e850c

Browse files
authored
chore: grammatical issues in comments fixed (#210)
2 parents 86c581e + 88120b1 commit 82e850c

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

src/Contracts/ParserInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
interface ParserInterface
1111
{
1212
/**
13-
* Get a result object from the current visitors user agent string.
13+
* Get a result object from the current visitor user agent string.
1414
*
1515
* @return ResultInterface
1616
*/

src/Contracts/PayloadInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setValue(string $key, $value): void;
2828

2929
/**
3030
* Get a value if exists in the data schema,
31-
* returns null if the key does not exists.
31+
* returns null if the key does not exist.
3232
*
3333
* @param string $key Temporary data key.
3434
*

src/Contracts/ResultInterface.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ public function __construct(array $result);
2626
public function userAgent(): string;
2727

2828
/**
29-
* Is this a mobile device.
29+
* Is this a mobile device?
3030
*
3131
* @return bool
3232
*/
3333
public function isMobile(): bool;
3434

3535
/**
36-
* Is this a tablet device.
36+
* Is this a tablet device?
3737
*
3838
* @return bool
3939
*/
4040
public function isTablet(): bool;
4141

4242
/**
43-
* Is this a desktop computer.
43+
* Is this a desktop computer?
4444
*
4545
* @return bool
4646
*/
@@ -54,7 +54,7 @@ public function isDesktop(): bool;
5454
public function deviceType(): string;
5555

5656
/**
57-
* Is this a crawler / bot.
57+
* Is this a crawler / bot?
5858
*
5959
* @return bool
6060
*/
@@ -89,7 +89,7 @@ public function isOpera(): bool;
8989
public function isSafari(): bool;
9090

9191
/**
92-
* Is this browser an Microsoft Edge?
92+
* Is this browser a Microsoft Edge?
9393
*
9494
* @return bool
9595
*/
@@ -103,14 +103,14 @@ public function isEdge(): bool;
103103
public function isIE(): bool;
104104

105105
/**
106-
* Is this browser an android in app browser?
106+
* Is this browser an android in-app browser?
107107
*
108108
* @return bool
109109
*/
110110
public function isInApp(): bool;
111111

112112
/**
113-
* Is this an Internet Explorer X (or lower version).
113+
* Is this an Internet Explorer X (or lower version)?
114114
*
115115
* @param integer $version
116116
* @param string $operator
@@ -120,7 +120,7 @@ public function isInApp(): bool;
120120
public function isIEVersion(int $version, string $operator = '='): bool;
121121

122122
/**
123-
* Build a human readable browser name: Internet Explorer 7, Firefox 3.6
123+
* Build a human-readable browser name: Internet Explorer 7, Firefox 3.6
124124
*
125125
* @return string
126126
*/
@@ -134,7 +134,7 @@ public function browserName(): string;
134134
public function browserFamily(): string;
135135

136136
/**
137-
* Build human readable browser version. (cuts the trailing .0 parts)
137+
* Build a human-readable browser version. (Cuts the trailing .0 parts)
138138
*
139139
* @return string
140140
*/
@@ -169,7 +169,7 @@ public function browserVersionPatch(): int;
169169
public function browserEngine(): string;
170170

171171
/**
172-
* Operating system's human friendly name like Windows XP, MacOS 10.
172+
* Operating system's human-friendly name like Windows XP, macOS 10.
173173
*
174174
* @return string
175175
*/
@@ -183,7 +183,7 @@ public function platformName(): string;
183183
public function platformFamily(): string;
184184

185185
/**
186-
* Build human readable os version. (cuts the trailing .0 parts)
186+
* Build a human-readable os version. (cuts the trailing .0 parts)
187187
*
188188
* @return string
189189
*/
@@ -225,7 +225,7 @@ public function isWindows(): bool;
225225
public function isLinux(): bool;
226226

227227
/**
228-
* Is this a mac operating system?
228+
* Is this a Mac operating system?
229229
*
230230
* @return bool
231231
*/

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function parse(string $agent): ResultInterface
163163
$key = $this->makeHashKey($agent);
164164

165165
if (!isset($this->runtime[$key])) {
166-
// In standalone mode You can run the parser without cache.
166+
// In standalone mode, You can run the parser without a cache.
167167
if ($this->cache !== null) {
168168
$result = $this->cache->remember(
169169
$key,

src/Payload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use hisorange\BrowserDetect\Contracts\PayloadInterface;
66

77
/**
8-
* This class is passed down in the pipeline
8+
* This class is passed down in the pipeline,
99
* and each stage makes the changes on this
1010
* state carrier object.
1111
*

src/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* The object is used for safely accessing the
99
* result of the parsing, this is necessary
10-
* to allow us to change the implementaion
10+
* to allow us to change the implementation
1111
* behind the values.
1212
*
1313
* @package hisorange\BrowserDetect

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ($fn) {
7070
}
7171

7272
/**
73-
* Only binding can occure here!
73+
* Only binding can occur here!
7474
*
7575
* @inheritdoc
7676
*/

src/Stages/BrowserDetect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __invoke(PayloadInterface $payload): ResultInterface
7373
$payload->setValue('isEdge', true);
7474
}
7575

76-
// Human readable browser version.
76+
// Human-readable browser version.
7777
$payload->setValue(
7878
'browserVersion',
7979
$this->trimVersion(
@@ -94,7 +94,7 @@ public function __invoke(PayloadInterface $payload): ResultInterface
9494
$payload->getValue('browserVersion')
9595
));
9696

97-
// Human readable platform version.
97+
// Human-readable platform version.
9898
$payload->setValue(
9999
'platformVersion',
100100
$this->trimVersion(

src/Stages/UAParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use hisorange\BrowserDetect\Contracts\PayloadInterface;
88

99
/**
10-
* Main parser to get the most of the info about the browser and it's operating system.
10+
* Main parser to get the most of the info about the browser, and it's an operating system.
1111
*
1212
* @package hisorange\BrowserDetect\Stages
1313
*/

0 commit comments

Comments
 (0)