Completed
Branch feature/pre-split (197e7e)
by Anton
03:26
created
source/Spiral/Security/PermissionManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * @param RulesInterface   $rules
54
-     * @param Patternizer|null $patternizer
54
+     * @param Patternizer $patternizer
55 55
      */
56 56
     public function __construct(RulesInterface $rules, Patternizer $patternizer)
57 57
     {
Please login to merge, or discard this patch.
source/Spiral/Security/Traits/GuardedTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     {
89 89
         if (defined('self::GUARD_NAMESPACE')) {
90 90
             //Yay! Isolation
91
-            $permission = constant(get_called_class() . '::' . 'GUARD_NAMESPACE') . GuardInterface::NS_SEPARATOR . $permission;
91
+            $permission = constant(get_called_class().'::'.'GUARD_NAMESPACE').GuardInterface::NS_SEPARATOR.$permission;
92 92
         }
93 93
 
94 94
         return $permission;
Please login to merge, or discard this patch.
source/Spiral/Security/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 $this->resolver->resolveArguments($method, $parameters));
76 76
         } catch (\Throwable $e) {
77 77
             throw new RuleException(
78
-                '[' . get_class($this) . '] ' . $e->getMessage(),
78
+                '['.get_class($this).'] '.$e->getMessage(),
79 79
                 $e->getCode(),
80 80
                 $e
81 81
             );
Please login to merge, or discard this patch.
source/Spiral/Security/RuleManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 
125 125
             if (!$rule instanceof RuleInterface) {
126 126
                 throw new RuleException(
127
-                    "Rule '{$name}' must point to RuleInterface, '" . get_class($rule) . "' given"
127
+                    "Rule '{$name}' must point to RuleInterface, '".get_class($rule)."' given"
128 128
                 );
129 129
             }
130 130
 
Please login to merge, or discard this patch.