@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | if ($rel) { |
| 135 | - $url = ($rel ? $this->getDiscoveredNodes()[0] : '') . $url; |
|
| 135 | + $url = ($rel ? $this->getDiscoveredNodes()[0] : '').$url; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | return $client->$method($url, $payload); |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | $limit = (int) $this->config()->get('discover_node_count') ?: 1; |
| 167 | 167 | $chainpointUrls = $this->config()->get('chainpoint_urls'); |
| 168 | - $url = $chainpointUrls[rand(0,2)]; |
|
| 168 | + $url = $chainpointUrls[rand(0, 2)]; |
|
| 169 | 169 | $response = $this->client($url, 'GET', [], false); |
| 170 | 170 | |
| 171 | 171 | if ($response->getStatusCode() !== 200) { |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | { |
| 152 | 152 | $refl = new \ReflectionClass(__CLASS__); |
| 153 | 153 | $const = array_search($status, $refl->getConstants()); |
| 154 | - $keyJson = file_get_contents(realpath(__DIR__) . '/../../statuses.json'); |
|
| 154 | + $keyJson = file_get_contents(realpath(__DIR__).'/../../statuses.json'); |
|
| 155 | 155 | $keyMap = json_decode($keyJson, true); |
| 156 | 156 | $defn = ''; |
| 157 | 157 | |
@@ -88,8 +88,7 @@ discard block |
||
| 88 | 88 | $owner = $this->getOwner(); |
| 89 | 89 | |
| 90 | 90 | return $owner->getSourceMode() === self::SOURCE_MODE_FIELD ? |
| 91 | - json_decode($owner->VerifiableFields) : |
|
| 92 | - []; |
|
| 91 | + json_decode($owner->VerifiableFields) : []; |
|
| 93 | 92 | } |
| 94 | 93 | |
| 95 | 94 | /** |
@@ -268,7 +267,7 @@ discard block |
||
| 268 | 267 | $list[$item->Version] = sprintf('Version: %s (Created: %s)', $item->Version, $item->LastEdited); |
| 269 | 268 | } |
| 270 | 269 | |
| 271 | - $fields->addFieldsToTab($tabRootName . '.Verify', FieldList::create([ |
|
| 270 | + $fields->addFieldsToTab($tabRootName.'.Verify', FieldList::create([ |
|
| 272 | 271 | LiteralField::create('Introduction', '<p class="message intro">Select a version' |
| 273 | 272 | . ' whose data you wish to verify, then select the "Verify"' |
| 274 | 273 | . ' button. After a few seconds, a verification status will be' |