@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function checkString(string $input): array |
| 25 | 25 | { |
| 26 | 26 | $misspelledWords = []; |
| 27 | - $results = $this->aspell->checkText(new StringSource($input), ['en_GB', 'en']); |
|
| 27 | + $results = $this->aspell->checkText(new StringSource($input), ['en_GB', 'en']); |
|
| 28 | 28 | // TODO: Something functional |
| 29 | 29 | foreach ($results as $result) { |
| 30 | 30 | $misspelledWords[] = $result->word; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | throw new Exception("Couldn't get image URL in image tagger."); |
| 23 | 23 | } |
| 24 | 24 | // Our staging server doesn't trust itself! |
| 25 | - $opts=array( |
|
| 25 | + $opts = array( |
|
| 26 | 26 | "ssl"=>array( |
| 27 | 27 | "verify_peer"=>false, |
| 28 | 28 | "verify_peer_name"=>false, |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | // https://gordalina.github.io/cachetool/ |
| 25 | 25 | // https://github.com/deployphp/deployer/blob/master/contrib/cachetool.php#L55 |
| 26 | 26 | // https://github.com/gordalina/cachetool/releases/download/7.0.0/cachetool.phar |
| 27 | -set('bin/cachetool', function () { |
|
| 27 | +set('bin/cachetool', function() { |
|
| 28 | 28 | if (!test('[ -f {{release_or_current_path}}/cachetool.phar ]')) { |
| 29 | 29 | run("cd {{release_or_current_path}} && curl -sLO https://github.com/gordalina/cachetool/releases/download/7.0.0/cachetool.phar"); |
| 30 | 30 | } |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | // Tasks |
| 75 | 75 | |
| 76 | -task('build', function () { |
|
| 76 | +task('build', function() { |
|
| 77 | 77 | run('cd {{release_path}} && build'); |
| 78 | 78 | }); |
| 79 | 79 | |
| 80 | -task('deploy:stop-workers', function () { |
|
| 80 | +task('deploy:stop-workers', function() { |
|
| 81 | 81 | // Hack alert: https://stackoverflow.com/a/63652279/300836 |
| 82 | 82 | // We've just move the previous release out of the way, but it's |
| 83 | 83 | // the previous release's cache that has the details of the |
@@ -88,12 +88,12 @@ discard block |
||
| 88 | 88 | })->desc('Stop any existing messenger consumers; Supervisor will restart them.'); |
| 89 | 89 | |
| 90 | 90 | // Testing |
| 91 | -task('pwd', function () { |
|
| 91 | +task('pwd', function() { |
|
| 92 | 92 | $result = run('pwd'); |
| 93 | 93 | writeln("Current dir: $result"); |
| 94 | 94 | }); |
| 95 | 95 | |
| 96 | -task('test', function () { |
|
| 96 | +task('test', function() { |
|
| 97 | 97 | writeln('Hello world'); |
| 98 | 98 | }); |
| 99 | 99 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function getImageLocationStats(): array |
| 70 | 70 | { |
| 71 | - return $this->cache->get('image_location_stats', function (ItemInterface $item) { |
|
| 71 | + return $this->cache->get('image_location_stats', function(ItemInterface $item) { |
|
| 72 | 72 | $item->tag('stats'); |
| 73 | 73 | $stats = $this->imageRepository |
| 74 | 74 | ->createQueryBuilder('i') |
@@ -458,7 +458,7 @@ |
||
| 458 | 458 | 13 => 'NW', |
| 459 | 459 | 14 => 'NW', |
| 460 | 460 | 15 => 'N' |
| 461 | - ]; |
|
| 461 | + ]; |
|
| 462 | 462 | |
| 463 | 463 | /** |
| 464 | 464 | * @ORM\OneToOne(targetEntity=Image::class, mappedBy="featuringWander", cascade={"persist"}) |