Completed
Push — master ( cf2294...e59301 )
by Neomerx
07:39
created
src/Settings/InstanceSettingsProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
         $nextIndex    = 0;
193 193
         $hashMap      = []; // hash  => index
194 194
         $settingsData = []; // index => instance data
195
-        $getIndex     = function (SettingsInterface $instance) use (&$nextIndex, &$hashMap, &$settingsData): int {
195
+        $getIndex     = function(SettingsInterface $instance) use (&$nextIndex, &$hashMap, &$settingsData): int {
196 196
             $hash = spl_object_hash($instance);
197 197
             if (array_key_exists($hash, $hashMap) === true) {
198 198
                 $index = $hashMap[$hash];
Please login to merge, or discard this patch.
src/Packages/Application/ApplicationContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public static function configureContainer(LimoncelloContainerInterface $container): void
39 39
     {
40 40
         $container[CommandStorageInterface::class] =
41
-            function (PsrContainerInterface $container): CommandStorageInterface {
41
+            function(PsrContainerInterface $container): CommandStorageInterface {
42 42
                 $creator = new class
43 43
                 {
44 44
                     use ClassIsTrait;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 $providerClasses  = $appConfig[S::KEY_PROVIDER_CLASSES];
80 80
                 $commandsFolder   = $appConfig[S::KEY_COMMANDS_FOLDER];
81 81
                 $commandsFileMask = $appConfig[S::KEY_COMMANDS_FILE_MASK] ?? '*.php';
82
-                $commandsPath     = $commandsFolder . DIRECTORY_SEPARATOR . $commandsFileMask;
82
+                $commandsPath     = $commandsFolder.DIRECTORY_SEPARATOR.$commandsFileMask;
83 83
 
84 84
                 $storage = $creator->createCommandStorage($commandsPath, $providerClasses);
85 85
 
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
             /** @var CacheSettingsProviderInterface $settingsProvider */
48 48
             $settingsProvider = $container->get(CacheSettingsProviderInterface::class);
49 49
             $appConfig        = $settingsProvider->getApplicationConfiguration();
Please login to merge, or discard this patch.
src/Packages/L10n/L10nSettings.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-     * @return array
72
+     * @return string
73 73
      */
74 74
     protected function getSettings(): array
75 75
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     /**
90 90
      *
91
-     * @return iterable
91
+     * @return \Generator
92 92
      */
93 93
     private function getMessageDescriptionsFromProviders(): iterable
94 94
     {
Please login to merge, or discard this patch.
src/Packages/Monolog/MonologFileSettings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         );
66 66
         assert(empty($logFile) === false, "Invalid Logs file name `$logFile`.");
67 67
 
68
-        $logPath = $logFolder . DIRECTORY_SEPARATOR . $logFile;
68
+        $logPath = $logFolder.DIRECTORY_SEPARATOR.$logFile;
69 69
 
70 70
         return $defaults + [static::KEY_LOG_PATH => $logPath];
71 71
     }
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $appConfig = $this->getAppConfig();
79 79
 
80
-        $isDebug = (bool)($appConfig[A::KEY_IS_DEBUG] ?? false);
80
+        $isDebug = (bool) ($appConfig[A::KEY_IS_DEBUG] ?? false);
81 81
 
82 82
         return [
83
-            static::KEY_IS_ENABLED => (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false),
83
+            static::KEY_IS_ENABLED => (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false),
84 84
             static::KEY_LOG_LEVEL  => $isDebug === true ? Logger::DEBUG : Logger::INFO,
85 85
             static::KEY_LOG_FILE   => 'limoncello.log',
86 86
         ];
Please login to merge, or discard this patch.
src/Data/ModelSchemaInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     public function setData(array $data): self
105 105
     {
106 106
         list($this->foreignKeys, $this->belongsToMany, $this->relationshipTypes,
107
-            $this->reversedRelationships,$this->tableNames, $this->primaryKeys,
107
+            $this->reversedRelationships, $this->tableNames, $this->primaryKeys,
108 108
             $this->attributeTypes, $this->attributeLengths, $this->attributes, $this->reversedClasses) = $data;
109 109
 
110 110
         return $this;
Please login to merge, or discard this patch.
src/Packages/Cors/CorsSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $appConfig = $this->getAppConfig();
109 109
 
110
-        $defaults[static::KEY_LOG_IS_ENABLED] = (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false);
110
+        $defaults[static::KEY_LOG_IS_ENABLED] = (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false);
111 111
 
112 112
         if (array_key_exists(A::KEY_APP_ORIGIN_SCHEMA, $appConfig) === true &&
113 113
             array_key_exists(A::KEY_APP_ORIGIN_HOST, $appConfig) === true &&
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
              * @see http://php.net/manual/function.parse-url.php
120 120
              */
121 121
             $defaults[static::KEY_SERVER_ORIGIN] = [
122
-                static::KEY_SERVER_ORIGIN_SCHEMA => (string)$appConfig[A::KEY_APP_ORIGIN_SCHEMA],
123
-                static::KEY_SERVER_ORIGIN_HOST   => (string)$appConfig[A::KEY_APP_ORIGIN_HOST],
124
-                static::KEY_SERVER_ORIGIN_PORT   => (string)$appConfig[A::KEY_APP_ORIGIN_PORT],
122
+                static::KEY_SERVER_ORIGIN_SCHEMA => (string) $appConfig[A::KEY_APP_ORIGIN_SCHEMA],
123
+                static::KEY_SERVER_ORIGIN_HOST   => (string) $appConfig[A::KEY_APP_ORIGIN_HOST],
124
+                static::KEY_SERVER_ORIGIN_PORT   => (string) $appConfig[A::KEY_APP_ORIGIN_PORT],
125 125
             ];
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/Packages/Data/DataContainerConfigurator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
     public static function configureContainer(LimoncelloContainerInterface $container): void
39 39
     {
40 40
         $container[ModelSchemaInfoInterface::class] =
41
-            function (PsrContainerInterface $container): ModelSchemaInfoInterface {
41
+            function(PsrContainerInterface $container): ModelSchemaInfoInterface {
42 42
                 $settings = $container->get(SettingsProviderInterface::class)->get(DataSettings::class);
43 43
                 $data     = $settings[DataSettings::KEY_MODELS_SCHEMA_INFO];
44 44
 
45 45
                 return (new ModelSchemaInfo())->setData($data);
46 46
             };
47 47
 
48
-        $container[Connection::class] = function (PsrContainerInterface $container): Connection {
48
+        $container[Connection::class] = function(PsrContainerInterface $container): Connection {
49 49
             $settings = $container->get(SettingsProviderInterface::class)->get(DoctrineSettings::class);
50 50
             $params   = array_filter([
51 51
                 'driver'   => $settings[DoctrineSettings::KEY_DRIVER] ?? null,
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
                 'memory'   => $settings[DoctrineSettings::KEY_MEMORY] ?? null,
59 59
                 'path'     => $settings[DoctrineSettings::KEY_PATH] ?? null,
60 60
                 'charset'  => $settings[DoctrineSettings::KEY_CHARSET] ?? 'UTF8',
61
-            ], function ($value) {
61
+            ], function($value) {
62 62
                 return $value !== null;
63 63
             });
64
-            $extra    = $settings[DoctrineSettings::KEY_EXTRA] ?? [];
64
+            $extra = $settings[DoctrineSettings::KEY_EXTRA] ?? [];
65 65
 
66 66
             $connection = DriverManager::getConnection($params + $extra);
67 67
 
Please login to merge, or discard this patch.
src/Commands/TemplateOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
                 $folder .= DIRECTORY_SEPARATOR;
194 194
             }
195 195
 
196
-            $this->outputPath = $folder . $this->getOutputFileName();
196
+            $this->outputPath = $folder.$this->getOutputFileName();
197 197
         }
198 198
 
199 199
         return $this->outputPath;
Please login to merge, or discard this patch.