@@ -80,11 +80,11 @@ |
||
80 | 80 | |
81 | 81 | return new BaseLine($historyFactory, $analysisResults, $resultsParser, $historyMarker); |
82 | 82 | } catch ( |
83 | - ArrayParseException| |
|
84 | - InvalidResultsParserException| |
|
85 | - InvalidHistoryFactoryException| |
|
86 | - InvalidHistoryMarkerException| |
|
87 | - InvalidContentTypeException| |
|
83 | + ArrayParseException | |
|
84 | + InvalidResultsParserException | |
|
85 | + InvalidHistoryFactoryException | |
|
86 | + InvalidHistoryMarkerException | |
|
87 | + InvalidContentTypeException | |
|
88 | 88 | ParseAtLocationException $e) { |
89 | 89 | throw BaseLineImportException::fromException($fileName, $e); |
90 | 90 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | ): AnalysisResults { |
21 | 21 | try { |
22 | 22 | return $resultsParser->convertFromString($analysisResultsAsString, $projectRoot); |
23 | - } catch (InvalidContentTypeException|ParseAtLocationException $e) { |
|
23 | + } catch (InvalidContentTypeException | ParseAtLocationException $e) { |
|
24 | 24 | throw AnalysisResultsImportException::fromException($resultsParser->getIdentifier(), $e); |
25 | 25 | } |
26 | 26 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ArrayUtils::assertArray($analysisResultAsArray); |
63 | 63 | $analysisResult = $this->convertAnalysisResultFromArray($analysisResultAsArray, $projectRoot); |
64 | 64 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
65 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
65 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
66 | 66 | throw ParseAtLocationException::issueAtPosition($e, $resultsCount); |
67 | 67 | } |
68 | 68 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ArrayUtils::assertArray($analysisResultAsArray); |
63 | 63 | $analysisResult = $this->convertAnalysisResultFromArray($analysisResultAsArray, $projectRoot); |
64 | 64 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
65 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
65 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
66 | 66 | throw ParseAtLocationException::issueAtPosition($e, $resultsCount); |
67 | 67 | } |
68 | 68 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $analysisResult = $this->convertAnalysisResultFromArray($message, $absoluteFileName, $projectRoot); |
84 | 84 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
85 | 85 | } |
86 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
86 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
87 | 87 | throw ParseAtLocationException::issueParsing($e, "Result [$absoluteFileNameAsString]"); |
88 | 88 | } |
89 | 89 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $analysisResult = $this->convertAnalysisResultFromArray($analysisResultAsArray, $projectRoot); |
56 | 56 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
57 | 57 | } |
58 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
58 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
59 | 59 | throw ParseAtLocationException::issueAtPosition($e, $resultsCount); |
60 | 60 | } |
61 | 61 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ArrayUtils::assertArray($analysisResultAsArray); |
56 | 56 | $analysisResult = $this->convertAnalysisResultFromArray($analysisResultAsArray, $projectRoot); |
57 | 57 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
58 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
58 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
59 | 59 | throw ParseAtLocationException::issueAtPosition($e, $resultsCount); |
60 | 60 | } |
61 | 61 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | ArrayUtils::assertArray($analysisResultAsArray); |
51 | 51 | $analysisResult = $this->convertAnalysisResultFromArray($analysisResultAsArray, $projectRoot); |
52 | 52 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
53 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
53 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
54 | 54 | throw ParseAtLocationException::issueAtPosition($e, $resultsCount); |
55 | 55 | } |
56 | 56 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $this->processViolationsInFile($analysisResultsBuilder, $absoluteFileName, $projectRoot, $violations); |
60 | 60 | } |
61 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
61 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
62 | 62 | throw ParseAtLocationException::issueParsing($e, "Invalid file {$fileNumber}"); |
63 | 63 | } |
64 | 64 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $analysisResult = $this->processViolation($absoluteFileName, $projectRoot, $violation); |
85 | 85 | $analysisResultsBuilder->addAnalysisResult($analysisResult); |
86 | 86 | ++$violationCount; |
87 | - } catch (ArrayParseException|InvalidPathException $e) { |
|
87 | + } catch (ArrayParseException | InvalidPathException $e) { |
|
88 | 88 | throw ParseAtLocationException::issueParsing($e, "File {$absoluteFileName->getFileName()}) violation {$violationCount}"); |
89 | 89 | } |
90 | 90 | } |