@@ -39,7 +39,7 @@ public function __construct(Parser $parser)
3939 /**
4040 * Return the check's name.
4141 */
42- public function getName () : string
42+ public function getName (): string
4343 {
4444 return 'Function Requirements Check ' ;
4545 }
@@ -53,10 +53,10 @@ public function getName() : string
5353 * @param Input $input The command line arguments passed to the command.
5454 * @return ResultInterface The result of the check.
5555 */
56- public function check (ExerciseInterface $ exercise , Input $ input ) : ResultInterface
56+ public function check (ExerciseInterface $ exercise , Input $ input ): ResultInterface
5757 {
5858 if (!$ exercise instanceof FunctionRequirementsExerciseCheck) {
59- throw new \InvalidArgumentException ;
59+ throw new \InvalidArgumentException () ;
6060 }
6161
6262 $ requiredFunctions = $ exercise ->getRequiredFunctions ();
@@ -71,7 +71,7 @@ public function check(ExerciseInterface $exercise, Input $input) : ResultInterfa
7171 }
7272
7373 $ visitor = new FunctionVisitor ($ requiredFunctions , $ bannedFunctions );
74- $ traverser = new NodeTraverser ;
74+ $ traverser = new NodeTraverser () ;
7575 $ traverser ->addVisitor ($ visitor );
7676
7777 $ traverser ->traverse ($ ast );
@@ -98,12 +98,12 @@ public function check(ExerciseInterface $exercise, Input $input) : ResultInterfa
9898 /**
9999 * This check can run on any exercise type.
100100 */
101- public function canRun (ExerciseType $ exerciseType ) : bool
101+ public function canRun (ExerciseType $ exerciseType ): bool
102102 {
103103 return in_array ($ exerciseType ->getValue (), [ExerciseType::CGI , ExerciseType::CLI ], true );
104104 }
105105
106- public function getExerciseInterface () : string
106+ public function getExerciseInterface (): string
107107 {
108108 return FunctionRequirementsExerciseCheck::class;
109109 }
@@ -113,7 +113,7 @@ public function getExerciseInterface() : string
113113 * output, but do it in a way that was not correct for the task. This way the student can see the program works
114114 * but missed some requirements.
115115 */
116- public function getPosition () : string
116+ public function getPosition (): string
117117 {
118118 return SimpleCheckInterface::CHECK_AFTER ;
119119 }
0 commit comments