@@ -36,7 +36,7 @@ |
||
| 36 | 36 | } else { |
| 37 | 37 | try { |
| 38 | 38 | $annotated[] = $this->annotateResourceNode($resource, $type); |
| 39 | - } catch (ParseException $e) { |
|
| 39 | + } catch(ParseException $e) { |
|
| 40 | 40 | //We ignore this value |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } catch(OutOfBoundsException $e) { |
| 66 | 66 | try { |
| 67 | 67 | return $item->getFingerprint()->getLabel($this->getOption(ValueFormatter::OPT_LANG))->getText(); |
| 68 | - } catch (OutOfBoundsException $e) { |
|
| 68 | + } catch(OutOfBoundsException $e) { |
|
| 69 | 69 | throw new FormattingException('No unit symbol and no label for IRI ' . $value); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | FormatterOptions $options = null, |
| 24 | 24 | ValueFormatter $formatter = null |
| 25 | 25 | ) { |
| 26 | - if ( $formatter === null ) { |
|
| 27 | - $formatter = $this->getInstance( $options ); |
|
| 26 | + if($formatter === null) { |
|
| 27 | + $formatter = $this->getInstance($options); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - $this->assertEquals( $expected, $formatter->format( $value ) ); |
|
| 30 | + $this->assertEquals($expected, $formatter->format($value)); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | } |