@@ -16,7 +16,7 @@ |
||
| 16 | 16 | protected function getFunctionByName(\Twig_Extension $extension, $name) |
| 17 | 17 | { |
| 18 | 18 | foreach ($extension->getFunctions() as $function) { |
| 19 | - if ($function->getName()==$name) { |
|
| 19 | + if ($function->getName() == $name) { |
|
| 20 | 20 | return $function; |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $value = $rawValue; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - $colVal = $column->formatCell($value, $row, $context);//Column definition |
|
| 34 | + $colVal = $column->formatCell($value, $row, $context); //Column definition |
|
| 35 | 35 | $newRow[$colIdentifier] = $colVal; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | $jsonVars = []; |
| 13 | 13 | $jsonVars['recordsTotal'] = $table->getUnfilteredCount(); |
| 14 | 14 | $filterCount = $table->getFilteredCount(); |
| 15 | - $jsonVars['recordsFiltered'] = $filterCount!==false ? $filterCount : $jsonVars['recordsTotal']; |
|
| 15 | + $jsonVars['recordsFiltered'] = $filterCount !== false ? $filterCount : $jsonVars['recordsTotal']; |
|
| 16 | 16 | $jsonVars['data'] = array_map( |
| 17 | - function ($item) { |
|
| 17 | + function($item) { |
|
| 18 | 18 | $t = []; |
| 19 | 19 | foreach ($item as $k => $v) { |
| 20 | 20 | $t[] = $v; |
@@ -27,11 +27,11 @@ discard block |
||
| 27 | 27 | ->getMock(); |
| 28 | 28 | |
| 29 | 29 | $templateMock = $this->getMockBuilder(\Twig_TemplateInterface::class) |
| 30 | - ->disableOriginalConstructor() |
|
| 31 | - ->getMock(); |
|
| 30 | + ->disableOriginalConstructor() |
|
| 31 | + ->getMock(); |
|
| 32 | 32 | |
| 33 | 33 | $twig->expects($this->once())->method('loadTemplate') |
| 34 | - ->will($this->returnValue($templateMock)); |
|
| 34 | + ->will($this->returnValue($templateMock)); |
|
| 35 | 35 | |
| 36 | 36 | $renderer = new TwigRenderer($twig); |
| 37 | 37 | $renderer->render($mock); |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | ->getMock(); |
| 53 | 53 | |
| 54 | 54 | $templateMock = $this->getMockBuilder(\Twig_TemplateInterface::class) |
| 55 | - ->disableOriginalConstructor() |
|
| 56 | - ->getMock(); |
|
| 55 | + ->disableOriginalConstructor() |
|
| 56 | + ->getMock(); |
|
| 57 | 57 | |
| 58 | 58 | $twig->expects($this->once())->method('loadTemplate') |
| 59 | - ->will($this->returnValue($templateMock)); |
|
| 59 | + ->will($this->returnValue($templateMock)); |
|
| 60 | 60 | |
| 61 | 61 | $renderer = new TwigRenderer($twig); |
| 62 | 62 | $renderer->render($mock); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | abstract class AbstractTable |
| 19 | 19 | { |
| 20 | - const VIEW_CONTEXT = 'view'; |
|
| 20 | + const VIEW_CONTEXT = 'view'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @var Router |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * |
| 143 | 143 | * @param OptionsResolver $resolver |
| 144 | 144 | */ |
| 145 | - public function configureOptions(OptionsResolver $resolver){} |
|
| 145 | + public function configureOptions(OptionsResolver $resolver) {} |
|
| 146 | 146 | /** |
| 147 | 147 | * @return array |
| 148 | 148 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | { |
| 183 | 183 | $t = []; |
| 184 | 184 | foreach ($this->getDataIterator($context) as $item) { |
| 185 | - $formatted = $this->formatter->formatRow($item, $this, $context); |
|
| 185 | + $formatted = $this->formatter->formatRow($item, $this, $context); |
|
| 186 | 186 | $t[] = $formatted; |
| 187 | 187 | } |
| 188 | 188 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function getFilterForm() |
| 223 | 223 | { |
| 224 | - if (null===$this->filterForm) { |
|
| 224 | + if (null === $this->filterForm) { |
|
| 225 | 225 | $this->filterForm = $this->buildFilterForm( |
| 226 | 226 | $this->formFactory->createNamedBuilder($this->getTableId().'_filter') |
| 227 | 227 | ->add('dofilter', 'button') |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function getColumns($context = self::VIEW_CONTEXT) |
| 255 | 255 | { |
| 256 | - if(!array_key_exists($context, $this->columns)) { |
|
| 256 | + if (!array_key_exists($context, $this->columns)) { |
|
| 257 | 257 | $this->initColumnsDefinitions($context); |
| 258 | 258 | } |
| 259 | 259 | return $this->columns[$context]; |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | $this->buildColumns($builder, $context); |
| 269 | 269 | |
| 270 | 270 | $this->columns[$context] = $builder->getColumns(); |
| 271 | - $this->columnsInitialized[$context] = true; |
|
| 271 | + $this->columnsInitialized[$context] = true; |
|
| 272 | 272 | } |
| 273 | 273 | /** |
| 274 | 274 | * Sets the table identifier |