Passed
Push — dependabot/composer/composer/c... ( 9bb1db )
by
unknown
11:32
created
resources/lang/fr/messages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3
11 11
  */
12 12
 
13
-return array (
13
+return array(
14 14
 
15 15
     'Translation Tool'              =>  'Outil de traduction',
16 16
     'Manage webtrees translation.'  =>  'Gère les traductions de webtrees',
Please login to merge, or discard this patch.
app/Http/RequestHandlers/TranslationStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             $locale->languageTag()
71 71
         );
72 72
         
73
-        return $this->viewResponse($this->module->name() . '::status', [
73
+        return $this->viewResponse($this->module->name().'::status', [
74 74
             'title'                 =>  $this->module->title(),
75 75
             'language'              =>  $locale->endonym(),
76 76
             'source_code_paths'     =>  $sourceCodePaths->flatten()->sort(),
Please login to merge, or discard this patch.
app/TranslationToolModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@
 block discarded – undo
71 71
      */
72 72
     public function loadRoutes(Map $router): void
73 73
     {
74
-        $router->attach('', '', static function (Map $router): void {
74
+        $router->attach('', '', static function(Map $router): void {
75 75
 
76 76
 
77
-            $router->attach('', '/module-maj/translationtool', static function (Map $router): void {
77
+            $router->attach('', '/module-maj/translationtool', static function(Map $router): void {
78 78
 
79 79
                 $router->extras([
80 80
                     'middleware' => [
Please login to merge, or discard this patch.
app/Services/SourceCodeService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function sourceCodePaths(): Collection
61 61
     {
62 62
         $paths = app(ModuleService::class)->findByInterface(ModuleMyArtJaubInterface::class)
63
-            ->mapWithKeys(function (ModuleMyArtJaubInterface $module): array {
63
+            ->mapWithKeys(function(ModuleMyArtJaubInterface $module): array {
64 64
                 return [$module->name() => [realpath($module->resourcesFolder())]];
65 65
             });
66 66
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         foreach ($maj_packages as list($maj_package, $psr4_paths)) {
70 70
             /** @var PackageInterface $maj_package */
71 71
             $installer_name = $maj_package->getExtra()['installer-name'] ?? '';
72
-            $key = $installer_name === '' ? $maj_package->getName() : '_' . $installer_name . '_';
72
+            $key = $installer_name === '' ? $maj_package->getName() : '_'.$installer_name.'_';
73 73
             if (count($psr4_paths) > 0) {
74 74
                 $paths->put($key, array_merge($paths->get($key, []), $psr4_paths));
75 75
             }
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
         foreach ($source_code_paths as $package => $paths) {
94 94
             $php_files = array();
95 95
             foreach ($paths as $path) {
96
-                $php_files = array_merge($php_files, $this->glob_recursive($path . '/*.php') ?: array());
97
-                $php_files = array_merge($php_files, $this->glob_recursive($path . '/*.phtml') ?: array());
96
+                $php_files = array_merge($php_files, $this->glob_recursive($path.'/*.php') ?: array());
97
+                $php_files = array_merge($php_files, $this->glob_recursive($path.'/*.phtml') ?: array());
98 98
             }
99 99
 
100 100
             $php_scanner = new PhpScanner(Translations::create($package));
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function listMyArtJaubTranslations(string $language): Collection
129 129
     {
130 130
         return app(ModuleService::class)->findByInterface(ModuleMyArtJaubInterface::class)
131
-            ->mapWithKeys(function (ModuleMyArtJaubInterface $module) use ($language): array {
131
+            ->mapWithKeys(function(ModuleMyArtJaubInterface $module) use ($language): array {
132 132
                 return [$module->name() => $module->customTranslations($language)];
133 133
             });
134 134
     }
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
     protected function glob_recursive(string $pattern, int $flags = 0): array
146 146
     {
147 147
         $files = glob($pattern, $flags) ?: [];
148
-        $dirs = glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) ?: [];
148
+        $dirs = glob(dirname($pattern).'/*', GLOB_ONLYDIR | GLOB_NOSORT) ?: [];
149 149
 
150 150
         foreach ($dirs as $dir) {
151
-            $files = array_merge($files, $this->glob_recursive($dir . '/' . basename($pattern), $flags));
151
+            $files = array_merge($files, $this->glob_recursive($dir.'/'.basename($pattern), $flags));
152 152
         }
153 153
 
154 154
         return $files;
Please login to merge, or discard this patch.
app/Model/TranslationsAnalyzer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
         $key = $translation->getOriginal();
92 92
         $translation_plural = $translation->getPlural();
93 93
         if ($translation_plural !== null && strlen($translation_plural) > 0) {
94
-            $key .= I18N::PLURAL . $translation_plural;
94
+            $key .= I18N::PLURAL.$translation_plural;
95 95
         }
96 96
         $translation_context = $translation->getContext();
97 97
         if ($translation_context !== null && strlen($translation_context) > 0) {
98
-            $key = $translation_context . I18N::CONTEXT . $key;
98
+            $key = $translation_context.I18N::CONTEXT.$key;
99 99
         }
100 100
         return $key;
101 101
     }
Please login to merge, or discard this patch.
app/Services/ComposerService.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
     public function listMyArtJaubPackagesPaths(): array
59 59
     {
60 60
         if (getenv('HOME') === false) {
61
-            putenv('HOME=' . Webtrees::DATA_DIR);
61
+            putenv('HOME='.Webtrees::DATA_DIR);
62 62
         }
63 63
 
64
-        $composer = Factory::create(new NullIO(), Webtrees::ROOT_DIR . 'composer.json');
64
+        $composer = Factory::create(new NullIO(), Webtrees::ROOT_DIR.'composer.json');
65 65
 
66 66
         $packages = $composer->getRepositoryManager()
67 67
             ->getLocalRepository()
@@ -100,8 +100,7 @@  discard block
 block discarded – undo
100 100
             [$package]
101 101
         );
102 102
         array_shift($package_map);
103
-        $autoloads = count($package_map) == 0 ? ['psr-4' => []] :
104
-            $autoload_generator->parseAutoloads($package_map, $composer->getPackage());
103
+        $autoloads = count($package_map) == 0 ? ['psr-4' => []] : $autoload_generator->parseAutoloads($package_map, $composer->getPackage());
105 104
         $psr4_paths = [];
106 105
         foreach ($autoloads['psr-4'] as $psr4_ns_paths) {
107 106
             foreach ($psr4_ns_paths as $psr4_ns_path) {
Please login to merge, or discard this patch.