Completed
Pull Request — master (#289)
by Sander
03:18
created
controller/internalcontroller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	public function remind($credential_id) {
47 47
 		$credential = $this->credentialService->getCredentialById($credential_id, $this->userId);
48
-		if($credential) {
48
+		if ($credential) {
49 49
 			$credential->setExpireTime(time() + (24 * 60 * 60));
50 50
 			$this->credentialService->upd($credential);
51 51
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	public function read($credential_id) {
65 65
 
66 66
 		$credential = $this->credentialService->getCredentialById($credential_id, $this->userId);
67
-		if($credential) {
67
+		if ($credential) {
68 68
 			$credential->setExpireTime(0);
69 69
 			$this->credentialService->upd($credential);
70 70
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * @NoAdminRequired
91 91
 	 */
92 92
 	public function generatePerson() {
93
-		$context = [ 'http' => [ 'method' => 'GET' ], 'ssl' => [ 'verify_peer' => false, 'allow_self_signed'=> true ] ];
93
+		$context = ['http' => ['method' => 'GET'], 'ssl' => ['verify_peer' => false, 'allow_self_signed'=> true]];
94 94
 		$context = stream_context_create($context);
95 95
 		$random_person = json_decode(file_get_contents('http://api.namefake.com/', false, $context));
96 96
 		return new JSONResponse($random_person);
Please login to merge, or discard this patch.