Completed
Pull Request — master (#16)
by Greg
02:48
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/FormatterManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function write(OutputInterface $output, $format, $structuredOutput, $configurationData = [], $options = [])
42 42
     {
43
-        $formatter = $this->getFormatter((string)$format, $configurationData);
43
+        $formatter = $this->getFormatter((string) $format, $configurationData);
44 44
 
45 45
         // Restructure the output data (e.g. select fields to display, etc.).
46 46
         $structuredOutput = $this->restructureData($structuredOutput, $configurationData, $options);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
         return $formatter;
90 90
     }
91 91
 
92
+    /**
93
+     * @param string $format
94
+     */
92 95
     public function hasFormatter($format)
93 96
     {
94 97
         return array_key_exists($format, $this->formatters);
@@ -97,7 +100,6 @@  discard block
 block discarded – undo
97 100
     /**
98 101
      * Render the data as necessary (e.g. to select or reorder fields).
99 102
      *
100
-     * @param mixed $structuredOutput
101 103
      * @param array $configurationData
102 104
      * @param array $options
103 105
      * @return mixed
Please login to merge, or discard this patch.
src/Formatters/RenderDataInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
      * is to be printed, prior to output but after restructuring
9 9
      * and validation.
10 10
      *
11
-     * @param mixed $data Restructured, validated data.
12 11
      *
13 12
      * @return mixed
14 13
      */
Please login to merge, or discard this patch.