Completed
Pull Request — master (#7)
by Yann
11:20
created
Generator/OpenSslTokenGenerator.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
     public function __construct($length = self::DEFAULT_LENGTH)
21 21
     {
22 22
         if (!function_exists('openssl_random_pseudo_bytes')) {
23
-            throw new \RuntimeException;//todo
23
+            throw new \RuntimeException; //todo
24 24
         }
25 25
 
26 26
         $this->length = $length;
Please login to merge, or discard this patch.
Command/ArchiveTokenCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $this
25 25
             ->setName('yokai:security-token:archive')
26 26
             ->addOption('purpose', null, InputOption::VALUE_OPTIONAL, 'Filter tokens to archive on purpose.')
27
-            ->addOption('before',  null, InputOption::VALUE_OPTIONAL, 'Filter tokens to archive on created date.')
27
+            ->addOption('before', null, InputOption::VALUE_OPTIONAL, 'Filter tokens to archive on created date.')
28 28
         ;
29 29
     }
30 30
 
Please login to merge, or discard this patch.
Archive/DeleteArchivist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function __construct($repository)
22 22
     {
23 23
         if (!$repository instanceof EntityRepository) {
24
-            throw new \RuntimeException();//todo
24
+            throw new \RuntimeException(); //todo
25 25
         }
26 26
         $this->repository = $repository;
27 27
     }
Please login to merge, or discard this patch.
DependencyInjection/Factory/TokenConfigurationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $id = sprintf('yokai_security_token.configuration.%s', $purpose);
24 24
 
25 25
         if ($container->hasDefinition($id)) {
26
-            throw new \RuntimeException();//todo
26
+            throw new \RuntimeException(); //todo
27 27
         }
28 28
 
29 29
         $definition = new Definition(
Please login to merge, or discard this patch.
Configuration/TokenConfigurationRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function get($purpose)
32 32
     {
33 33
         if (!isset($this->configurations[$purpose])) {
34
-            throw new \RuntimeException;//todo
34
+            throw new \RuntimeException; //todo
35 35
         }
36 36
 
37 37
         return $this->configurations[$purpose];
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 call_user_func(
4
-    function () {
4
+    function() {
5 5
         if (!is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
6 6
             throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
7 7
         }
Please login to merge, or discard this patch.
Tests/Manager/TokenManagerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function it_create_unique_token()
84 84
     {
85
-        $token1 = new Token('string', 'jdoe','unique-token-1', 'reset-password',  '+1 day', []);
86
-        $token2 = new Token('string', 'jdoe','unique-token-2', 'reset-password',  '+1 day', []);
85
+        $token1 = new Token('string', 'jdoe', 'unique-token-1', 'reset-password', '+1 day', []);
86
+        $token2 = new Token('string', 'jdoe', 'unique-token-2', 'reset-password', '+1 day', []);
87 87
 
88 88
         $this->factory->expects($this->exactly(2))
89 89
                       ->method('create')
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function it_consume_token()
113 113
     {
114
-        $token = new Token('string', 'jdoe','unique-token', 'reset-password',  '+1 day', []);
114
+        $token = new Token('string', 'jdoe', 'unique-token', 'reset-password', '+1 day', []);
115 115
 
116 116
         $this->informationGuesser->get()
117 117
             ->shouldBeCalledTimes(1)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function it_extract_user_from_token()
133 133
     {
134
-        $token = new Token('string', 'jdoe','unique-token', 'reset-password',  '+1 day', []);
134
+        $token = new Token('string', 'jdoe', 'unique-token', 'reset-password', '+1 day', []);
135 135
 
136 136
         $this->userManager->get('string', 'jdoe')
137 137
             ->shouldBeCalledTimes(1)
Please login to merge, or discard this patch.