Passed
Pull Request — master (#501)
by Vitor
04:07
created
lib/Service/Gateway/Signal/Gateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		$body = $response->getBody();
75 75
 		$json = json_decode($body, true);
76 76
 
77
-		if ($response->getStatusCode() !== 200 || is_null($json) || !is_array($json) || !isset($json['success']) || $json['success'] !== true) {
77
+		if ($response->getStatusCode() !== 200 || is_null($json) || !is_array($json) || !isset($json[ 'success' ]) || $json[ 'success' ] !== true) {
78 78
 			$status = $response->getStatusCode();
79 79
 			throw new SmsTransmissionException("error reported by Signal gateway, status=$status, body=$body}");
80 80
 		}
Please login to merge, or discard this patch.
lib/Service/StateStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	}
42 42
 
43 43
 	private function buildConfigKey(string $gatewayName, string $key) {
44
-		return "$gatewayName" . "_$key";
44
+		return "$gatewayName"."_$key";
45 45
 	}
46 46
 
47 47
 	private function getUserValue(IUser $user, string $gatewayName, string $key, $default = '') {
Please login to merge, or discard this patch.
lib/Command/Status.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@
 block discarded – undo
52 52
 
53 53
 	protected function execute(InputInterface $input, OutputInterface $output) {
54 54
 		$signalConfigured = $this->signalGateway->getConfig()->isComplete();
55
-		$output->writeln('Signal gateway: ' . ($signalConfigured ? 'configured' : 'not configured'));
55
+		$output->writeln('Signal gateway: '.($signalConfigured ? 'configured' : 'not configured'));
56 56
 		$smsConfigured = $this->smsGateway->getConfig()->isComplete();
57
-		$output->writeln('SMS gateway: ' . ($smsConfigured ? 'configured' : 'not configured'));
57
+		$output->writeln('SMS gateway: '.($smsConfigured ? 'configured' : 'not configured'));
58 58
 		$telegramConfigured = $this->telegramGateway->getConfig()->isComplete();
59
-		$output->writeln('Telegram gateway: ' . ($telegramConfigured ? 'configured' : 'not configured'));
59
+		$output->writeln('Telegram gateway: '.($telegramConfigured ? 'configured' : 'not configured'));
60 60
 		return 0;
61 61
 	}
62 62
 }
Please login to merge, or discard this patch.
lib/Provider/AProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	protected $l10n;
65 65
 
66 66
 	private function getSessionKey() {
67
-		return "twofactor_gateway_" . $this->gatewayName . "_secret";
67
+		return "twofactor_gateway_".$this->gatewayName."_secret";
68 68
 	}
69 69
 
70 70
 	public function __construct(string $gatewayId,
Please login to merge, or discard this patch.
lib/PhoneNumberMask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
 		$length = strlen($number);
34 34
 		$start = $length - 3;
35 35
 
36
-		return str_repeat('*', $start) . substr($number, $start);
36
+		return str_repeat('*', $start).substr($number, $start);
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
lib/Exception/SmsTransmissionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * @author Christoph Wurst <[email protected]>
Please login to merge, or discard this patch.