@@ -33,7 +33,7 @@ public function isSuccess()
33
33
public function getAuthor ()
34
34
{
35
35
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. " );
37
37
}
38
38
39
39
$ output = $ this ->getOutput ();
@@ -48,7 +48,7 @@ public function getAuthor()
48
48
public function getAuthorEmail ()
49
49
{
50
50
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. " );
52
52
}
53
53
54
54
$ output = $ this ->getOutput ();
@@ -63,7 +63,7 @@ public function getAuthorEmail()
63
63
public function getAuthorTime ()
64
64
{
65
65
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. " );
67
67
}
68
68
69
69
$ output = $ this ->getOutput ();
@@ -84,7 +84,7 @@ public function getAuthorTime()
84
84
public function getCommitHash ()
85
85
{
86
86
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. " );
88
88
}
89
89
90
90
return substr ($ this ->getOutput (), 0 , strpos ($ this ->getOutput (), ' ' ));
@@ -97,7 +97,7 @@ public function getCommitHash()
97
97
public function getSummary ()
98
98
{
99
99
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. " );
101
101
}
102
102
103
103
$ output = $ this ->getOutput ();
0 commit comments