Passed
Push — master ( 9280cd...76fe10 )
by Simon
02:08
created
Service/Meta.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -106,15 +106,15 @@  discard block
 block discarded – undo
106 106
         );
107 107
     }
108 108
 
109
-  /**
110
-   * Increment the value for a key that makes up part of the currently focused
111
-   * data object.
112
-   *
113
-   * @param string $key   The index to use
114
-   * @param int    $value The value to increment by
115
-   * @return $this
116
-   * @throws \Exception if there is no data point, column or invalid type
117
-   */
109
+    /**
110
+     * Increment the value for a key that makes up part of the currently focused
111
+     * data object.
112
+     *
113
+     * @param string $key   The index to use
114
+     * @param int    $value The value to increment by
115
+     * @return $this
116
+     * @throws \Exception if there is no data point, column or invalid type
117
+     */
118 118
     public function increment($key, $value = 1)
119 119
     {
120 120
         if (!$this->currentDataPoint) {
@@ -138,15 +138,15 @@  discard block
 block discarded – undo
138 138
         return $this;
139 139
     }
140 140
 
141
-  /**
142
-   * Directly set the value for a key that makes up part of the currently focused
143
-   * data object.
144
-   *
145
-   * @param string         $key   The index to use
146
-   * @param string|integer $value The value to set
147
-   * @return $this
148
-   * @throws \Exception
149
-   */
141
+    /**
142
+     * Directly set the value for a key that makes up part of the currently focused
143
+     * data object.
144
+     *
145
+     * @param string         $key   The index to use
146
+     * @param string|integer $value The value to set
147
+     * @return $this
148
+     * @throws \Exception
149
+     */
150 150
     public function set($key, $value)
151 151
     {
152 152
         if (!$this->currentDataPoint) {
@@ -161,13 +161,13 @@  discard block
 block discarded – undo
161 161
         return $this;
162 162
     }
163 163
 
164
-  /**
165
-   * Set a focus for the current data object for which data can be manipulated.
166
-   * If the key doesn't exist, it will be created using default column values.
167
-   *
168
-   * @param string $key The reference key to be used
169
-   * @return $this
170
-   */
164
+    /**
165
+     * Set a focus for the current data object for which data can be manipulated.
166
+     * If the key doesn't exist, it will be created using default column values.
167
+     *
168
+     * @param string $key The reference key to be used
169
+     * @return $this
170
+     */
171 171
     public function setPoint($key)
172 172
     {
173 173
         if (!isset($this->currentDataSet[$key])) {
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
         return $this;
179 179
     }
180 180
 
181
-  /**
182
-   * Add a data point which will be shown on the report. This function should be
183
-   * used prior to any kind of data manipulation as it will not setup a data
184
-   * structure for manipulation.
185
-   *
186
-   * @param string $key The index to use
187
-   * @return $this
188
-   */
181
+    /**
182
+     * Add a data point which will be shown on the report. This function should be
183
+     * used prior to any kind of data manipulation as it will not setup a data
184
+     * structure for manipulation.
185
+     *
186
+     * @param string $key The index to use
187
+     * @return $this
188
+     */
189 189
     public function addPoint($key)
190 190
     {
191 191
         if (!in_array($key, $this->dataPoints)) {
@@ -196,20 +196,20 @@  discard block
 block discarded – undo
196 196
         return $this;
197 197
     }
198 198
 
199
-  /**
200
-   * Define a type of data that will be presented on the report or metadata that
201
-   * will be used for calculations. In the latter case, within the options array
202
-   * set "visible" to false.
203
-   * At a minimum, the key needs to be set. In this case, the type will be string
204
-   * and the key converted in to a title
205
-   * .
206
-   *
207
-   * @param string $key          A reference key for the piece of data
208
-   * @param [type] $defaultValue The default also defines type of column
209
-   * @param array  $options      Additional parameters for the column to use
210
-   *
211
-   * @return [type] [description]
212
-   */
199
+    /**
200
+     * Define a type of data that will be presented on the report or metadata that
201
+     * will be used for calculations. In the latter case, within the options array
202
+     * set "visible" to false.
203
+     * At a minimum, the key needs to be set. In this case, the type will be string
204
+     * and the key converted in to a title
205
+     * .
206
+     *
207
+     * @param string $key          A reference key for the piece of data
208
+     * @param [type] $defaultValue The default also defines type of column
209
+     * @param array  $options      Additional parameters for the column to use
210
+     *
211
+     * @return [type] [description]
212
+     */
213 213
     public function column(
214 214
         $key,
215 215
         $defaultValue = '',
@@ -242,15 +242,15 @@  discard block
 block discarded – undo
242 242
     }
243 243
 
244 244
     /**
245
-   * Manually set the data which will be used for the current set. when
246
-   * using this function, it will expect an associative array of arrays where
247
-   * each entry has a further array of values which have a key matching that of
248
-   * the meta data.
249
-   * TODO - This is quite messy, rewrite more efficiently.
250
-   *
251
-   * @param [type] $inputData [description]
252
-   * @return $this
253
-   */
245
+     * Manually set the data which will be used for the current set. when
246
+     * using this function, it will expect an associative array of arrays where
247
+     * each entry has a further array of values which have a key matching that of
248
+     * the meta data.
249
+     * TODO - This is quite messy, rewrite more efficiently.
250
+     *
251
+     * @param [type] $inputData [description]
252
+     * @return $this
253
+     */
254 254
     public function setData($inputData)
255 255
     {
256 256
         // Combine raw data with the meta data
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
30 30
 
31 31
         $rootNode
32 32
             ->children()
33
-              ->scalarNode('excel_factory_namespace')
33
+                ->scalarNode('excel_factory_namespace')
34 34
                 ->defaultValue('\PHPExcel_IOFactory')
35
-              ->end()
36
-              ->scalarNode('layout_style')
35
+                ->end()
36
+                ->scalarNode('layout_style')
37 37
                 ->defaultValue('horizontal')
38
-              ->end()
39
-              ->scalarNode('output_format')
38
+                ->end()
39
+                ->scalarNode('output_format')
40 40
                 ->defaultValue('Excel2007')
41
-              ->end()
42
-              ->scalarNode('default_report_path')
41
+                ->end()
42
+                ->scalarNode('default_report_path')
43 43
                 ->isRequired()
44
-              ->end()
44
+                ->end()
45 45
             ->end()
46 46
         ;
47 47
 
Please login to merge, or discard this patch.
Styles/Width.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         switch ($options['type']) {
29 29
         case 'auto':
30 30
           $context->sheet()
31
-          ->getColumnDimension($coordString)
32
-          ->setAutoSize(true);
33
-          break;
31
+            ->getColumnDimension($coordString)
32
+            ->setAutoSize(true);
33
+            break;
34 34
 
35 35
         default:
36 36
           throw new \Exception('Unrecognised style width option: '.$options['type']);
37
-          break;
38
-      }
37
+            break;
38
+        }
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
Tests/Extension/ConfigurationTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     use ConfigurationTestCaseTrait;
28 28
     
29 29
     protected function getContainerExtension() {
30
-       return new SymballReportExtension();
30
+        return new SymballReportExtension();
31 31
     }
32 32
     
33 33
     protected function getConfiguration()
Please login to merge, or discard this patch.
Tests/Extension/ServiceTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 {
22 22
     
23 23
     protected function getContainerExtensions() {
24
-       return array(
25
-         new SymballReportExtension()
26
-       );
24
+        return array(
25
+            new SymballReportExtension()
26
+        );
27 27
     }
28 28
     
29 29
     protected function getMinimalConfiguration()
Please login to merge, or discard this patch.