Skip to content

Commit 9990233

Browse files
jrfnlgrogy
authored andcommitted
Fix minor grammatical errors in potentially user facing texts
1 parent 7dcdb73 commit 9990233

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Application
1818
public function run()
1919
{
2020
if (in_array('proc_open', explode(',', ini_get('disable_functions')))) {
21-
echo "Function 'proc_open' is required, but it is disabled by disable_functions setting.", PHP_EOL;
21+
echo "Function 'proc_open' is required, but it is disabled by the 'disable_functions' ini setting.", PHP_EOL;
2222
return self::FAILED;
2323
}
2424

src/ParallelLint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function lint(array $files)
119119
foreach ($waiting as $file => $process) {
120120
$skipStatus = $skipLintProcess->isSkipped($file);
121121
if ($skipStatus === null) {
122-
throw new \Exception("File $file has empty skip status. Please contact PHP Parallel Lint author.");
122+
throw new \Exception("File $file has empty skip status. Please contact the author of PHP Parallel Lint.");
123123

124124
} else if ($skipStatus === true) {
125125
$skippedFiles[] = $file;

src/Process/GitBlameProcess.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function isSuccess()
3333
public function getAuthor()
3434
{
3535
if (!$this->isSuccess()) {
36-
throw new RunTimeException("Author can be taken only for success process output.");
36+
throw new RunTimeException("Author can only be retrieved for successful process output.");
3737
}
3838

3939
$output = $this->getOutput();
@@ -48,7 +48,7 @@ public function getAuthor()
4848
public function getAuthorEmail()
4949
{
5050
if (!$this->isSuccess()) {
51-
throw new RunTimeException("Author e-mail can be taken only for success process output.");
51+
throw new RunTimeException("Author e-mail can only be retrieved for successful process output.");
5252
}
5353

5454
$output = $this->getOutput();
@@ -63,7 +63,7 @@ public function getAuthorEmail()
6363
public function getAuthorTime()
6464
{
6565
if (!$this->isSuccess()) {
66-
throw new RunTimeException("Author time can be taken only for success process output.");
66+
throw new RunTimeException("Author time can only be retrieved for successful process output.");
6767
}
6868

6969
$output = $this->getOutput();
@@ -84,7 +84,7 @@ public function getAuthorTime()
8484
public function getCommitHash()
8585
{
8686
if (!$this->isSuccess()) {
87-
throw new RunTimeException("Commit hash can be taken only for success process output.");
87+
throw new RunTimeException("Commit hash can only be retrieved for successful process output.");
8888
}
8989

9090
return substr($this->getOutput(), 0, strpos($this->getOutput(), ' '));
@@ -97,7 +97,7 @@ public function getCommitHash()
9797
public function getSummary()
9898
{
9999
if (!$this->isSuccess()) {
100-
throw new RunTimeException("Commit summary can be taken only for success process output.");
100+
throw new RunTimeException("Commit summary can only be retrieved for successful process output.");
101101
}
102102

103103
$output = $this->getOutput();

src/Process/LintProcess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getSyntaxError()
8080
}
8181
}
8282

83-
throw new RunTimeException("The output '{$this->getOutput()}' does not contains Parse or Syntax error");
83+
throw new RunTimeException("The output '{$this->getOutput()}' does not contain Parse or Syntax errors");
8484
}
8585

8686
return false;

0 commit comments

Comments
 (0)