Passed
Push — master ( 55e034...89d3b2 )
by Blizzz
09:15
created
lib/private/Authentication/TwoFactorAuth/Registry.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -35,37 +35,37 @@
 block discarded – undo
35 35
 
36 36
 class Registry implements IRegistry {
37 37
 
38
-	/** @var ProviderUserAssignmentDao */
39
-	private $assignmentDao;
38
+    /** @var ProviderUserAssignmentDao */
39
+    private $assignmentDao;
40 40
 
41
-	/** @var IEventDispatcher */
42
-	private $dispatcher;
41
+    /** @var IEventDispatcher */
42
+    private $dispatcher;
43 43
 
44
-	public function __construct(ProviderUserAssignmentDao $assignmentDao,
45
-								IEventDispatcher $dispatcher) {
46
-		$this->assignmentDao = $assignmentDao;
47
-		$this->dispatcher = $dispatcher;
48
-	}
44
+    public function __construct(ProviderUserAssignmentDao $assignmentDao,
45
+                                IEventDispatcher $dispatcher) {
46
+        $this->assignmentDao = $assignmentDao;
47
+        $this->dispatcher = $dispatcher;
48
+    }
49 49
 
50
-	public function getProviderStates(IUser $user): array {
51
-		return $this->assignmentDao->getState($user->getUID());
52
-	}
50
+    public function getProviderStates(IUser $user): array {
51
+        return $this->assignmentDao->getState($user->getUID());
52
+    }
53 53
 
54
-	public function enableProviderFor(IProvider $provider, IUser $user) {
55
-		$this->assignmentDao->persist($provider->getId(), $user->getUID(), 1);
54
+    public function enableProviderFor(IProvider $provider, IUser $user) {
55
+        $this->assignmentDao->persist($provider->getId(), $user->getUID(), 1);
56 56
 
57
-		$event = new RegistryEvent($provider, $user);
58
-		$this->dispatcher->dispatch(self::EVENT_PROVIDER_ENABLED, $event);
59
-	}
57
+        $event = new RegistryEvent($provider, $user);
58
+        $this->dispatcher->dispatch(self::EVENT_PROVIDER_ENABLED, $event);
59
+    }
60 60
 
61
-	public function disableProviderFor(IProvider $provider, IUser $user) {
62
-		$this->assignmentDao->persist($provider->getId(), $user->getUID(), 0);
61
+    public function disableProviderFor(IProvider $provider, IUser $user) {
62
+        $this->assignmentDao->persist($provider->getId(), $user->getUID(), 0);
63 63
 
64
-		$event = new RegistryEvent($provider, $user);
65
-		$this->dispatcher->dispatch(self::EVENT_PROVIDER_DISABLED, $event);
66
-	}
64
+        $event = new RegistryEvent($provider, $user);
65
+        $this->dispatcher->dispatch(self::EVENT_PROVIDER_DISABLED, $event);
66
+    }
67 67
 
68
-	public function cleanUp(string $providerId) {
69
-		$this->assignmentDao->deleteAll($providerId);
70
-	}
68
+    public function cleanUp(string $providerId) {
69
+        $this->assignmentDao->deleteAll($providerId);
70
+    }
71 71
 }
Please login to merge, or discard this patch.
lib/public/EventDispatcher/Event.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -37,18 +37,18 @@
 block discarded – undo
37 37
  */
38 38
 class Event extends SymfonyEvent {
39 39
 
40
-	/**
41
-	 * Compatibility constructor
42
-	 *
43
-	 * In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base
44
-	 * class that had a constructor (with default arguments). To lower the risk of
45
-	 * a breaking change (PHP won't allow parent constructor calls if there is none),
46
-	 * this empty constructor's only purpose is to hopefully not break existing sub-
47
-	 * classes of this class.
48
-	 *
49
-	 * @since 18.0.0
50
-	 */
51
-	public function __construct() {
52
-	}
40
+    /**
41
+     * Compatibility constructor
42
+     *
43
+     * In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base
44
+     * class that had a constructor (with default arguments). To lower the risk of
45
+     * a breaking change (PHP won't allow parent constructor calls if there is none),
46
+     * this empty constructor's only purpose is to hopefully not break existing sub-
47
+     * classes of this class.
48
+     *
49
+     * @since 18.0.0
50
+     */
51
+    public function __construct() {
52
+    }
53 53
 
54 54
 }
Please login to merge, or discard this patch.
lib/public/Security/CSP/AddContentSecurityPolicyEvent.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@
 block discarded – undo
33 33
  */
34 34
 class AddContentSecurityPolicyEvent extends Event {
35 35
 
36
-	/** @var ContentSecurityPolicyManager */
37
-	private $policyManager;
36
+    /** @var ContentSecurityPolicyManager */
37
+    private $policyManager;
38 38
 
39
-	/**
40
-	 * @since 17.0.0
41
-	 */
42
-	public function __construct(ContentSecurityPolicyManager $policyManager) {
43
-		parent::__construct();
44
-		$this->policyManager = $policyManager;
45
-	}
39
+    /**
40
+     * @since 17.0.0
41
+     */
42
+    public function __construct(ContentSecurityPolicyManager $policyManager) {
43
+        parent::__construct();
44
+        $this->policyManager = $policyManager;
45
+    }
46 46
 
47
-	/**
48
-	 * @since 17.0.0
49
-	 */
50
-	public function addPolicy(EmptyContentSecurityPolicy $csp): void {
51
-		$this->policyManager->addDefaultPolicy($csp);
52
-	}
47
+    /**
48
+     * @since 17.0.0
49
+     */
50
+    public function addPolicy(EmptyContentSecurityPolicy $csp): void {
51
+        $this->policyManager->addDefaultPolicy($csp);
52
+    }
53 53
 }
Please login to merge, or discard this patch.
lib/public/Security/FeaturePolicy/AddFeaturePolicyEvent.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@
 block discarded – undo
33 33
  */
34 34
 class AddFeaturePolicyEvent extends Event {
35 35
 
36
-	/** @var FeaturePolicyManager */
37
-	private $policyManager;
36
+    /** @var FeaturePolicyManager */
37
+    private $policyManager;
38 38
 
39
-	/**
40
-	 * @since 17.0.0
41
-	 */
42
-	public function __construct(FeaturePolicyManager $policyManager) {
43
-		parent::__construct();
44
-		$this->policyManager = $policyManager;
45
-	}
39
+    /**
40
+     * @since 17.0.0
41
+     */
42
+    public function __construct(FeaturePolicyManager $policyManager) {
43
+        parent::__construct();
44
+        $this->policyManager = $policyManager;
45
+    }
46 46
 
47
-	/**
48
-	 * @since 17.0.0
49
-	 */
50
-	public function addPolicy(EmptyFeaturePolicy $policy) {
51
-		$this->policyManager->addDefaultPolicy($policy);
52
-	}
47
+    /**
48
+     * @since 17.0.0
49
+     */
50
+    public function addPolicy(EmptyFeaturePolicy $policy) {
51
+        $this->policyManager->addDefaultPolicy($policy);
52
+    }
53 53
 }
Please login to merge, or discard this patch.