@@ -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'; |
|
@@ -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 | +} |
|
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | return RectorConfig::configure() |
| 8 | 8 | ->withPaths([ |
| 9 | - __DIR__ . '/src', |
|
| 10 | - __DIR__ . '/tests', |
|
| 9 | + __DIR__.'/src', |
|
| 10 | + __DIR__.'/tests', |
|
| 11 | 11 | ]) |
| 12 | 12 | ->withPhpSets( |
| 13 | 13 | php83: true |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param Attribute[] $attributes |
| 54 | 54 | * @param string $parentPath |
| 55 | 55 | */ |
| 56 | - private function validateByAttributes(array $object, $schemaId, $attributes, array $ignoreAttributes, ValidationResult $validationResult, int|string|null $parentPath): void |
|
| 56 | + private function validateByAttributes(array $object, $schemaId, $attributes, array $ignoreAttributes, ValidationResult $validationResult, int | string | null $parentPath): void |
|
| 57 | 57 | { |
| 58 | 58 | foreach ($object as $propertyName => $value) { |
| 59 | 59 | if ((0 === $parentPath || ('' === $parentPath || '0' === $parentPath) || null === $parentPath) && isset(self::$commonAttributes[$propertyName])) { |