Skip to content

Commit c05aa4f

Browse files
committed
Replace submission with solution
1 parent f8a4512 commit c05aa4f

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

src/Check/CodeParseCheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public function getName()
4646
}
4747

4848
/**
49-
* This check grabs the contents of the student's submission and
49+
* This check grabs the contents of the student's solution and
5050
* attempts to parse it with `nikic/php-parser`. If any exceptions are thrown
5151
* by the parser, it is treated as a failure.
5252
*
5353
* @param ExerciseInterface $exercise The exercise to check against.
54-
* @param string $fileName The absolute path to the student's submission.
54+
* @param string $fileName The absolute path to the student's solution.
5555
* @return ResultInterface The result of the check.
5656
*/
5757
public function check(ExerciseInterface $exercise, $fileName)
@@ -88,7 +88,7 @@ public function getExerciseInterface()
8888
}
8989

9090
/**
91-
* This check should be run before executing the submission, as, if it cannot be parsed
91+
* This check should be run before executing the student's solution, as, if it cannot be parsed
9292
* it probably cannot be executed.
9393
*
9494
* @return string

src/Check/ComposerCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getName()
3535
* a success is returned.
3636
*
3737
* @param ExerciseInterface $exercise The exercise to check against.
38-
* @param string $fileName The absolute path to the student's submission.
38+
* @param string $fileName The absolute path to the student's solution.
3939
* @return ResultInterface The result of the check.
4040
*/
4141
public function check(ExerciseInterface $exercise, $fileName)

src/Check/FileExistsCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getName()
3030
* Simply check that the file exists.
3131
*
3232
* @param ExerciseInterface $exercise The exercise to check against.
33-
* @param string $fileName The absolute path to the student's submission.
33+
* @param string $fileName The absolute path to the student's solution.
3434
* @return ResultInterface The result of the check.
3535
*/
3636
public function check(ExerciseInterface $exercise, $fileName)

src/Check/FunctionRequirementsCheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use PhpSchool\PhpWorkshop\Result\Success;
1717

1818
/**
19-
* This check verifies that the students submission contains usages of some required functions
19+
* This check verifies that the student's solution contains usages of some required functions
2020
* and also does not use certain functions (specified by the exercise).
2121
*
2222
* @package PhpSchool\PhpWorkshop\Check
@@ -54,7 +54,7 @@ public function getName()
5454
* are pulled from the exercise.
5555
*
5656
* @param ExerciseInterface $exercise The exercise to check against.
57-
* @param string $fileName The absolute path to the student's submission.
57+
* @param string $fileName The absolute path to the student's solution.
5858
* @return ResultInterface The result of the check.
5959
*/
6060
public function check(ExerciseInterface $exercise, $fileName)
@@ -119,7 +119,7 @@ public function getExerciseInterface()
119119
}
120120

121121
/**
122-
* This is performed after executing the student's submission because the submission may produce the correct
122+
* This is performed after executing the student's solution because the solution may produce the correct
123123
* output, but do it in a way that was not correct for the task. This way the student can see the program works
124124
* but missed some requirements.
125125
*

src/Check/PhpLintCheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public function getName()
2727
}
2828

2929
/**
30-
* Simply check the students submission can be linted with `php -l`
30+
* Simply check the student's solution can be linted with `php -l`
3131
*
3232
* @param ExerciseInterface $exercise The exercise to check against.
33-
* @param string $fileName The absolute path to the student's submission.
33+
* @param string $fileName The absolute path to the student's solution.
3434
* @return ResultInterface The result of the check.
3535
*/
3636
public function check(ExerciseInterface $exercise, $fileName)
@@ -65,7 +65,7 @@ public function getExerciseInterface()
6565
}
6666

6767
/**
68-
* This check should be run before executing the submission, as, if it cannot be linted
68+
* This check should be run before executing the student's solution, as, if it cannot be linted
6969
* it probably cannot be executed.
7070
*
7171
* @return string

src/Check/SimpleCheckInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function canRun(ExerciseType $exerciseType);
4545
* should be returned.
4646
*
4747
* @param ExerciseInterface $exercise The exercise to check against.
48-
* @param string $fileName The absolute path to the student's submission.
48+
* @param string $fileName The absolute path to the student's solution.
4949
* @return ResultInterface The result of the check.
5050
*/
5151
public function check(ExerciseInterface $exercise, $fileName);

src/Exercise/SubmissionPatchable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* This interface, when implemented by an exercise, tells the workshop framework that the exercise
9-
* would like to patch the student's submission. This might include adding code to the top of the file like
9+
* would like to patch the student's solution. This might include adding code to the top of the file like
1010
* injecting variables. The exercise should implement the `getPatch()` method and it should return a `Patch`.
1111
* See [Patching Exercise Submissions](https://www.phpschool.io/docs/reference/patching-exercise-solutions) for
1212
* more details.

src/ExerciseCheck/SelfCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface SelfCheck
2121
* The method is passed the absolute file path to the student's solution and should return a result
2222
* object which indicates the success or not of the check.
2323
*
24-
* @param string $fileName The absolute path to the student's submission.
24+
* @param string $fileName The absolute path to the student's solution.
2525
* @return ResultInterface The result of the check.
2626
*/
2727
public function check($fileName);

0 commit comments

Comments
 (0)