Passed
Pull Request — master (#686)
by Vitor
04:31
created
lib/Provider/Gateway/AGateway.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 abstract class AGateway implements IGateway {
20 20
 	use TConfigurable;
21
-	public const SCHEMA = [];
21
+	public const SCHEMA = [ ];
22 22
 	protected ?Settings $settings = null;
23 23
 
24 24
 	public function __construct(
@@ -29,25 +29,25 @@  discard block
 block discarded – undo
29 29
 	/**
30 30
 	 * @throws MessageTransmissionException
31 31
 	 */
32
-	#[\Override]
33
-	abstract public function send(string $identifier, string $message, array $extra = []): void;
32
+	#[\Override ]
33
+	abstract public function send(string $identifier, string $message, array $extra = [ ]): void;
34 34
 
35
-	#[\Override]
35
+	#[\Override ]
36 36
 	public function isComplete(?Settings $settings = null): bool {
37 37
 		if (!is_object($settings)) {
38 38
 			$settings = $this->getSettings();
39 39
 		}
40 40
 		$savedKeys = $this->appConfig->getKeys(Application::APP_ID);
41 41
 		$providerId = $settings->id ?? $this->getProviderId();
42
-		$fields = [];
42
+		$fields = [ ];
43 43
 		foreach ($settings->fields as $field) {
44
-			$fields[] = $providerId . '_' . $field->field;
44
+			$fields[ ] = $providerId.'_'.$field->field;
45 45
 		}
46 46
 		$intersect = array_intersect($fields, $savedKeys);
47 47
 		return count($intersect) === count($fields);
48 48
 	}
49 49
 
50
-	#[\Override]
50
+	#[\Override ]
51 51
 	public function getSettings(): Settings {
52 52
 		if ($this->settings !== null) {
53 53
 			return $this->settings;
@@ -57,16 +57,16 @@  discard block
 block discarded – undo
57 57
 		return $this->settings;
58 58
 	}
59 59
 
60
-	#[\Override]
60
+	#[\Override ]
61 61
 	abstract public function cliConfigure(InputInterface $input, OutputInterface $output): int;
62 62
 
63
-	#[\Override]
63
+	#[\Override ]
64 64
 	public function remove(?Settings $settings = null): void {
65 65
 		if (!is_object($settings)) {
66 66
 			$settings = $this->getSettings();
67 67
 		}
68 68
 		foreach ($settings->fields as $field) {
69
-			$method = 'delete' . $this->toCamel($field->field);
69
+			$method = 'delete'.$this->toCamel($field->field);
70 70
 			$this->{$method}();
71 71
 		}
72 72
 	}
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 		return str_replace(' ', '', ucwords(str_replace('_', ' ', $field)));
76 76
 	}
77 77
 
78
-	#[\Override]
78
+	#[\Override ]
79 79
 	public static function getProviderId(): string {
80 80
 		$id = self::deriveIdFromFqcn(static::class);
81 81
 		if ($id === null) {
82
-			throw new \LogicException('Cannot derive gateway id from FQCN: ' . static::class);
82
+			throw new \LogicException('Cannot derive gateway id from FQCN: '.static::class);
83 83
 		}
84 84
 		return $id;
85 85
 	}
Please login to merge, or discard this patch.