generated from ergebnis/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move the `popen` function check instead of relying on the `CpuCoreCounter`'s `proc_open` check. - Return `null` directly if is not on Windows (hence the command will not work); this was previously done in `CpuCoreCounter` but it more belongs to the finder as it's really a micro-optimization since the constant defined check is faster than doing `popen` - Refactor `WindowsWmicFinder::find()` for better readability - Handle potential `fgets` `false` value returned
- Loading branch information
Showing
2 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters