Skip to content

Docblock cleanup #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Command/HelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use PhpSchool\PhpWorkshop\Output\OutputInterface;

/**
* Class HelpCommand
* @author Aydin Hassan <[email protected]>
* A command to display help on running the workshop.
*/
class HelpCommand
{
Expand Down
3 changes: 3 additions & 0 deletions src/Command/MenuCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use PhpSchool\CliMenu\CliMenu;

/**
* A command to open the app menu
*/
class MenuCommand
{
/**
Expand Down
4 changes: 3 additions & 1 deletion src/Command/MenuCommandInvoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

use PhpSchool\CliMenu\CliMenu;

/**
* A helper to expose commands as callables for menu items
*/
class MenuCommandInvoker
{

/**
* @var callable
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Command/PrintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
use PhpSchool\PhpWorkshop\UserState;

/**
* Class PrintCommand
* @author Aydin Hassan <[email protected]>
* A command to print the exercise's readme
*/
class PrintCommand
{
Expand Down
4 changes: 3 additions & 1 deletion src/Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
use PhpSchool\PhpWorkshop\Input\Input;
use PhpSchool\PhpWorkshop\Output\OutputInterface;
use PhpSchool\PhpWorkshop\UserState;
use PhpSchool\PhpWorkshop\UserStateSerializer;

/**
* A command to run the users solution
*/
class RunCommand
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Command/VerifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use PhpSchool\PhpWorkshop\UserState;
use PhpSchool\PhpWorkshop\UserStateSerializer;

/**
* A command to verify the users solution
*/
class VerifyCommand
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/CommandArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace PhpSchool\PhpWorkshop;

/**
* @author Aydin Hassan <[email protected]>
* Command argument definition
*/
class CommandArgument
{
Expand Down
2 changes: 0 additions & 2 deletions src/ComposerUtil/LockFileParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Utility for reading installed package versions from a `composer.lock` file.
*
* @author Aydin Hassan <[email protected]>
*/
class LockFileParser
{
Expand Down
1 change: 0 additions & 1 deletion src/Event/CgiExecuteEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace PhpSchool\PhpWorkshop\Event;

use Assert\Assertion;
use Psr\Http\Message\RequestInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Event/ContainerListenerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace PhpSchool\PhpWorkshop\Event;

/**
* @author Aydin Hassan <[email protected]>
* A utility to reference listeners in the container
*/
class ContainerListenerHelper
{
Expand Down
2 changes: 1 addition & 1 deletion src/Event/ExerciseRunnerEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use PhpSchool\PhpWorkshop\Input\Input;

/**
* @author Aydin Hassan <[email protected]>
* An event which is dispatched during exercise running
*/
class ExerciseRunnerEvent extends Event
{
Expand Down
1 change: 0 additions & 1 deletion src/Exception/SolutionExecutionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/**
* Represents the situation where a reference solution cannot be executed (this should only really happen during
* workshop development).
* @author Aydin Hassan <[email protected]>
*/
class SolutionExecutionException extends RuntimeException
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exercise/CustomVerifyingExercise.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PhpSchool\PhpWorkshop\Result\ResultInterface;

/**
* @author Aydin Hassan <[email protected]>
* This interface describes the methods for a CUSTOM type exercise.
*/
interface CustomVerifyingExercise
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exercise/ProvidesSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PhpSchool\PhpWorkshop\Solution\SolutionInterface;

/**
* @author Aydin Hassan <[email protected]>
* Exercises can implement this method if they provide solutions
*/
interface ProvidesSolution
{
Expand Down
2 changes: 0 additions & 2 deletions src/ExerciseRunner/CgiRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
/**
* The `CGI` runner. This runner executes solutions as if they were behind a web-server. They populate the `$_SERVER`,
* `$_GET` & `$_POST` super globals with information based of the request objects returned from the exercise.
*
* @author Aydin Hassan <[email protected]>
*/
class CgiRunner implements ExerciseRunnerInterface
{
Expand Down
2 changes: 0 additions & 2 deletions src/ExerciseRunner/CliRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
* ```bash
* php my-solution.php arg1 arg2 arg3
* ```
*
* @author Aydin Hassan <[email protected]>
*/
class CliRunner implements ExerciseRunnerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ExerciseRunner/CustomVerifyingRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use PhpSchool\PhpWorkshop\Result\ResultInterface;

/**
* @author Aydin Hassan <[email protected]>
* The `CUSTOM` runner. This runner delegates to the exercise for verifying.
*/
class CustomVerifyingRunner implements ExerciseRunnerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ExerciseRunner/Factory/CgiRunnerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use PhpSchool\PhpWorkshop\Utils\RequestRenderer;

/**
* @author Aydin Hassan <[email protected]>
* Factory class for `CgiRunner`
*/
class CgiRunnerFactory implements ExerciseRunnerFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ExerciseRunner/Factory/CliRunnerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use PhpSchool\PhpWorkshop\ExerciseRunner\ExerciseRunnerInterface;

/**
* @author Aydin Hassan <[email protected]>
* Factory class for `CliRunner`
*/
class CliRunnerFactory implements ExerciseRunnerFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PhpSchool\PhpWorkshop\ExerciseRunner\ExerciseRunnerInterface;

/**
* @author Aydin Hassan <[email protected]>
* Factory class for `CustomVerifyingRunner`
*/
class CustomVerifyingRunnerFactory implements ExerciseRunnerFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PhpSchool\PhpWorkshop\ExerciseRunner\ExerciseRunnerInterface;

/**
* @author Aydin Hassan <[email protected]>
* Exercise runner factory interface
*/
interface ExerciseRunnerFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ExerciseRunner/RunnerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use PhpSchool\PhpWorkshop\ExerciseRunner\Factory\ExerciseRunnerFactoryInterface;

/**
* @author Aydin Hassan <[email protected]>
* Allow factories to configure input and fetch the correct runner for the exercise
*/
class RunnerManager
{
Expand Down
3 changes: 3 additions & 0 deletions src/Factory/EventDispatcherFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use PhpSchool\PhpWorkshop\ResultAggregator;
use PhpSchool\PhpWorkshop\Utils\Collection;

/**
* Create an EventDispatcher populating with listeners from the config
*/
class EventDispatcherFactory
{

Expand Down
3 changes: 1 addition & 2 deletions src/Factory/MarkdownCliRendererFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
use AydinHassan\CliMdRenderer\CliRenderer;

/**
* Class MarkdownCliRendererFactory
* @author Aydin Hassan <[email protected]>
* Factory for CliRenderer
*/
class MarkdownCliRendererFactory
{
Expand Down
3 changes: 1 addition & 2 deletions src/Factory/MenuFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
use PhpSchool\PhpWorkshop\WorkshopType;

/**
* Class MenuFactory
* @author Aydin Hassan <[email protected]>
* Configure the menu
*/
class MenuFactory
{
Expand Down
3 changes: 3 additions & 0 deletions src/Factory/ResultRendererFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use PhpSchool\PhpWorkshop\Result\ResultInterface;
use PhpSchool\PhpWorkshop\ResultRenderer\ResultRendererInterface;

/**
* Manages and creates renderers for results
*/
class ResultRendererFactory
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Input/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use PhpSchool\PhpWorkshop\Exception\InvalidArgumentException;

/**
* @author Aydin Hassan <[email protected]>
* Container for command arguments
*/
class Input
{
Expand Down
3 changes: 0 additions & 3 deletions src/Listener/CheckExerciseAssignedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
use PhpSchool\PhpWorkshop\Event\Event;
use PhpSchool\PhpWorkshop\UserState;

/**
* @author Aydin Hassan <[email protected]>
*/
class CheckExerciseAssignedListener
{
/**
Expand Down
4 changes: 3 additions & 1 deletion src/Listener/CodePatchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use PhpSchool\PhpWorkshop\Input\Input;
use RuntimeException;

/**
* Listener which patches student's solutions
*/
class CodePatchListener
{
/**
Expand All @@ -21,7 +24,6 @@ class CodePatchListener
private $originalCode;

/**
* CodePatchListener constructor.
* @param CodePatcher $codePatcher
*/
public function __construct(CodePatcher $codePatcher)
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/ConfigureCommandListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PhpSchool\PhpWorkshop\UserState;

/**
* @author Aydin Hassan <[email protected]>
* Listener to allow runners to modify command arguments
*/
class ConfigureCommandListener
{
Expand Down
4 changes: 1 addition & 3 deletions src/Listener/PrepareSolutionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

namespace PhpSchool\PhpWorkshop\Listener;

use PhpSchool\PhpWorkshop\Event\Event;
use PhpSchool\PhpWorkshop\Event\ExerciseRunnerEvent;
use RuntimeException;
use Symfony\Component\Process\Process;

/**
* Class PrepareSolutionListener
* @author Aydin Hassan <[email protected]>
* Listener to install composer deps for an exercise solution
*/
class PrepareSolutionListener
{
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/RealPathListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PhpSchool\PhpWorkshop\UserState;

/**
* @author Aydin Hassan <[email protected]>
* Replace program arg with absolute path
*/
class RealPathListener
{
Expand Down
3 changes: 3 additions & 0 deletions src/Listener/SelfCheckListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use PhpSchool\PhpWorkshop\ExerciseCheck\SelfCheck;
use PhpSchool\PhpWorkshop\ResultAggregator;

/**
* Listener to handle exercises which inject their own checks
*/
class SelfCheckListener
{
/**
Expand Down
4 changes: 3 additions & 1 deletion src/MenuItem/ResetProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
namespace PhpSchool\PhpWorkshop\MenuItem;

use PhpSchool\CliMenu\CliMenu;
use PhpSchool\PhpWorkshop\Output\OutputInterface;
use PhpSchool\PhpWorkshop\UserState;
use PhpSchool\PhpWorkshop\UserStateSerializer;

/**
* Menu action to reset the workshop progress
*/
class ResetProgress
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/NodeVisitor/FunctionVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use PhpParser\Node\Expr\FuncCall;
use PhpParser\NodeVisitorAbstract;

/**
* AST visitor to look for required and missing function requirements
*/
class FunctionVisitor extends NodeVisitorAbstract
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Output/OutputInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Psr\Http\Message\RequestInterface;

/**
* Output interface
*/
interface OutputInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Output/StdOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Colors\Color;
use PhpSchool\Terminal\Terminal;

/**
* Console output interface
*/
class StdOutput implements OutputInterface
{
/**
Expand Down
2 changes: 0 additions & 2 deletions src/Result/Cgi/CgiResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
/**
* A result which encompasses all the results for each individual request made during
* the CGI verification process.
*
* @author Aydin Hassan <[email protected]>
*/
class CgiResult implements ResultGroupInterface, IteratorAggregate
{
Expand Down
2 changes: 0 additions & 2 deletions src/Result/Cgi/FailureInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
/**
* This interface represents a failure. Any result implementing this interface will
* be treated as a failure.
*
* @author Aydin Hassan <[email protected]>
*/
interface FailureInterface extends ResultInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Result/Cgi/GenericFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Psr\Http\Message\RequestInterface;

/**
* @author Aydin Hassan <[email protected]>
* Generic CGI failure.
*/
class GenericFailure extends Failure implements FailureInterface
{
Expand Down
Loading