Completed
Pull Request — master (#25)
by Greg
02:27
created
src/FormatterOptions.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -121,6 +121,10 @@
 block discarded – undo
121 121
         return $this;
122 122
     }
123 123
 
124
+    /**
125
+     * @param string $key
126
+     * @param boolean $value
127
+     */
124 128
     public function setConfigurationDefault($key, $value)
125 129
     {
126 130
         if (!array_key_exists($key, $this->configurationData)) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use Symfony\Component\Console\Input\InputInterface;
5 5
 use Consolidation\OutputFormatters\Transformations\PropertyParser;
6 6
 use Consolidation\OutputFormatters\StructuredData\Xml\XmlSchema;
7
-use Consolidation\OutputFormatters\StructuredData\Xml\XmlSchemaInterface;
8 7
 
9 8
 /**
10 9
  * FormetterOptions holds information that affects the way a formatter
Please login to merge, or discard this patch.
src/StructuredData/AssociativeList.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * transformation object.
20 20
      *
21 21
      * @param FormatterOptions $options Options that affect output formatting.
22
-     * @return Consolidation\OutputFormatters\Transformations\TableTransformation
22
+     * @return TableTransformation
23 23
      */
24 24
     public function restructure(FormatterOptions $options)
25 25
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 namespace Consolidation\OutputFormatters\StructuredData;
3 3
 
4 4
 use Consolidation\OutputFormatters\FormatterOptions;
5
-use Consolidation\OutputFormatters\StructuredData\ListDataInterface;
6
-use Consolidation\OutputFormatters\Transformations\PropertyParser;
7
-use Consolidation\OutputFormatters\Transformations\ReorderFields;
8 5
 use Consolidation\OutputFormatters\Transformations\TableTransformation;
9 6
 
10 7
 /**
Please login to merge, or discard this patch.
src/StructuredData/RowsOfFields.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * transformation object.
18 18
      *
19 19
      * @param FormatterOptions $options Options that affect output formatting.
20
-     * @return Consolidation\OutputFormatters\Transformations\TableTransformation
20
+     * @return \Consolidation\OutputFormatters\Transformations\TableTransformation
21 21
      */
22 22
     public function restructure(FormatterOptions $options)
23 23
     {
Please login to merge, or discard this patch.
src/StructuredData/Xml/XmlSchema.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
         $this->addXmlChildren($dom, $element, $elementName, $structuredData);
35 35
     }
36 36
 
37
+    /**
38
+     * @param \DOMElement $xmlParent
39
+     */
37 40
     protected function addXmlChildren(\DOMDocument $dom, $xmlParent, $elementName, $structuredData)
38 41
     {
39 42
         foreach ($structuredData as $key => $value) {
Please login to merge, or discard this patch.
src/Transformations/DomToArraySimplifier.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use Consolidation\OutputFormatters\SimplifyToArrayInterface;
5 5
 use Consolidation\OutputFormatters\FormatterOptions;
6 6
 use Consolidation\OutputFormatters\StructuredData\Xml\DomDataInterface;
7
-use Consolidation\OutputFormatters\StructuredData\Xml\XmlSchema;
8 7
 
9 8
 /**
10 9
  * Simplify a DOMDocument to an array.
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     }
17 17
 
18 18
     /**
19
-     * @param ReflectionClass $dataType
19
+     * @param \ReflectionClass $dataType
20 20
      */
21 21
     public function canSimplify(\ReflectionClass $dataType)
22 22
     {
Please login to merge, or discard this patch.
src/Formatters/TsvFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     protected function tsvEscape($data)
26 26
     {
27 27
         return implode("\t", array_map(
28
-            function ($item) {
28
+            function($item) {
29 29
                 return str_replace(["\t", "\n"], ['\t', '\n'], $item);
30 30
             },
31 31
             $data
Please login to merge, or discard this patch.
src/Formatters/StringFormatter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Consolidation\OutputFormatters\OverrideOptionsInterface;
7 7
 use Consolidation\OutputFormatters\FormatterOptions;
8 8
 use Symfony\Component\Console\Output\OutputInterface;
9
-use Consolidation\OutputFormatters\StructuredData\RestructureInterface;
10 9
 
11 10
 /**
12 11
  * String formatter
Please login to merge, or discard this patch.
src/Transformations/ReorderFields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         return
68 68
             array_filter(
69 69
                 array_keys($fieldLabels),
70
-                function ($key) use ($fieldRegex, $fieldLabels) {
70
+                function($key) use ($fieldRegex, $fieldLabels) {
71 71
                     $value = $fieldLabels[$key];
72 72
                     return preg_match($fieldRegex, $value) || preg_match($fieldRegex, $key);
73 73
                 }
Please login to merge, or discard this patch.
src/Exception/InvalidFormatException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function __construct($format, $data, $validFormats)
12 12
     {
13 13
         $dataDescription = static::describeDataType($data);
14
-        $message = "The format $format cannot be used with the data produced by this command, which was $dataDescription.  Valid formats are: " . implode(',', $validFormats);
14
+        $message = "The format $format cannot be used with the data produced by this command, which was $dataDescription.  Valid formats are: ".implode(',', $validFormats);
15 15
         parent::__construct($message, 1);
16 16
     }
17 17
 }
Please login to merge, or discard this patch.