@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $this->comment('Available configurations:'); |
48 | 48 | $config = \Config::get('oaipmh.harvests', null); |
49 | 49 | foreach (array_keys($config) as $key) { |
50 | - $this->comment(' - ' . $key); |
|
50 | + $this->comment(' - '.$key); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | return false; |
60 | 60 | } |
61 | - $harvestConfig = \Config::get('oaipmh.harvests.' . $this->argument('name'), null); |
|
61 | + $harvestConfig = \Config::get('oaipmh.harvests.'.$this->argument('name'), null); |
|
62 | 62 | if (is_null($harvestConfig)) { |
63 | 63 | $this->error('Unknown configuration specified.'); |
64 | 64 | $this->listConfigurations(); |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | $harvestName = $this->argument('name'); |
103 | - $harvestConfig = \Config::get('oaipmh.harvests.' . $harvestName, null); |
|
103 | + $harvestConfig = \Config::get('oaipmh.harvests.'.$harvestName, null); |
|
104 | 104 | |
105 | 105 | $this->comment(sprintf('Dispatching new harvest job')); |
106 | 106 | |
107 | - $this->comment(' - Repo: ' . $harvestConfig['url']); |
|
108 | - $this->comment(' - Schema: ' . $harvestConfig['schema']); |
|
109 | - $this->comment(' - Set: ' . $harvestConfig['set']); |
|
107 | + $this->comment(' - Repo: '.$harvestConfig['url']); |
|
108 | + $this->comment(' - Schema: '.$harvestConfig['schema']); |
|
109 | + $this->comment(' - Set: '.$harvestConfig['set']); |
|
110 | 110 | |
111 | 111 | foreach (['from', 'until', 'resume', 'daily'] as $key) { |
112 | 112 | if (!is_null($this->option($key))) { |
@@ -24,15 +24,15 @@ |
||
24 | 24 | protected function schedule(Schedule $schedule) |
25 | 25 | { |
26 | 26 | $schedule->command('colligator:harvest-oaipmh samling42 --daily') |
27 | - ->dailyAt('02:00'); |
|
27 | + ->dailyAt('02:00'); |
|
28 | 28 | |
29 | 29 | // Bring subject heading usage counts up-to-date |
30 | 30 | $schedule->command('colligator:reindex') |
31 | - ->weekly()->sundays()->at('04:00'); |
|
31 | + ->weekly()->sundays()->at('04:00'); |
|
32 | 32 | |
33 | 33 | // Check new documents for xisbn |
34 | 34 | $schedule->command('colligator:harvest-xisbn') |
35 | - ->weekly()->saturdays()->at('04:00'); |
|
35 | + ->weekly()->saturdays()->at('04:00'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | class CoverCacheServiceProvider extends ServiceProvider |
11 | 11 | { |
12 | - /** |
|
12 | + /** |
|
13 | 13 | * Indicates if loading of the provider is deferred. |
14 | 14 | * |
15 | 15 | * @var bool |
@@ -23,12 +23,12 @@ |
||
23 | 23 | */ |
24 | 24 | public function register() |
25 | 25 | { |
26 | - $this->app->singleton(CoverCache::class, function ($app) { |
|
26 | + $this->app->singleton(CoverCache::class, function($app) { |
|
27 | 27 | $fs = \Storage::disk('s3')->getAdapter(); |
28 | 28 | $im = $this->app->make(ImageManager::class); |
29 | 29 | $conf = new FlysystemConfig([ |
30 | 30 | // Default: 30 days |
31 | - 'CacheControl' => 'max-age=' . env('IMAGE_CACHE_TIME', 3153600) . ', public', |
|
31 | + 'CacheControl' => 'max-age='.env('IMAGE_CACHE_TIME', 3153600).', public', |
|
32 | 32 | ]); |
33 | 33 | return new CoverCache($fs, $im, $conf); |
34 | 34 | }); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | if (is_null($data)) { |
86 | 86 | $data = $this->download($sourceUrl); |
87 | 87 | if (!$data) { |
88 | - throw new \ErrorException('[CoverCache] Failed to download ' . $sourceUrl); |
|
88 | + throw new \ErrorException('[CoverCache] Failed to download '.$sourceUrl); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $img = $this->imageManager->make($data); |
95 | 95 | if ($maxHeight && $img->height() > $maxHeight) { |
96 | - \Log::debug('[CachedImage] Resizing from ' . $img->height() . ' to ' . $maxHeight); |
|
96 | + \Log::debug('[CachedImage] Resizing from '.$img->height().' to '.$maxHeight); |
|
97 | 97 | $img->heighten($maxHeight); |
98 | 98 | $data = strval($img->encode('jpg')); |
99 | 99 | } |
@@ -103,12 +103,12 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | |
106 | - \Log::debug('[CachedImage] Storing image as ' . $img->width() . ' x ' . $img->height() . ', ' . strlen($data) . ' bytes'); |
|
106 | + \Log::debug('[CachedImage] Storing image as '.$img->width().' x '.$img->height().', '.strlen($data).' bytes'); |
|
107 | 107 | if (!$this->filesystem->write($cacheKey, $data, $this->fsConfig)) { |
108 | 108 | throw new \ErrorException('[CoverCache] Failed to upload thumb to S3'); |
109 | 109 | } |
110 | 110 | |
111 | - \Log::debug('[CachedImage] Wrote cached version as ' . $cacheKey); |
|
111 | + \Log::debug('[CachedImage] Wrote cached version as '.$cacheKey); |
|
112 | 112 | |
113 | 113 | return new CachedImage($this, $cacheKey); |
114 | 114 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $data = $this->filesystem->read($cacheKey); |
141 | 141 | $blob = strval($data['contents']); |
142 | - \Log::debug('[CachedImage] Read ' .$cacheKey . ': ' . strlen($blob) . ' bytes'); |
|
142 | + \Log::debug('[CachedImage] Read '.$cacheKey.': '.strlen($blob).' bytes'); |
|
143 | 143 | |
144 | 144 | return $this->putBlob($blob, $maxHeight); |
145 | 145 | } |