@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @return array |
14 | 14 | */ |
15 | 15 | |
16 | - public function list($pageSize = 50, $pageNum = 0) |
|
16 | + public function list($pageSize = 50, $pageNum = 0) |
|
17 | 17 | { |
18 | 18 | return $this->client->send(sprintf('%s/list', $this->apiUri), [ |
19 | 19 | 'page_size' => $pageSize, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @return array |
39 | 39 | */ |
40 | 40 | |
41 | - public function delete($siteId) |
|
41 | + public function delete($siteId) |
|
42 | 42 | { |
43 | 43 | return $this->client->send(sprintf('%s/delete', $this->apiUri), [ |
44 | 44 | 'site_id' => $siteId, |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @return array |
54 | 54 | */ |
55 | 55 | |
56 | - public function uploadCustomCertificate($siteId, $certificate, $privateKey) |
|
56 | + public function uploadCustomCertificate($siteId, $certificate, $privateKey) |
|
57 | 57 | { |
58 | 58 | return $this->client->send(sprintf('%s/uploadCustomCertificate', $this->apiUri), [ |
59 | 59 | 'site_id' => $siteId, |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @return array |
69 | 69 | */ |
70 | 70 | |
71 | - public function removeCustomCertificate($siteId) |
|
71 | + public function removeCustomCertificate($siteId) |
|
72 | 72 | { |
73 | 73 | return $this->client->send(sprintf('%s/removeCustomCertificate', $this->apiUri), [ |
74 | 74 | 'site_id' => $siteId, |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @return array |
87 | 87 | */ |
88 | 88 | |
89 | - public function purgeCache($siteId, $purgePattern = "") |
|
89 | + public function purgeCache($siteId, $purgePattern = "") |
|
90 | 90 | { |
91 | 91 | return $this->client->send(sprintf('%s/cache/purge', $this->apiUri), [ |
92 | 92 | 'site_id' => $siteId, |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use Symfony\Component\Console\Input\InputInterface; |
7 | 7 | use Symfony\Component\Console\Output\OutputInterface; |
8 | 8 | |
9 | -class PurgeSiteCommand extends AbstractCommand{ |
|
9 | +class PurgeSiteCommand extends AbstractCommand { |
|
10 | 10 | /** |
11 | 11 | * @var string |
12 | 12 | */ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | ->setName('site:purge') |
24 | 24 | ->setDescription('Purge URLs from a given site id') |
25 | 25 | ->addArgument('site-id', InputArgument::REQUIRED, 'incapsula id of site to purge') |
26 | - ->addArgument('resource-pattern', InputArgument::OPTIONAL, 'string to match in the URL to be purged',"") |
|
26 | + ->addArgument('resource-pattern', InputArgument::OPTIONAL, 'string to match in the URL to be purged', "") |
|
27 | 27 | ; |
28 | 28 | } |
29 | 29 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function execute(InputInterface $input, OutputInterface $output) |
48 | 48 | { |
49 | - $this->client->sites()->purgeCache($this->siteId ,$this->resourcePattern); |
|
49 | + $this->client->sites()->purgeCache($this->siteId, $this->resourcePattern); |
|
50 | 50 | return 0; |
51 | 51 | } |
52 | 52 | } |
53 | 53 | \ No newline at end of file |