Completed
Pull Request — feature/bootstrap-commands (#303)
by Michiel
03:42 queued 01:14
created
MiddlewareBundle/Console/Command/BootstrapSmsSecondFactorCommand.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -137,6 +137,10 @@  discard block
 block discarded – undo
137 137
         );
138 138
     }
139 139
 
140
+    /**
141
+     * @param string $secondFactorId
142
+     * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity
143
+     */
140 144
     private function provePossession($secondFactorId, $identity, $phoneNumber)
141 145
     {
142 146
         $command = new ProvePhonePossessionCommand();
@@ -147,6 +151,9 @@  discard block
 block discarded – undo
147 151
         $this->process($command);
148 152
     }
149 153
 
154
+    /**
155
+     * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity
156
+     */
150 157
     private function verifyEmail($identity, $unverifiedSecondFactor)
151 158
     {
152 159
         $command = new VerifyEmailCommand();
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/MiddlewareBundle/Service/TokenBootstrapService.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @param $identityId
82
-     * @param $tokenType
81
+     * @param string $identityId
82
+     * @param string $tokenType
83 83
      * @return UnverifiedSecondFactor|null
84 84
      */
85 85
     public function findUnverifiedToken($identityId, $tokenType)
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param $identityId
94
-     * @param $tokenType
93
+     * @param string $identityId
94
+     * @param string $tokenType
95 95
      * @return VerifiedSecondFactor|null
96 96
      */
97 97
     public function findVerifiedToken($identityId, $tokenType)
Please login to merge, or discard this patch.