Skip to content

Commit c0f432c

Browse files
author
Keith Kirk
committed
cs fixes
1 parent 7979d68 commit c0f432c

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/Cli/Command/FileParserCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
8686
/**
8787
* Parses the Log file and returns an array of events to send to Segment.io
8888
*
89-
* @param Filesystem $filesystem Symfony Filesystem Component
90-
* @param string $file The Log File
89+
* @param string $file The log file
9190
*
9291
* @return array
9392
*/
94-
private function getEvents(Filesystem $filesystem, $file)
93+
private function getEvents($file)
9594
{
9695
$contents = file_get_contents($file);
9796
$events = explode("\n", $contents, -1);

src/Client.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\Client as HttpClient;
66
use GuzzleHttp\Collection;
7-
use GuzzleHttp\Command\Event\PrepareEvent;
87
use GuzzleHttp\Command\Guzzle\GuzzleClient;
98
use GuzzleHttp\Command\Guzzle\Description;
109
use GuzzleHttp\Command\Model;

src/Subscriber/BatchFileSubscriber.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\Command\Event\PrepareEvent;
66
use GuzzleHttp\Command\Event\ProcessEvent;
7-
use GuzzleHttp\Command\Event\CommandErrorEvent;
87
use GuzzleHttp\Command\Model;
98
use GuzzleHttp\Event\SubscriberInterface;
109
use Monolog\Logger;
@@ -66,7 +65,6 @@ public function getEvents()
6665
public function onPrepare(PrepareEvent $event)
6766
{
6867
$command = $event->getCommand();
69-
$name = $command->getName();
7068

7169
if (!$command->getOperation()->getData('batching')) {
7270
return false;

src/Subscriber/BatchRequestSubscriber.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\Command\Event\PrepareEvent;
66
use GuzzleHttp\Command\Event\ProcessEvent;
7-
use GuzzleHttp\Command\Event\CommandErrorEvent;
87
use GuzzleHttp\Command\Model;
98
use GuzzleHttp\Event\SubscriberInterface;
109
use SegmentIO\Client;
@@ -99,7 +98,6 @@ public function onPrepare(PrepareEvent $event)
9998
}
10099

101100
$command = $event->getCommand();
102-
$name = $command->getName();
103101

104102
if (!$command->getOperation()->getData('batching')) {
105103
return false;
@@ -164,7 +162,6 @@ public function flush()
164162
return false;
165163
}
166164

167-
$commands = [];
168165
$operations = array_chunk($this->queue, $this->batchSize);
169166
foreach ($operations as $batch) {
170167
$this->client->import(['batch' => $batch]);

0 commit comments

Comments
 (0)