@@ -7,8 +7,6 @@ |
||
7 | 7 | use Log; |
8 | 8 | use Phpoaipmh\Client; |
9 | 9 | use Phpoaipmh\Endpoint; |
10 | -use Scriptotek\OaiPmh\ListRecordsResponse; |
|
11 | -use Storage; |
|
12 | 10 | |
13 | 11 | class OaiPmhHarvest extends Job |
14 | 12 | { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function handle() |
109 | 109 | { |
110 | - Log::info('[OaiPmhHarvest] Starting job. Requesting records from ' . ($this->start ?: '(no limit)') . ' until ' . ($this->until ?: '(no limit)') . '.'); |
|
110 | + Log::info('[OaiPmhHarvest] Starting job. Requesting records from '.($this->start ?: '(no limit)').' until '.($this->until ?: '(no limit)').'.'); |
|
111 | 111 | |
112 | 112 | // For timing |
113 | 113 | $this->startTime = $this->batchTime = microtime(true) - 1; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | $recordsHarvested = $this->fromNetwork(); |
123 | 123 | |
124 | - Log::info('[OaiPmhHarvest] Harvest complete, got ' . $recordsHarvested . ' records.'); |
|
124 | + Log::info('[OaiPmhHarvest] Harvest complete, got '.$recordsHarvested.' records.'); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -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))) { |