Passed
Branch master (1d5b30)
by John
02:18
created
examples/PasswordHelperExample.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../vendor/autoload.php';
3
+require_once __DIR__.'/../vendor/autoload.php';
4 4
 
5 5
 use PasswordHelper\Generator;
6 6
 use PasswordHelper\Policy;
@@ -31,20 +31,20 @@  discard block
 block discarded – undo
31 31
 
32 32
 // Generate a password
33 33
 $password = $generator->generate();
34
-echo "Generated Password: " . $password . PHP_EOL;
34
+echo "Generated Password: ".$password.PHP_EOL;
35 35
 
36 36
 // Validate the password
37 37
 $isValid = $validator->isValidPassword($password);
38
-echo "Is Valid: " . ($isValid ? "Yes" : "No") . PHP_EOL;
38
+echo "Is Valid: ".($isValid ? "Yes" : "No").PHP_EOL;
39 39
 
40 40
 // Check the password strength
41 41
 $strength = $strengthChecker->checkStrength($password);
42
-echo "Password Strength: " . $strength . PHP_EOL;
42
+echo "Password Strength: ".$strength.PHP_EOL;
43 43
 
44 44
 // Example of a weak password
45 45
 $weakPassword = "password123";
46 46
 $isWeakValid = $validator->isValidPassword($weakPassword);
47 47
 $weakStrength = $strengthChecker->checkStrength($weakPassword);
48
-echo "Weak Password: " . $weakPassword . PHP_EOL;
49
-echo "Is Valid: " . ($isWeakValid ? "Yes" : "No") . PHP_EOL;
50
-echo "Password Strength: " . $weakStrength . PHP_EOL;
48
+echo "Weak Password: ".$weakPassword.PHP_EOL;
49
+echo "Is Valid: ".($isWeakValid ? "Yes" : "No").PHP_EOL;
50
+echo "Password Strength: ".$weakStrength.PHP_EOL;
Please login to merge, or discard this patch.