@@ -66,10 +66,10 @@ |
||
66 | 66 | Log::debug(sprintf('Now in %s', __METHOD__)); |
67 | 67 | try { |
68 | 68 | $data = $this->authenticatedPost(); |
69 | - } catch (ApiException|GuzzleException $e) { |
|
69 | + } catch (ApiException | GuzzleException $e) { |
|
70 | 70 | throw new ApiHttpException($e->getMessage()); |
71 | 71 | } |
72 | - if(isset($data['message']) && self::VALIDATION_ERROR_MSG === $data['message']) { |
|
72 | + if (isset($data['message']) && self::VALIDATION_ERROR_MSG === $data['message']) { |
|
73 | 73 | return new ValidationErrorResponse($data['errors']); |
74 | 74 | } |
75 | 75 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | { |
58 | 58 | try { |
59 | 59 | $data = $this->authenticatedGet(); |
60 | - } catch (ApiException|GuzzleException $e) { |
|
60 | + } catch (ApiException | GuzzleException $e) { |
|
61 | 61 | throw new ApiHttpException($e->getMessage()); |
62 | 62 | } |
63 | 63 | return new SystemInformationResponse($data['data'] ?? []); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $this->setParameters($parameters); |
69 | 69 | try { |
70 | 70 | $data = $this->authenticatedGet(); |
71 | - } catch (ApiException|GuzzleException $e) { |
|
71 | + } catch (ApiException | GuzzleException $e) { |
|
72 | 72 | throw new ApiHttpException($e->getMessage()); |
73 | 73 | } |
74 | 74 | $collectedRows[] = $data['data']; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | try { |
68 | 68 | $data = $this->authenticatedGet(); |
69 | - } catch (ApiException|GuzzleException $e) { |
|
69 | + } catch (ApiException | GuzzleException $e) { |
|
70 | 70 | throw new ApiHttpException($e->getMessage()); |
71 | 71 | } |
72 | 72 | $collectedRows[] = $data['data']; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | try { |
68 | 68 | $data = $this->authenticatedGet(); |
69 | - } catch (ApiException|GuzzleException $e) { |
|
69 | + } catch (ApiException | GuzzleException $e) { |
|
70 | 70 | throw new ApiHttpException($e->getMessage()); |
71 | 71 | } |
72 | 72 | $collectedRows[] = $data['data']; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | try { |
68 | 68 | $data = $this->authenticatedGet(); |
69 | - } catch (ApiException|GuzzleException $e) { |
|
69 | + } catch (ApiException | GuzzleException $e) { |
|
70 | 70 | throw new ApiHttpException($e->getMessage()); |
71 | 71 | } |
72 | 72 | $collectedRows[] = $data['data']; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | { |
62 | 62 | try { |
63 | 63 | $data = $this->authenticatedGet(); |
64 | - } catch (ApiException|GuzzleException $e) { |
|
64 | + } catch (ApiException | GuzzleException $e) { |
|
65 | 65 | throw new ApiHttpException($e->getMessage()); |
66 | 66 | } |
67 | 67 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | { |
62 | 62 | try { |
63 | 63 | $data = $this->authenticatedGet(); |
64 | - } catch (ApiException|GuzzleException $e) { |
|
64 | + } catch (ApiException | GuzzleException $e) { |
|
65 | 65 | throw new ApiHttpException($e->getMessage()); |
66 | 66 | } |
67 | 67 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $json = file_get_contents($file); |
43 | 43 | try { |
44 | 44 | $configuration = json_decode($json, true, 512, JSON_THROW_ON_ERROR); |
45 | - } catch (Exception|JsonException $e) { |
|
45 | + } catch (Exception | JsonException $e) { |
|
46 | 46 | $message = sprintf('The importer can\'t import: could not decode the JSON in the config file: %s', $e->getMessage()); |
47 | 47 | Log::error($message); |
48 | 48 |