Completed
Branch develop (e488ea)
by Neomerx
08:07
created
src/Authorization/AuthorizationRulesLoader.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * @param string      $policiesName
136 136
      * @param string      $class
137
-     * @param array       $methods
137
+     * @param string[]       $methods
138 138
      * @param string|null $resourcesType
139 139
      *
140 140
      * @return PolicyInterface
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
     /**
180 180
      * @param string|int      $key
181
-     * @param string|int|null $value
181
+     * @param null|string $value
182 182
      *
183 183
      * @return TargetInterface
184 184
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      *
121 121
      * @return string|null
122 122
      */
123
-    private function getResourcesType(string $className): ?string
123
+    private function getResourcesType(string $className): ? string
124 124
     {
125 125
         $resourceType = null;
126 126
         if (array_key_exists(ResourceAuthorizationRulesInterface::class, class_implements($className)) === true) {
Please login to merge, or discard this patch.
src/FileSystem/FileSystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         is_dir($folderPath) === true ?: $this->throwEx(new FileSystemException());
71 71
 
72
-        $iterator = call_user_func(function () use ($folderPath) {
72
+        $iterator = call_user_func(function() use ($folderPath) {
73 73
             foreach (new DirectoryIterator($folderPath) as $directoryIterator) {
74 74
                 /** @var DirectoryIterator $directoryIterator */
75 75
                 if ($directoryIterator->isDot() === false) {
Please login to merge, or discard this patch.
src/Settings/FileSettingsProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     private function checkDoNotHaveRequiredParametersOnCreate(string $className): bool
55 55
     {
56 56
         try {
57
-            $reflection  = new ReflectionClass($className);
57
+            $reflection = new ReflectionClass($className);
58 58
             if ($reflection->isInstantiable() === false) {
59 59
                 throw new InvalidSettingsClassException($className);
60 60
             }
Please login to merge, or discard this patch.
src/Packages/Data/DataSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
         $registered    = [];
98 98
         $modelSchemes  = new ModelSchemeInfo();
99
-        $registerModel = function ($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
99
+        $registerModel = function($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
100 100
             /** @var ModelInterface $modelClass */
101 101
             $modelSchemes->registerClass(
102 102
                 $modelClass,
Please login to merge, or discard this patch.
src/Packages/Monolog/MonologFileContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public static function configureContainer(LimoncelloContainerInterface $container): void
45 45
     {
46
-        $container[LoggerInterface::class] = function (PsrContainerInterface $container) {
46
+        $container[LoggerInterface::class] = function(PsrContainerInterface $container) {
47 47
             $settingsProvider = $container->get(SettingsProviderInterface::class);
48 48
             $appSettings      = $settingsProvider->get(A::class);
49 49
             $monologSettings  = $settingsProvider->get(C::class);
Please login to merge, or discard this patch.
src/Packages/PDO/PdoContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function configureContainer(LimoncelloContainerInterface $container): void
35 35
     {
36
-        $container[PDO::class] = function (PsrContainerInterface $container) {
36
+        $container[PDO::class] = function(PsrContainerInterface $container) {
37 37
             $settings = $container->get(SettingsProviderInterface::class)->get(C::class);
38 38
             $database = new PDO(
39 39
                 $settings[C::KEY_CONNECTION_STRING],
Please login to merge, or discard this patch.
src/Packages/FileSystem/FileSystemContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public static function configureContainer(LimoncelloContainerInterface $container): void
33 33
     {
34
-        $container[FileSystemInterface::class] = function () {
34
+        $container[FileSystemInterface::class] = function() {
35 35
             return new FileSystem();
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/Packages/Authorization/AuthorizationContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public static function configureContainer(LimoncelloContainerInterface $container): void
37 37
     {
38
-        $container[AuthorizationManagerInterface::class] = function (PsrContainerInterface $container) {
38
+        $container[AuthorizationManagerInterface::class] = function(PsrContainerInterface $container) {
39 39
             $settingsProvider = $container->get(SettingsProviderInterface::class);
40 40
             $settings         = $settingsProvider->get(S::class);
41 41
 
Please login to merge, or discard this patch.
src/Packages/Cors/CorsContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function configureContainer(LimoncelloContainerInterface $container): void
42 42
     {
43
-        $container[AnalyzerInterface::class] = function (PsrContainerInterface $container) {
43
+        $container[AnalyzerInterface::class] = function(PsrContainerInterface $container) {
44 44
             $settingsProvider = $container->get(SettingsProviderInterface::class);
45 45
             $appSettings      = $settingsProvider->get(A::class);
46 46
             $corsSettings     = $settingsProvider->get(C::class);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             return $analyzer;
55 55
         };
56 56
 
57
-        $container[CorsStorageInterface::class] = function () {
57
+        $container[CorsStorageInterface::class] = function() {
58 58
             return new CorsStorage();
59 59
         };
60 60
     }
Please login to merge, or discard this patch.