@@ -60,13 +60,9 @@ |
||
| 60 | 60 | |
| 61 | 61 | if (file_exists($file)) { |
| 62 | 62 | $this->template = file_get_contents($file); |
| 63 | - } |
|
| 64 | - |
|
| 65 | - else if (file_exists($distFile)) { |
|
| 63 | + } else if (file_exists($distFile)) { |
|
| 66 | 64 | $this->template = file_get_contents($distFile); |
| 67 | - } |
|
| 68 | - |
|
| 69 | - else { |
|
| 65 | + } else { |
|
| 70 | 66 | throw new InvalidArgumentException( |
| 71 | 67 | 'Template file could not be loaded.' |
| 72 | 68 | ); |
@@ -33,8 +33,7 @@ |
||
| 33 | 33 | foreach ($ts as $token) { |
| 34 | 34 | if ($token instanceof PHP_Token_CLASS) { |
| 35 | 35 | $this->class = $token; |
| 36 | - } |
|
| 37 | - elseif ($token instanceof PHP_Token_INTERFACE) { |
|
| 36 | + } elseif ($token instanceof PHP_Token_INTERFACE) { |
|
| 38 | 37 | $this->interfaces[$i] = $token; |
| 39 | 38 | $i++; |
| 40 | 39 | } |
@@ -140,9 +140,7 @@ |
||
| 140 | 140 | |
| 141 | 141 | try { |
| 142 | 142 | $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize); |
| 143 | - } |
|
| 144 | - |
|
| 145 | - catch (ComparisonFailure $exception) { |
|
| 143 | + } catch (ComparisonFailure $exception) { |
|
| 146 | 144 | } |
| 147 | 145 | |
| 148 | 146 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -139,9 +139,7 @@ |
||
| 139 | 139 | |
| 140 | 140 | try { |
| 141 | 141 | $this->comparator->assertEquals($expected, $actual); |
| 142 | - } |
|
| 143 | - |
|
| 144 | - catch (ComparisonFailure $exception) { |
|
| 142 | + } catch (ComparisonFailure $exception) { |
|
| 145 | 143 | } |
| 146 | 144 | |
| 147 | 145 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -172,9 +172,7 @@ |
||
| 172 | 172 | |
| 173 | 173 | try { |
| 174 | 174 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 175 | - } |
|
| 176 | - |
|
| 177 | - catch (ComparisonFailure $exception) { |
|
| 175 | + } catch (ComparisonFailure $exception) { |
|
| 178 | 176 | } |
| 179 | 177 | |
| 180 | 178 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -112,9 +112,7 @@ |
||
| 112 | 112 | |
| 113 | 113 | try { |
| 114 | 114 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 115 | - } |
|
| 116 | - |
|
| 117 | - catch (ComparisonFailure $exception) { |
|
| 115 | + } catch (ComparisonFailure $exception) { |
|
| 118 | 116 | } |
| 119 | 117 | |
| 120 | 118 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -114,9 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | try { |
| 116 | 116 | $this->comparator->assertEquals($expected, $actual); |
| 117 | - } |
|
| 118 | - |
|
| 119 | - catch (ComparisonFailure $exception) { |
|
| 117 | + } catch (ComparisonFailure $exception) { |
|
| 120 | 118 | } |
| 121 | 119 | |
| 122 | 120 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -144,9 +144,7 @@ |
||
| 144 | 144 | |
| 145 | 145 | try { |
| 146 | 146 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 147 | - } |
|
| 148 | - |
|
| 149 | - catch (ComparisonFailure $exception) { |
|
| 147 | + } catch (ComparisonFailure $exception) { |
|
| 150 | 148 | } |
| 151 | 149 | |
| 152 | 150 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |
@@ -100,9 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | try { |
| 102 | 102 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 103 | - } |
|
| 104 | - |
|
| 105 | - catch (ComparisonFailure $exception) { |
|
| 103 | + } catch (ComparisonFailure $exception) { |
|
| 106 | 104 | } |
| 107 | 105 | |
| 108 | 106 | $this->assertNull($exception, 'Unexpected ComparisonFailure'); |