@@ -54,7 +54,7 @@ |
||
| 54 | 54 | foreach ($files as $file) { |
| 55 | 55 | foreach ($this->extract->extractFromFile($file) as $string) { |
| 56 | 56 | if (!$this->exists($string, $job)) { |
| 57 | - $job['inserted'] ++; |
|
| 57 | + $job['inserted']++; |
|
| 58 | 58 | gplcart_file_csv($job['data']['file'], array($string, '')); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function hookCron() |
| 59 | 59 | { |
| 60 | 60 | // Automatically delete created files older than 1 day |
| 61 | - $lifespan = 24*60*60; |
|
| 61 | + $lifespan = 24 * 60 * 60; |
|
| 62 | 62 | $directory = GC_PRIVATE_DOWNLOAD_DIR . '/extracted-translations'; |
| 63 | 63 | if (is_dir($directory)) { |
| 64 | 64 | gplcart_file_delete($directory, array('csv'), $lifespan); |