@@ -20,6 +20,6 @@ |
||
20 | 20 | $fields |
21 | 21 | ->dataFieldByName('URL') |
22 | 22 | ->setTitle('Your website (optional)') |
23 | - ->setAttribute('placeholder','http://'); |
|
23 | + ->setAttribute('placeholder', 'http://'); |
|
24 | 24 | } |
25 | 25 | } |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | public function run($request) { |
10 | 10 | $path = sprintf('%s/%s', BASE_PATH, BasePage::config()->generated_pdf_path); |
11 | - if(!file_exists($path)) return false; |
|
11 | + if (!file_exists($path)) return false; |
|
12 | 12 | |
13 | 13 | exec(sprintf('rm %s/*', $path), $output, $return_val); |
14 | 14 | |
15 | 15 | // output any errors |
16 | - if($return_val != 0) { |
|
16 | + if ($return_val != 0) { |
|
17 | 17 | user_error(sprintf('%s failed: ', get_class($this)) . implode("\n", $output), E_USER_ERROR); |
18 | 18 | } |
19 | 19 | } |
@@ -8,7 +8,9 @@ |
||
8 | 8 | |
9 | 9 | public function run($request) { |
10 | 10 | $path = sprintf('%s/%s', BASE_PATH, BasePage::config()->generated_pdf_path); |
11 | - if(!file_exists($path)) return false; |
|
11 | + if(!file_exists($path)) { |
|
12 | + return false; |
|
13 | + } |
|
12 | 14 | |
13 | 15 | exec(sprintf('rm %s/*', $path), $output, $return_val); |
14 | 16 |