Completed
Pull Request — master (#18)
by Greg
02:19
created
src/Exception/IncompatibleDataException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
     protected static function describeDataType($data)
21 21
     {
22 22
         if ($data instanceof \ReflectionClass) {
23
-            return 'an instance of ' . $data->getName();
23
+            return 'an instance of '.$data->getName();
24 24
         }
25 25
         if (is_object($data)) {
26
-            return 'an instance of ' . get_class($data);
26
+            return 'an instance of '.get_class($data);
27 27
         }
28 28
         if (is_array($data)) {
29 29
             return 'an array';
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         if (is_string($data)) {
32 32
             return 'a string';
33 33
         }
34
-        return '<' . var_export($data) . '>';
34
+        return '<'.var_export($data).'>';
35 35
     }
36 36
 
37 37
     protected static function describeAllowedTypes($allowedTypes)
Please login to merge, or discard this patch.
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 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,6 @@  discard block
 block discarded – undo
73 73
      * Fetch the requested formatter.
74 74
      *
75 75
      * @param string $format Identifier for requested formatter
76
-     * @param FormatterOptions $options Formatting options
77 76
      * @return FormatterInterface
78 77
      */
79 78
     public function getFormatter($format)
@@ -85,6 +84,9 @@  discard block
 block discarded – undo
85 84
         return $formatter;
86 85
     }
87 86
 
87
+    /**
88
+     * @param string $format
89
+     */
88 90
     public function hasFormatter($format)
89 91
     {
90 92
         return array_key_exists($format, $this->formatters);
Please login to merge, or discard this 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.