Completed
Push — master ( c6ad04...c9f20b )
by Dan Michael O.
10:49
created
app/Console/Commands/OaiPmhHarvest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
         // For timing
155 155
         $this->startTime = $this->batchTime = microtime(true) - 1;
156 156
 
157
-        \Event::listen('Colligator\Events\OaiPmhHarvestStatus', function ($event) {
157
+        \Event::listen('Colligator\Events\OaiPmhHarvestStatus', function($event) {
158 158
             $this->status($event->harvested, $event->position, $event->total);
159 159
         });
160 160
 
161
-        \Event::listen('Colligator\Events\OaiPmhHarvestComplete', function ($event) {
161
+        \Event::listen('Colligator\Events\OaiPmhHarvestComplete', function($event) {
162 162
             $this->info(sprintf('[%s] Harvest complete, got %d records in %d seconds',
163 163
                 strftime('%Y-%m-%d %H:%M:%S'),
164 164
                 $event->count,
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ));
167 167
         });
168 168
 
169
-        \Event::listen('Colligator\Events\JobError', function ($event) {
169
+        \Event::listen('Colligator\Events\JobError', function($event) {
170 170
             \Log::error('[OaiPmhHarvest] ' . $event->msg);
171 171
             $this->error($event->msg);
172 172
         });
Please login to merge, or discard this patch.
app/Console/Commands/Reindex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $docCount = Document::count();
59 59
         $this->output->progressStart($docCount);
60 60
 
61
-        Document::with('subjects', 'genres', 'cover')->chunk(1000, function ($docs) use ($docIndex, $newVersion) {
61
+        Document::with('subjects', 'genres', 'cover')->chunk(1000, function($docs) use ($docIndex, $newVersion) {
62 62
             foreach ($docs as $doc) {
63 63
                 $docIndex->index($doc, $newVersion);
64 64
                 $this->output->progressAdvance();
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::group(['middleware' => 'cors'], function () {
14
+Route::group(['middleware' => 'cors'], function() {
15 15
 
16
-    Route::get('api/', function () {
16
+    Route::get('api/', function() {
17 17
         return view('welcome');
18 18
     });
19 19
 
Please login to merge, or discard this patch.
app/Jobs/OaiPmhHarvest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,12 +137,12 @@
 block discarded – undo
137 137
             'sleep-time-on-error' => $this->sleepTimeOnError,
138 138
         ]);
139 139
 
140
-        $client->on('request.error', function ($msg) {
140
+        $client->on('request.error', function($msg) {
141 141
             $this->error($msg);
142 142
         });
143 143
 
144 144
         // Store each response to disk just in case
145
-        $client->on('request.complete', function ($verb, $args, $body) use ($latest) {
145
+        $client->on('request.complete', function($verb, $args, $body) use ($latest) {
146 146
             Storage::disk('local')->put($latest, $body);
147 147
         });
148 148
 
Please login to merge, or discard this patch.
app/Providers/CoverCacheServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        \App::bind('covercache', function () {
23
+        \App::bind('covercache', function() {
24 24
             return new CoverCache();
25 25
         });
26 26
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function map(Router $router)
37 37
     {
38
-        $router->group(['namespace' => $this->namespace], function ($router) {
38
+        $router->group(['namespace' => $this->namespace], function($router) {
39 39
             require app_path('Http/routes.php');
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
app/Scrapers/BsScraper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
     public function scrape(Crawler $crawler)
58 58
     {
59
-        $texts = $crawler->filter('#accordion > *')->each(function (Crawler $node) {
59
+        $texts = $crawler->filter('#accordion > *')->each(function(Crawler $node) {
60 60
             return $node->text();
61 61
         });
62 62
 
Please login to merge, or discard this patch.
app/Scrapers/FluxScraper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function scrape(Crawler $crawler)
15 15
     {
16
-        $texts = $crawler->filter('.productPageBody > p')->each(function (Crawler $node) {
16
+        $texts = $crawler->filter('.productPageBody > p')->each(function(Crawler $node) {
17 17
             return $node->text();
18 18
         });
19 19
         $text = implode('\n\n', $texts);
Please login to merge, or discard this patch.
app/Scrapers/UnivScraper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function scrape(Crawler $crawler)
15 15
     {
16
-        $texts = $crawler->filter('.book-details > div')->each(function (Crawler $node) {
16
+        $texts = $crawler->filter('.book-details > div')->each(function(Crawler $node) {
17 17
             if (strpos($node->attr('class'), 'row') === false) {
18 18
                 return $node->text();
19 19
             }
Please login to merge, or discard this patch.