@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | //From https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Tests/bootstrap.php |
| 4 | -if (!($loader = @include __DIR__ . '/../vendor/autoload.php')) { |
|
| 4 | +if (!($loader = @include __DIR__.'/../vendor/autoload.php')) { |
|
| 5 | 5 | echo <<<EOT |
| 6 | 6 | You need to install the project dependencies using Composer: |
| 7 | 7 | $ wget http://getcomposer.org/composer.phar |
@@ -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 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function load(array $configs, ContainerBuilder $container) |
| 17 | 17 | { |
| 18 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 18 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 19 | 19 | $loader->load('services.yml'); |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $filterCount = $table->getFilteredCount(); |
| 15 | 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; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function retrieveByTableId($tableId) |
| 23 | 23 | { |
| 24 | 24 | if (!array_key_exists($tableId, $this->tables)) { |
| 25 | - throw new \BadMethodCallException('Table id with ' . $tableId . ' is not registered'); |
|
| 25 | + throw new \BadMethodCallException('Table id with '.$tableId.' is not registered'); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | return $this->tables[$tableId]; |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | 'no_init_loading' => false, |
| 140 | 140 | 'template' => 'CrossKnowledgeDataTableBundle::default_table.html.twig', |
| 141 | 141 | 'data_table_custom_options' => [], |
| 142 | - 'has_filter_form' => function () { |
|
| 143 | - return $this->getFilterForm()->count() > 1; |
|
| 142 | + 'has_filter_form' => function() { |
|
| 143 | + return $this->getFilterForm()->count()>1; |
|
| 144 | 144 | }, |
| 145 | 145 | ]); |
| 146 | 146 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | { |
| 242 | 242 | if (null === $this->filterForm) { |
| 243 | 243 | $this->filterForm = $this->buildFilterForm( |
| 244 | - $this->formFactory->createNamedBuilder($this->getTableId() . '_filter') |
|
| 244 | + $this->formFactory->createNamedBuilder($this->getTableId().'_filter') |
|
| 245 | 245 | ->add('dofilter', ButtonType::class) |
| 246 | 246 | )->getForm(); |
| 247 | 247 | } |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | { |
| 147 | 147 | $infos = []; |
| 148 | 148 | |
| 149 | - array_walk($this->options, function ($optval, $optname) use (&$infos) { |
|
| 149 | + array_walk($this->options, function($optval, $optname) use (&$infos) { |
|
| 150 | 150 | if (in_array($optname, static::$clientSideColumnOptions)) { |
| 151 | 151 | $infos[$optname] = $optval; |
| 152 | 152 | } |
@@ -11,13 +11,13 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | parent::configureOptions($resolver); |
| 13 | 13 | $resolver->setRequired('LinkTextField'); |
| 14 | - $resolver->setDefault('AltTextField', function (Options $options) { |
|
| 14 | + $resolver->setDefault('AltTextField', function(Options $options) { |
|
| 15 | 15 | return $options['LinkTextField']; |
| 16 | 16 | }); |
| 17 | - $resolver->setDefault('UrlField', function (Options $options) { |
|
| 17 | + $resolver->setDefault('UrlField', function(Options $options) { |
|
| 18 | 18 | return $options['LinkTextField']; |
| 19 | 19 | }); |
| 20 | - $resolver->setDefault('UrlCallback', function ($value, $row) { |
|
| 20 | + $resolver->setDefault('UrlCallback', function($value, $row) { |
|
| 21 | 21 | return $row[$this->options['UrlField']]; |
| 22 | 22 | }); |
| 23 | 23 | $resolver->setAllowedTypes('UrlCallback', ['\Closure']); |
@@ -31,14 +31,14 @@ discard block |
||
| 31 | 31 | $value = parent::formatCell($value, $rowData, $context); |
| 32 | 32 | $url = call_user_func_array($this->options['UrlCallback'], [$value, $rowData]); |
| 33 | 33 | |
| 34 | - return '<a href="' . $url . '" alt="' . htmlentities( |
|
| 34 | + return '<a href="'.$url.'" alt="'.htmlentities( |
|
| 35 | 35 | $rowData[$this->options['LinkTextField']], |
| 36 | 36 | ENT_COMPAT | ENT_HTML401, |
| 37 | 37 | 'UTF-8' |
| 38 | - ) . '">' . htmlentities( |
|
| 38 | + ).'">'.htmlentities( |
|
| 39 | 39 | $rowData[$this->options['LinkTextField']], |
| 40 | 40 | ENT_COMPAT | ENT_HTML401, |
| 41 | 41 | 'UTF-8' |
| 42 | - ) . '</a>'; |
|
| 42 | + ).'</a>'; |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function getDomDefinition() |
| 19 | 19 | { |
| 20 | - return "<'row'<'col-sm-3 dom-position-filter-after'>>" . |
|
| 21 | - "<'row'<'col-sm-12'tr>>" . |
|
| 20 | + return "<'row'<'col-sm-3 dom-position-filter-after'>>". |
|
| 21 | + "<'row'<'col-sm-12'tr>>". |
|
| 22 | 22 | "<'row'<'col-sm-4'i><'col-sm-4'p><'col-sm-2'l>>"; |
| 23 | 23 | } |
| 24 | 24 | } |