Completed
Push — develop ( c73a77...c0f65e )
by Neomerx
02:32
created
src/Data/FileSeedRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         $path = $this->getSeedsPath();
66 66
         assert($fileSystem->exists($path) === true);
67
-        $this->getIO()->writeInfo("Seeds `$path` started." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
67
+        $this->getIO()->writeInfo("Seeds `$path` started.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
68 68
 
69 69
         $seedClasses = $fileSystem->requireFile($path);
70 70
         $this->setSeedClasses($seedClasses);
Please login to merge, or discard this patch.
src/Data/BaseMigrationRunner.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
     {
74 74
         foreach ($this->getMigrations($container) as $class) {
75 75
             assert(is_string($class));
76
-            $this->getIO()->writeInfo("Starting migration for `$class`..." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
76
+            $this->getIO()->writeInfo("Starting migration for `$class`...".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
77 77
             /** @var MigrationInterface $migration */
78 78
             $migration = new $class($container);
79 79
             $migration->init($container)->migrate();
80
-            $this->getIO()->writeInfo("Migration finished for `$class`." . PHP_EOL, IoInterface::VERBOSITY_NORMAL);
80
+            $this->getIO()->writeInfo("Migration finished for `$class`.".PHP_EOL, IoInterface::VERBOSITY_NORMAL);
81 81
         }
82 82
     }
83 83
 
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
     {
91 91
         foreach ($this->getRollbacks($container) as $class) {
92 92
             assert(is_string($class));
93
-            $this->getIO()->writeInfo("Starting rollback for `$class`..." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
93
+            $this->getIO()->writeInfo("Starting rollback for `$class`...".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
94 94
             /** @var MigrationInterface $migration */
95 95
             $migration = new $class($container);
96 96
             $migration->init($container)->rollback();
97
-            $this->getIO()->writeInfo("Rollback finished for `$class`." . PHP_EOL, IoInterface::VERBOSITY_NORMAL);
97
+            $this->getIO()->writeInfo("Rollback finished for `$class`.".PHP_EOL, IoInterface::VERBOSITY_NORMAL);
98 98
         }
99 99
 
100 100
         $manager = $this->getConnection($container)->getSchemaManager();
Please login to merge, or discard this patch.
src/Data/FileMigrationRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $path = $this->getMigrationsPath();
60 60
         assert($fileSystem->exists($path) === true);
61 61
 
62
-        $this->getIO()->writeInfo("Migrations `$path` started." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
62
+        $this->getIO()->writeInfo("Migrations `$path` started.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
63 63
 
64 64
         $migrationClasses = $fileSystem->requireFile($path);
65 65
         $this->setMigrationClasses($migrationClasses);
Please login to merge, or discard this patch.
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/Commands/ApplicationCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 $this->executeClear($container, $inOut);
113 113
                 break;
114 114
             default:
115
-                $inOut->writeError("Unsupported action `$action`." . PHP_EOL);
115
+                $inOut->writeError("Unsupported action `$action`.".PHP_EOL);
116 116
                 break;
117 117
         }
118 118
     }
@@ -137,17 +137,17 @@  discard block
 block discarded – undo
137 137
             throw new ConfigurationException();
138 138
         }
139 139
 
140
-        $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php';
140
+        $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php';
141 141
 
142 142
         $fileSystem = $this->getFileSystem($container);
143 143
         if ($fileSystem->exists($path) === true) {
144 144
             $fileSystem->delete($path);
145
-            $inOut->writeInfo("Cache file deleted `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
145
+            $inOut->writeInfo("Cache file deleted `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
146 146
 
147 147
             return;
148 148
         }
149 149
 
150
-        $inOut->writeInfo('Cache already clean.' . PHP_EOL);
150
+        $inOut->writeInfo('Cache already clean.'.PHP_EOL);
151 151
     }
152 152
 
153 153
     /**
@@ -174,11 +174,11 @@  discard block
 block discarded – undo
174 174
         $settingsData     = $settingsProvider->serialize();
175 175
         $content          = $this->composeContent($settingsData, $namespace, $class, $method);
176 176
 
177
-        $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php';
177
+        $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php';
178 178
         $this->getFileSystem($container)->write($path, $content);
179 179
 
180
-        $inOut->writeInfo('Cache created.' . PHP_EOL);
181
-        $inOut->writeInfo("Cache written to `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
180
+        $inOut->writeInfo('Cache created.'.PHP_EOL);
181
+        $inOut->writeInfo("Cache written to `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE);
182 182
     }
183 183
 
184 184
     /**
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
 
246 246
         assert(
247 247
             $data !== null,
248
-            'It seems the data are not exportable. It is likely to be caused by class instances ' .
249
-            'that do not implement ` __set_state` magic method required by `var_export`. ' .
248
+            'It seems the data are not exportable. It is likely to be caused by class instances '.
249
+            'that do not implement ` __set_state` magic method required by `var_export`. '.
250 250
             'See http://php.net/manual/en/language.oop5.magic.php#object.set-state for more details.'
251 251
         );
252 252
 
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.