@@ -1,8 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // if library is in dev environement with its own vendor, include its autoload |
| 4 | -if(file_exists(__DIR__ . '/vendor')) |
|
| 4 | +if(file_exists(__DIR__ . '/vendor')) { |
|
| 5 | 5 | require_once __DIR__ . '/vendor/autoload.php'; |
| 6 | +} |
|
| 6 | 7 | // if library is in vendor of another project, include the global autolaod |
| 7 | -else |
|
| 8 | +else { |
|
| 8 | 9 | require_once __DIR__ . '/../../autoload.php'; |
| 10 | +} |
|
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // if library is in dev environement with its own vendor, include its autoload |
| 4 | -if(file_exists(__DIR__ . '/vendor')) |
|
| 5 | - require_once __DIR__ . '/vendor/autoload.php'; |
|
| 4 | +if (file_exists(__DIR__.'/vendor')) |
|
| 5 | + require_once __DIR__.'/vendor/autoload.php'; |
|
| 6 | 6 | // if library is in vendor of another project, include the global autolaod |
| 7 | 7 | else |
| 8 | - require_once __DIR__ . '/../../autoload.php'; |
|
| 8 | + require_once __DIR__.'/../../autoload.php'; |
|
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function generate() |
| 21 | 21 | { |
| 22 | - return new static(bin2hex(random_bytes(static::getRequiredLength()/2))); |
|
| 22 | + return new static(bin2hex(random_bytes(static::getRequiredLength() / 2))); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public static function isValid($value) |