@@ -23,8 +23,10 @@ |
||
| 23 | 23 | if ((sizeof($children) < 2) || (sizeof($children) > 3) || |
| 24 | 24 | (!$children[0] instanceof FormField) || |
| 25 | 25 | (!$children[1] instanceof FormField) |
| 26 | - ) user_error('LatLongField argument 1 must be an array containing at least two FormField '. |
|
| 26 | + ) { |
|
| 27 | + user_error('LatLongField argument 1 must be an array containing at least two FormField '. |
|
| 27 | 28 | 'objects for Lat/Long values, respectively.', E_USER_ERROR); |
| 29 | + } |
|
| 28 | 30 | |
| 29 | 31 | parent::__construct($children); |
| 30 | 32 | |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | |
| 134 | 134 | public function testSetSize() { |
| 135 | 135 | $map = $this->getMap(); |
| 136 | - $map->setSize('432px','1234px'); |
|
| 136 | + $map->setSize('432px', '1234px'); |
|
| 137 | 137 | $html = $map->forTemplate(); |
| 138 | 138 | $this->assertContains('style="width:432px; height: 1234px;"', $html); |
| 139 | 139 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | public function testGetRenderableMapSetNoMarkerValues() { |
| 19 | 19 | $instance = $this->getInstance(); |
| 20 | 20 | $instance->MapPinEdited = true; |
| 21 | - $html = $instance->getRenderableMap(300,800,2)->setDivId('testmap')->forTemplate()->getValue(); |
|
| 21 | + $html = $instance->getRenderableMap(300, 800, 2)->setDivId('testmap')->forTemplate()->getValue(); |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | $expected = <<<HTML |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $instance->MapPinEdited = true; |
| 57 | 57 | $vals = array('TestKey' => ' TestKeyVal'); |
| 58 | 58 | $instance->setMarkerTemplateValues($vals); |
| 59 | - $html = $instance->getRenderableMap(300,800,2)->setDivId('testmap')->forTemplate()->getValue(); |
|
| 59 | + $html = $instance->getRenderableMap(300, 800, 2)->setDivId('testmap')->forTemplate()->getValue(); |
|
| 60 | 60 | $expected = <<<HTML |
| 61 | 61 | |
| 62 | 62 | |