Skip to content

Commit

Permalink
nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jul 8, 2018
1 parent f9a96e9 commit 9f68cbf
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 16 deletions.
3 changes: 3 additions & 0 deletions src/Checks/AppKeyIsSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class AppKeyIsSet implements Check
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -17,6 +18,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -27,6 +29,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
4 changes: 3 additions & 1 deletion src/Checks/ComposerWithDevDependenciesIsUpToDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace BeyondCode\SelfDiagnosis\Checks;

use BeyondCode\SelfDiagnosis\Composer;
use BeyondCode\SelfDiagnosis\Checks\Check;

class ComposerWithDevDependenciesIsUpToDate implements Check
{
Expand All @@ -22,6 +21,7 @@ public function __construct(Composer $composer)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -32,6 +32,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -44,6 +45,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
4 changes: 3 additions & 1 deletion src/Checks/ComposerWithoutDevDependenciesIsUpToDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace BeyondCode\SelfDiagnosis\Checks;

use BeyondCode\SelfDiagnosis\Composer;
use BeyondCode\SelfDiagnosis\Checks\Check;

class ComposerWithoutDevDependenciesIsUpToDate implements Check
{
Expand All @@ -22,6 +21,7 @@ public function __construct(Composer $composer)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -32,6 +32,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -44,6 +45,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
5 changes: 3 additions & 2 deletions src/Checks/ConfigurationIsCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

namespace BeyondCode\SelfDiagnosis\Checks;

use BeyondCode\SelfDiagnosis\Checks\Check;

class ConfigurationIsCached implements Check
{

/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -20,6 +19,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -30,6 +30,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
5 changes: 3 additions & 2 deletions src/Checks/ConfigurationIsNotCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

namespace BeyondCode\SelfDiagnosis\Checks;

use BeyondCode\SelfDiagnosis\Checks\Check;

class ConfigurationIsNotCached implements Check
{

/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -20,6 +19,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -30,6 +30,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
3 changes: 3 additions & 0 deletions src/Checks/CorrectPhpVersionIsInstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function __construct(Filesystem $filesystem)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -27,6 +28,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
* @return bool
*/
Expand All @@ -38,6 +40,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
* @return string
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Checks/DatabaseCanBeAccessed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class DatabaseCanBeAccessed implements Check
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -21,6 +22,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -38,6 +40,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
5 changes: 3 additions & 2 deletions src/Checks/DebugModeIsNotEnabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

namespace BeyondCode\SelfDiagnosis\Checks;

use BeyondCode\SelfDiagnosis\Checks\Check;

class DebugModeIsNotEnabled implements Check
{

/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -20,6 +19,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -30,6 +30,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
5 changes: 4 additions & 1 deletion src/Checks/DirectoriesHaveCorrectPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace BeyondCode\SelfDiagnosis\Checks;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Collection;
use Illuminate\Filesystem\Filesystem;

class DirectoriesHaveCorrectPermissions implements Check
{
Expand All @@ -25,6 +25,7 @@ public function __construct(Filesystem $filesystem)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -35,6 +36,7 @@ public function name(array $config): string
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand All @@ -47,6 +49,7 @@ public function message(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand Down
3 changes: 3 additions & 0 deletions src/Checks/EnvFileExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct(Filesystem $filesystem)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -28,6 +29,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -38,6 +40,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
4 changes: 3 additions & 1 deletion src/Checks/ExampleEnvironmentVariablesAreSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Dotenv\Dotenv;
use Illuminate\Support\Collection;
use Illuminate\Filesystem\Filesystem;

class ExampleEnvironmentVariablesAreSet implements Check
{
Expand All @@ -14,6 +13,7 @@ class ExampleEnvironmentVariablesAreSet implements Check
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -24,6 +24,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -43,6 +44,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
3 changes: 3 additions & 0 deletions src/Checks/MigrationsAreUpToDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class MigrationsAreUpToDate implements Check
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -21,6 +22,7 @@ public function name(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand All @@ -38,6 +40,7 @@ public function check(array $config): bool
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand Down
3 changes: 3 additions & 0 deletions src/Checks/PhpExtensionsAreInstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(Filesystem $filesystem)
/**
* The name of the check.
*
* @param array $config
* @return string
*/
public function name(array $config): string
Expand All @@ -34,6 +35,7 @@ public function name(array $config): string
/**
* The error message to display in case the check does not pass.
*
* @param array $config
* @return string
*/
public function message(array $config): string
Expand All @@ -46,6 +48,7 @@ public function message(array $config): string
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $config): bool
Expand Down
Loading

0 comments on commit 9f68cbf

Please sign in to comment.