Passed
Push — master ( 484e36...59734e )
by Jakub
01:04
created
src/Loaders/PhpLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @author Jakub Konečný
11 11
  */
12
-final class PhpLoader extends FileLoader
13
-{
12
+final class PhpLoader extends FileLoader {
14 13
     protected string $extension = "php";
15 14
 
16 15
     protected function parseFile(string $filename): array
Please login to merge, or discard this patch.
src/Loaders/IniLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @author Jakub Konečný
11 11
  */
12
-final class IniLoader extends FileLoader
13
-{
12
+final class IniLoader extends FileLoader {
14 13
     protected string $extension = "ini";
15 14
 
16 15
     /**
Please login to merge, or discard this patch.
src/Loaders/YamlLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
  *
12 12
  * @author Jakub Konečný
13 13
  */
14
-final class YamlLoader extends FileLoader
15
-{
14
+final class YamlLoader extends FileLoader {
16 15
     protected string $extension = "yaml";
17 16
 
18 17
     /**
Please login to merge, or discard this patch.
src/Loaders/FileLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
     /**
51 51
      * @param string[] $folders
52 52
      */
53
-    public function __construct(protected LocaleResolver $resolver = new ManualLocaleResolver(), array $folders = [])
54
-    {
53
+    public function __construct(protected LocaleResolver $resolver = new ManualLocaleResolver(), array $folders = []) {
55 54
         $this->setFolders($folders);
56 55
     }
57 56
 
Please login to merge, or discard this patch.
src/Loaders/MessagesCatalogue.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
  *
13 13
  * @author Jakub Konečný
14 14
  */
15
-final class MessagesCatalogue extends FileLoader
16
-{
15
+final class MessagesCatalogue extends FileLoader {
17 16
     protected string $extension = "php";
18 17
 
19 18
     protected function parseFile(string $filename): array
Please login to merge, or discard this patch.
src/Loaders/JsonLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
  *
12 12
  * @author Jakub Konečný
13 13
  */
14
-final class JsonLoader extends FileLoader
15
-{
14
+final class JsonLoader extends FileLoader {
16 15
     protected string $extension = "json";
17 16
 
18 17
     /**
Please login to merge, or discard this patch.
src/Loaders/NeonLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
  *
12 12
  * @author Jakub Konečný
13 13
  */
14
-final class NeonLoader extends FileLoader
15
-{
14
+final class NeonLoader extends FileLoader {
16 15
     protected string $extension = "neon";
17 16
 
18 17
     /**
Please login to merge, or discard this patch.
src/Loader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  *
9 9
  * @author Jakub Konečný
10 10
  */
11
-interface Loader
12
-{
11
+interface Loader {
13 12
     public function getLang(): string;
14 13
     public function setLang(string $lang): void;
15 14
     public function getDefaultLang(): string;
Please login to merge, or discard this patch.
src/Bridges/NetteDI/ITranslationProvider.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 
4 4
 namespace Nexendrie\Translation\Bridges\NetteDI;
5 5
 
6
-if (false) { // @phpstan-ignore if.alwaysFalse
6
+if (false) {
7
+// @phpstan-ignore if.alwaysFalse
7 8
     /** @deprecated Use TranslationProvider */
8
-    interface ITranslationProvider extends TranslationProvider
9
-    {
9
+    interface ITranslationProvider extends TranslationProvider {
10 10
     }
11 11
 } elseif (!interface_exists(ITranslationProvider::class)) {
12 12
     class_alias(TranslationProvider::class, ITranslationProvider::class);
Please login to merge, or discard this patch.