Completed
Push — master ( 27d687...150b55 )
by Dan Michael O.
12:08
created
app/Jobs/OaiPmhHarvest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/Console/Commands/OaiPmhHarvest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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))) {
Please login to merge, or discard this patch.