File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,15 @@ class CgiRunner implements ExerciseRunnerInterface
50
50
*/
51
51
private $ requestRenderer ;
52
52
53
+ /**
54
+ * @var array
55
+ */
56
+ private static $ requiredChecks = [
57
+ FileExistsCheck::class,
58
+ PhpLintCheck::class,
59
+ CodeParseCheck::class,
60
+ ];
61
+
53
62
/**
54
63
* Requires the exercise instance and an event dispatcher. This runner requires the `php-cgi` binary to
55
64
* be available. It will check for it's existence in the system's $PATH variable or the same
@@ -106,11 +115,7 @@ public function getName()
106
115
*/
107
116
public function getRequiredChecks ()
108
117
{
109
- return [
110
- FileExistsCheck::class,
111
- PhpLintCheck::class,
112
- CodeParseCheck::class,
113
- ];
118
+ return static ::$ requiredChecks ;
114
119
}
115
120
116
121
/**
Original file line number Diff line number Diff line change @@ -44,6 +44,15 @@ class CliRunner implements ExerciseRunnerInterface
44
44
*/
45
45
private $ eventDispatcher ;
46
46
47
+ /**
48
+ * @var array
49
+ */
50
+ private static $ requiredChecks = [
51
+ FileExistsCheck::class,
52
+ PhpLintCheck::class,
53
+ CodeParseCheck::class,
54
+ ];
55
+
47
56
/**
48
57
* Requires the exercise instance and an event dispatcher.
49
58
*
@@ -71,11 +80,7 @@ public function getName()
71
80
*/
72
81
public function getRequiredChecks ()
73
82
{
74
- return [
75
- FileExistsCheck::class,
76
- PhpLintCheck::class,
77
- CodeParseCheck::class,
78
- ];
83
+ return static ::$ requiredChecks ;
79
84
}
80
85
81
86
/**
You can’t perform that action at this time.
0 commit comments