This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree 2 files changed +3
-17
lines changed
src/ZendDiagnostics/Check
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:
22
22
* [ PhpFlag] ( #phpflag ) - make sure that given PHP flag (feature) is turned on or off.
23
23
* [ ProcessRunning] ( #processrunning ) - check if a process with given name or ID is currently running,
24
24
* [ 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.
26
26
27
27
## Using diagnostics with Zend Framework 2
28
28
@@ -459,20 +459,6 @@ $check = new PhpFlag(array(
459
459
), false);
460
460
````
461
461
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
-
476
462
### ProcessRunning
477
463
478
464
Check 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');
504
490
````
505
491
506
492
507
- ### SteamWrapperExists
493
+ ### StreamWrapperExists
508
494
509
495
Check if a given stream wrapper (or an array of wrappers) is available. For example:
510
496
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function check()
83
83
return new Failure (trim ($ failureString ), array ('nonDirs ' => $ nonDirs , 'unreadable ' => $ unreadable ));
84
84
} else {
85
85
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. ' ,
87
87
$ this ->dir
88
88
);
89
89
}
You can’t perform that action at this time.
0 commit comments