Completed
Push — master ( 573f78...752d67 )
by Greg
02:35
created
src/Formatters/CsvFormatter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         }
70 70
     }
71 71
 
72
+    /**
73
+     * @param FormatterOptions $options
74
+     */
72 75
     protected function writeCsvLine(OutputInterface $output, $data, $options)
73 76
     {
74 77
         $output->write($this->csvEscape($data));
Please login to merge, or discard this patch.
src/FormatterManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function write(OutputInterface $output, $format, $structuredOutput, FormatterOptions $options)
44 44
     {
45
-        $formatter = $this->getFormatter((string)$format);
45
+        $formatter = $this->getFormatter((string) $format);
46 46
         $structuredOutput = $this->validateAndRestructure($formatter, $structuredOutput, $options);
47 47
         $formatter->write($output, $structuredOutput, $options);
48 48
     }
Please login to merge, or discard this patch.
src/Exception/IncompatibleDataException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
             if (is_array($data) || ($data->getName() == 'ArrayObject')) {
31 31
                 return 'an array';
32 32
             }
33
-            return 'an instance of ' . $data->getName();
33
+            return 'an instance of '.$data->getName();
34 34
         }
35 35
         if (is_string($data)) {
36 36
             return 'a string';
37 37
         }
38 38
         if (is_object($data)) {
39
-            return 'an instance of ' . get_class($data);
39
+            return 'an instance of '.get_class($data);
40 40
         }
41
-        throw new \Exception("Undescribable data error: " . var_export($data, true));
41
+        throw new \Exception("Undescribable data error: ".var_export($data, true));
42 42
     }
43 43
 
44 44
     protected static function describeAllowedTypes($allowedTypes)
Please login to merge, or discard this patch.
src/FormatterOptions.php 1 patch
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.
src/StructuredData/AssociativeList.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -1,12 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Consolidation\OutputFormatters\StructuredData;
3 3
 
4
-use Consolidation\OutputFormatters\RestructureInterface;
5 4
 use Consolidation\OutputFormatters\FormatterOptions;
6
-use Consolidation\OutputFormatters\StructuredData\ListDataInterface;
7
-use Consolidation\OutputFormatters\Transformations\PropertyParser;
8
-use Consolidation\OutputFormatters\Transformations\ReorderFields;
9
-use Consolidation\OutputFormatters\Transformations\TableTransformation;
10 5
 
11 6
 /**
12 7
  * Holds an array where each element of the array is one
Please login to merge, or discard this patch.