@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function getErrorsAsStrings() |
60 | 60 | { |
61 | - return array_map(function (ValidationError $error) { |
|
61 | + return array_map(function(ValidationError $error) { |
|
62 | 62 | return (string) $error; |
63 | 63 | }, $this->errors); |
64 | 64 | } |
@@ -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 | +} |
@@ -89,7 +89,7 @@ |
||
89 | 89 | } elseif (is_array($resource)) { |
90 | 90 | $result['Resources'][] = $resource; |
91 | 91 | } else { |
92 | - throw new \InvalidArgumentException('Resource must implement SerializableInterface or already be serialized to array'); |
|
92 | + throw new \InvalidArgumentException('Resource must implement SerializableInterface or already be serialized to array'); |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 |