@@ -132,10 +132,10 @@ |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param array $params |
|
| 136 | - * |
|
| 137 | - * @return array |
|
| 138 | - */ |
|
| 135 | + * @param array $params |
|
| 136 | + * |
|
| 137 | + * @return array |
|
| 138 | + */ |
|
| 139 | 139 | public function setStaticCacheMode($siteId) |
| 140 | 140 | { |
| 141 | 141 | return $this->client->send(sprintf('%s/performance/cache-mode', $this->apiUri), [ |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | $this |
| 17 | 17 | ->setName('sites:listattribute') |
| 18 | - ->addOption('attribute',null,InputOption::VALUE_REQUIRED, 'json key to inspect') |
|
| 18 | + ->addOption('attribute', null, InputOption::VALUE_REQUIRED, 'json key to inspect') |
|
| 19 | 19 | ->setDescription('List a config value from all sites') |
| 20 | 20 | ; |
| 21 | 21 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $output->writeln("sites that were changed in this run"); |
| 34 | 34 | $table = new Table($output); |
| 35 | - $table->setHeaders(['Site ID', 'Site Name','Return Message']); |
|
| 35 | + $table->setHeaders(['Site ID', 'Site Name', 'Return Message']); |
|
| 36 | 36 | |
| 37 | 37 | foreach ($changes as $changed) { |
| 38 | 38 | $table->addRow([ |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | foreach ($sites as $site) { |
| 56 | 56 | $return_val = $this->client->sites()->setStaticCacheMode($site['site_id']); |
| 57 | 57 | $mode = $site['acceleration_level']; |
| 58 | - if ($mode==='advanced'){ |
|
| 59 | - array_push($changed,[ |
|
| 58 | + if ($mode === 'advanced') { |
|
| 59 | + array_push($changed, [ |
|
| 60 | 60 | 'site_id' => $site['site_id'], |
| 61 | 61 | 'domain' => $site['domain'], |
| 62 | 62 | 'return' => $return_val['res_message'], |