Completed
Pull Request — master (#34)
by
unknown
02:07
created
src/Backend/Chainpoint/Gateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Controller/VerifiableAdminController.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@  discard block
 block discarded – undo
149 149
                 'Version' => "$record->Version",
150 150
                 'Class' => get_class($record),
151 151
                 'VerifiableFields' => $record->sourceMode() === VerifiableExtension::SOURCE_MODE_FIELD ?
152
-                    json_decode($record->VerifiableFields) :
153
-                    [],
152
+                    json_decode($record->VerifiableFields) : [],
154 153
             ],
155 154
             'Status' => [
156 155
                 'Nice' => $status,
@@ -182,7 +181,7 @@  discard block
 block discarded – undo
182 181
     {
183 182
         $refl = new \ReflectionClass(__CLASS__);
184 183
         $const = array_search($status, $refl->getConstants());
185
-        $keyJson = file_get_contents(realpath(__DIR__) . '/../../statuses.json');
184
+        $keyJson = file_get_contents(realpath(__DIR__).'/../../statuses.json');
186 185
         $keyMap = json_decode($keyJson, true);
187 186
         $defn = '';
188 187
 
Please login to merge, or discard this patch.
src/Model/VerifiableExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
             $list[$item->Version] = sprintf('Version: %s (Created: %s)', $item->Version, $item->Created);
239 239
         }
240 240
 
241
-        $fields->addFieldsToTab($tabRootName . '.Verify', FieldList::create([
241
+        $fields->addFieldsToTab($tabRootName.'.Verify', FieldList::create([
242 242
             LiteralField::create('Introduction', '<p class="message intro">Select a version'
243 243
                     . ' whose data you wish to verify, then select the "Verify"'
244 244
                     . ' button. After a few seconds, a verification status will be'
Please login to merge, or discard this patch.