This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed
src/ZendDiagnostics/Check Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ It currently ships with the following Diagnostic Checks:
2222 * [ PhpFlag] ( #phpflag ) - make sure that given PHP flag (feature) is turned on or off.
2323 * [ ProcessRunning] ( #processrunning ) - check if a process with given name or ID is currently running,
2424 * [ SecurityAdvisory] ( #securityadvisory ) - check installed composer dependencies against SensioLabs SA database,
25- * [ SteamWrapperExists ] ( #streamwrapperexists ) - make sure given stream wrapper is available.
25+ * [ StreamWrapperExists ] ( #streamwrapperexists ) - make sure given stream wrapper is available.
2626
2727## Using diagnostics with Zend Framework 2
2828
@@ -459,20 +459,6 @@ $check = new PhpFlag(array(
459459), false);
460460````
461461
462- ### PhpVersion
463-
464- Check if current PHP version matches the given requirement. The test accepts 2 parameters - baseline version and
465- optional [ comparison operator] ( http://www.php.net/manual/en/function.version-compare.php ) .
466-
467-
468- ```` php
469- <?php
470- use ZendDiagnostics\Check\PhpVersion;
471-
472- $require545orNewer = new PhpVersion('5.4.5');
473- $rejectBetaVersions = new PhpVersion('5.5.0', '<');
474- ````
475-
476462### ProcessRunning
477463
478464Check if a given unix process is running. This check supports PIDs and process names.
@@ -504,7 +490,7 @@ $security = new SecurityAdvisory('/var/www/project/composer.lock');
504490````
505491
506492
507- ### SteamWrapperExists
493+ ### StreamWrapperExists
508494
509495Check if a given stream wrapper (or an array of wrappers) is available. For example:
510496
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function check()
8383 return new Failure (trim ($ failureString ), array ('nonDirs ' => $ nonDirs , 'unreadable ' => $ unreadable ));
8484 } else {
8585 return new Success (
86- count ($ this ->dir ) > 1 ? 'All paths are readable directories. ' : 'The path is a a readable directory. ' ,
86+ count ($ this ->dir ) > 1 ? 'All paths are readable directories. ' : 'The path is a readable directory. ' ,
8787 $ this ->dir
8888 );
8989 }
You can’t perform that action at this time.
0 commit comments