Skip to content

Commit 3022ffc

Browse files
committed
fix spacing for psr12
1 parent 4c8852a commit 3022ffc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/AbstractFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ abstract class AbstractFunction extends JsonSerializable implements IFunction
5757
public function __construct(array $array)
5858
{
5959
$this->reset();
60-
if(!array_key_exists(self::JSON_NAME, $array) || !is_string($array[self::JSON_NAME])) {
60+
if (!array_key_exists(self::JSON_NAME, $array) || !is_string($array[self::JSON_NAME])) {
6161
throw new InvalidArgumentException(
6262
sprintf('Missing %s "%s"', static::class, self::JSON_NAME)
6363
);
@@ -360,7 +360,7 @@ public static function jsonDecode(string $json): IFunction
360360
* Use the constructor of the implementing class.
361361
*/
362362
return new static($array);
363-
} catch (InvalidArgumentException|JsonException $exception) {
363+
} catch (InvalidArgumentException | JsonException $exception) {
364364
throw new InvalidArgumentException(
365365
sprintf('Invalid JSON: Expected JSON encoded %s!', static::class),
366366
0,

src/Api/RemoteApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static function jsonDecode(string $json): IJsonSerializable
128128
throw new InvalidArgumentException('JSON did not decode into an array!');
129129
}
130130
return new self($array);
131-
} catch (InvalidArgumentException|JsonException $exception) {
131+
} catch (InvalidArgumentException | JsonException $exception) {
132132
throw new InvalidArgumentException(
133133
sprintf('Invalid JSON: Expected JSON encoded %s string!', self::class),
134134
0,

src/Config/Traits/JsonDecodeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function jsonDecode(string $json): IConfiguration
3434
if (!is_array($config)) {
3535
throw new InvalidArgumentException('JSON did not decode into an array!');
3636
}
37-
} catch (InvalidArgumentException|JsonException $exception) {
37+
} catch (InvalidArgumentException | JsonException $exception) {
3838
throw new InvalidArgumentException(
3939
sprintf('Invalid JSON: Expected JSON encoded %s!', static::class),
4040
0,

src/Util/JsonSerializable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static function jsonDecode(string $json): IJsonSerializable
172172
* Use the constructor of the implementing class.
173173
*/
174174
return new static($array);
175-
} catch (InvalidArgumentException|JsonException $exception) {
175+
} catch (InvalidArgumentException | JsonException $exception) {
176176
throw new InvalidArgumentException(
177177
sprintf('Invalid JSON: Expected JSON encoded %s!', static::class),
178178
0,

0 commit comments

Comments
 (0)