| 1 | <?php |
||
| 14 | final class GihubPublishingProcess |
||
| 15 | { |
||
| 16 | public function setupTravisIdentityToGit() |
||
| 23 | |||
| 24 | 2 | public function pushDirectoryContentToRepository(string $outputDirectory, string $githubRepository) |
|
| 39 | |||
| 40 | 1 | private function runScript(string $script, string $workingDirectory = null) |
|
| 49 | |||
| 50 | 2 | private function ensureDirectoryExists(string $directory) |
|
| 58 | } |
||
| 59 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: