Skip to content

Commit 69cef0e

Browse files
committed
code style and type hints.
1 parent f2fd75e commit 69cef0e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Console/AddConsoleCommandPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\DependencyInjection\Reference;
8-
use Symfony\Component\VarDumper\VarDumper;
98

109
/**
1110
* Class AddConsoleCommandPass.

DependencyInjection/Nab3aExtension.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Symfony\Component\Config\FileLocator;
77
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
88
use Symfony\Component\DependencyInjection\Loader;
9-
use Symfony\Component\VarDumper\VarDumper;
109

1110
/**
1211
* This is the class that loads and manages your bundle configuration.
@@ -24,7 +23,7 @@ public function load(array $configs, ContainerBuilder $container)
2423
$config = $this->processConfiguration($configuration, $configs);
2524

2625
$loader = new Loader\YamlFileLoader($container, new FileLocator(
27-
__DIR__ . '/../Resources/config'
26+
__DIR__.'/../Resources/config'
2827
));
2928
$loader->load('services.yml');
3029
}

Stream/PipeCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ protected function execute(InputInterface $input, OutputInterface $output)
3434
$loop = $this->container->get('nab3a.event_loop');
3535

3636
// @todo
37-
//
37+
3838
// we need a timer that keeps track of the time the current connection
3939
// was started, because we must avoid connection churning.
40-
//
40+
4141
// filter parameters will change, we want to signal to the streaming
4242
// client that there it should reconnect, but if we don't accommodate
4343
// the fact that multiple changes could happen in a quick sequence, we'd
4444
// probably get blocked from the streaming API endpoints for too many
4545
// connection attempts.
46-
//
46+
4747
// When this app receives those errors, it manages them correctly,
4848
// but it still stupidly allows these situations to arise.
4949
// $timer = $watcher->watch($resource);

Twitter/StreamParameters.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Symfony\Component\Validator\Constraints as Assert;
66

7+
/**
8+
* Class StreamParameters.
9+
*/
710
class StreamParameters
811
{
912
/**
@@ -61,7 +64,7 @@ class StreamParameters
6164
protected $locations;
6265

6366
/**
64-
* @return mixed
67+
* @return string
6568
*/
6669
public function getLanguage()
6770
{

0 commit comments

Comments
 (0)