@@ -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) { |
@@ -253,7 +253,7 @@ |
||
253 | 253 | $list[$item->Version] = sprintf('Version: %s (Created: %s)', $item->Version, $item->LastEdited); |
254 | 254 | } |
255 | 255 | |
256 | - $fields->addFieldsToTab($tabRootName . '.Verify', FieldList::create([ |
|
256 | + $fields->addFieldsToTab($tabRootName.'.Verify', FieldList::create([ |
|
257 | 257 | LiteralField::create('Introduction', '<p class="message intro">Select a version' |
258 | 258 | . ' whose data you wish to verify, then select the "Verify"' |
259 | 259 | . ' button. After a few seconds, a verification status will be' |
@@ -160,8 +160,7 @@ discard block |
||
160 | 160 | 'Class' => get_class($record), |
161 | 161 | // TODO code smell |
162 | 162 | 'VerifiableFields' => $record->getSourceMode() === VerifiableExtension::SOURCE_MODE_FIELD ? |
163 | - json_decode($record->VerifiableFields) : |
|
164 | - [], |
|
163 | + json_decode($record->VerifiableFields) : [], |
|
165 | 164 | ], |
166 | 165 | 'Status' => [ |
167 | 166 | 'Nice' => $status, |
@@ -197,7 +196,7 @@ discard block |
||
197 | 196 | { |
198 | 197 | $refl = new \ReflectionClass(__CLASS__); |
199 | 198 | $const = array_search($status, $refl->getConstants()); |
200 | - $keyJson = file_get_contents(realpath(__DIR__) . '/../../statuses.json'); |
|
199 | + $keyJson = file_get_contents(realpath(__DIR__).'/../../statuses.json'); |
|
201 | 200 | $keyMap = json_decode($keyJson, true); |
202 | 201 | $defn = ''; |
203 | 202 |