Completed
Push — master ( 7e39f0...71cd50 )
by Dion
02:58
created
src/Command/RestoreSectionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     {
85 85
         $question = new Question('<question>Choose record.</question> (#id): ');
86 86
 
87
-        $question->setValidator(function ($id) {
87
+        $question->setValidator(function($id) {
88 88
             try {
89 89
                 return $this->sectionHistoryManager->read(Id::fromInt((int) $id));
90 90
             } catch (SectionHistoryNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/DeleteFieldCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     private function getField(InputInterface $input, OutputInterface $output): ?Field
87 87
     {
88 88
         $question = new Question('<question>What record do you want to delete?</question> (#id): ');
89
-        $question->setValidator(function ($id) {
89
+        $question->setValidator(function($id) {
90 90
             try {
91 91
                 return $this->fieldManager->read(Id::fromInt((int) $id));
92 92
             } catch (FieldNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/UpdateFieldCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     private function getField(InputInterface $input, OutputInterface $output): Field
73 73
     {
74 74
         $question = new Question('<question>What record do you want to update?</question> (#id): ');
75
-        $question->setValidator(function ($id) {
75
+        $question->setValidator(function($id) {
76 76
             try {
77 77
                 return $this->fieldManager->read(Id::fromInt((int) $id));
78 78
             } catch (FieldNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/DeleteApplicationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     private function getApplicationRecord(InputInterface $input, OutputInterface $output): ?ApplicationInterface
69 69
     {
70 70
         $question = new Question('<question>What record do you want to delete?</question> (#id): ');
71
-        $question->setValidator(function ($id) {
71
+        $question->setValidator(function($id) {
72 72
             try {
73 73
                 return $this->applicationManager->read(Id::fromInt((int) $id));
74 74
             } catch (ApplicationNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/DeleteFieldTypeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     private function getFieldType(InputInterface $input, OutputInterface $output): FieldType
103 103
     {
104 104
         $question = new Question('<question>What record do you want to delete?</question> (#id): ');
105
-        $question->setValidator(function ($id) {
105
+        $question->setValidator(function($id) {
106 106
             try {
107 107
                 return $this->fieldTypeManager->read(Id::fromInt((int) $id));
108 108
             } catch (FieldTypeNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/DeleteLanguageCommand.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
     private function getLanguageRecord(InputInterface $input, OutputInterface $output): ?LanguageInterface
65 65
     {
66 66
         $question = new Question('<question>What record do you want to delete?</question> (#id): ');
67
-        $question->setValidator(function ($id) {
67
+        $question->setValidator(function($id) {
68 68
             try {
69 69
                 return $this->languageManager->read(Id::fromInt((int) $id));
70 70
             } catch (LanguageNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/UpdateApplicationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     private function getApplicationRecord(InputInterface $input, OutputInterface $output): ApplicationInterface
74 74
     {
75 75
         $question = new Question('<question>What record do you want to update?</question> (#id): ');
76
-        $question->setValidator(function ($id) {
76
+        $question->setValidator(function($id) {
77 77
             try {
78 78
                 return $this->applicationManager->read(Id::fromInt((int) $id));
79 79
             } catch (ApplicationNotFoundException $exception) {
Please login to merge, or discard this patch.
src/Command/UpdateFieldTypeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     private function getFieldType(InputInterface $input, OutputInterface $output): FieldType
72 72
     {
73 73
         $question = new Question('<question>What record do you want to update?</question> (#id): ');
74
-        $question->setValidator(function ($id) {
74
+        $question->setValidator(function($id) {
75 75
             try {
76 76
                 return $this->fieldTypeManager->read(Id::fromInt((int) $id));
77 77
             } catch (FieldTypeNotFoundException $exception) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             $fieldType->getFullyQualifiedClassName() .
97 97
             '): '
98 98
         );
99
-        $updateQuestion->setValidator(function ($fullyQualifiedClassName) {
99
+        $updateQuestion->setValidator(function($fullyQualifiedClassName) {
100 100
             return FullyQualifiedClassName::fromString($fullyQualifiedClassName);
101 101
         });
102 102
 
Please login to merge, or discard this patch.
src/Command/SectionCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     protected function getSection(InputInterface $input, OutputInterface $output): ?SectionInterface
74 74
     {
75 75
         $question = new Question('<question>Choose record.</question> (#id): ');
76
-        $question->setValidator(function ($id) {
76
+        $question->setValidator(function($id) {
77 77
             try {
78 78
                 return $this->sectionManager->read(Id::fromInt((int) $id));
79 79
             } catch (SectionNotFoundException $exception) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     protected function getSections(InputInterface $input, OutputInterface $output): array
98 98
     {
99 99
         $question = new Question('<question>Choose record.</question> (#id): ');
100
-        $question->setValidator(function ($id) {
100
+        $question->setValidator(function($id) {
101 101
             try {
102 102
                 if ($id === self::ALL) {
103 103
                     return $this->sectionManager->readAll();
Please login to merge, or discard this patch.