| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | /** | 
| 26 | 26 | * Returns column collection (readonly). | 
| 27 | 27 | * | 
| 28 | - * @return Column[]|ObjectCollectionReadInterface | |
| 28 | + * @return \Nayjest\Collection\Extended\ObjectCollection | |
| 29 | 29 | */ | 
| 30 | 30 | public function getColumns() | 
| 31 | 31 |      { | 
| @@ -112,7 +112,7 @@ | ||
| 112 | 112 | |
| 113 | 113 | public function attachToCompound(Compound $root) | 
| 114 | 114 |      { | 
| 115 | -        $root->children()->add(new DataView(function () { | |
| 115 | +        $root->children()->add(new DataView(function() { | |
| 116 | 116 |              if ($this->inputOption->hasValue()) { | 
| 117 | 117 | $this->renderCsv(); | 
| 118 | 118 | } | 
| @@ -2,7 +2,7 @@ discard block | ||
| 2 | 2 | <small style="white-space: nowrap"> | 
| 3 | 3 | <a | 
| 4 | 4 | title="Sort ascending" | 
| 5 | - <?php if($order === 'asc'): ?> | |
| 5 | + <?php if ($order === 'asc'): ?> | |
| 6 | 6 | style="text-decoration: none; color: green;" | 
| 7 | 7 | <?php else: ?> | 
| 8 | 8 | style="text-decoration: none; color:dodgerblue;" | 
| @@ -13,7 +13,7 @@ discard block | ||
| 13 | 13 | </a> | 
| 14 | 14 | <a | 
| 15 | 15 | title="Sort descending" | 
| 16 | - <?php if($order === 'desc'): ?> | |
| 16 | + <?php if ($order === 'desc'): ?> | |
| 17 | 17 | style="text-decoration: none; color: green;" | 
| 18 | 18 | <?php else: ?> | 
| 19 | 19 | style="text-decoration: none; color:dodgerblue;" | 
| @@ -334,7 +334,7 @@ | ||
| 334 | 334 | } | 
| 335 | 335 | |
| 336 | 336 | /** | 
| 337 | - * @return null|Grid | |
| 337 | + * @return Compound|null | |
| 338 | 338 | */ | 
| 339 | 339 | protected function getGrid() | 
| 340 | 340 |      { | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | $this->id = 'page_totals_row'; | 
| 58 | 58 | $this->destinationParentId = 'list_container'; | 
| 59 | 59 | $this->operations = $operations; | 
| 60 | -        $this->dataCollectingCallback = function () { | |
| 60 | +        $this->dataCollectingCallback = function() { | |
| 61 | 61 |              if ($this->stopDataCollecting) { | 
| 62 | 62 | return; | 
| 63 | 63 | } | 
| @@ -77,7 +77,7 @@ discard block | ||
| 77 | 77 | $this->attachToCompoundInternal($root); | 
| 78 | 78 | /** @var CollectionView $collectionView */ | 
| 79 | 79 |          $collectionView = $root->getComponent('collection_view'); | 
| 80 | -        $collectionView->setDataInjector(function ($dataRow, $collectionView) use ($root) { | |
| 80 | +        $collectionView->setDataInjector(function($dataRow, $collectionView) use ($root) { | |
| 81 | 81 | call_user_func([$root, 'setCurrentRow'], $dataRow, $collectionView); | 
| 82 | 82 | call_user_func($this->dataCollectingCallback); | 
| 83 | 83 | }); | 
| @@ -115,7 +115,7 @@ discard block | ||
| 115 | 115 | $valueCalculators[$column->getId()] = $column->getValueCalculator(); | 
| 116 | 116 | $valueFormatters[$column->getId()] = $prevFormatter = $column->getValueFormatter(); | 
| 117 | 117 | $column->setValueCalculator(null); | 
| 118 | -            $column->setValueFormatter(function ($value) use ($prevFormatter, $column) { | |
| 118 | +            $column->setValueFormatter(function($value) use ($prevFormatter, $column) { | |
| 119 | 119 |                  if ($prevFormatter) { | 
| 120 | 120 | $value = call_user_func($prevFormatter, $value); | 
| 121 | 121 | } | 
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | /** registers path to grid views */ | 
| 18 | 18 | $container->extend( | 
| 19 | 19 | ServiceName::RENDERER, | 
| 20 | -            function (RendererInterface $renderer) { | |
| 20 | +            function(RendererInterface $renderer) { | |
| 21 | 21 |                  if (!$renderer instanceof SimpleRenderer) { | 
| 22 | 22 |                      throw new RuntimeException('Grids supports only SimpleRenderer. You have ' . get_class($renderer)); | 
| 23 | 23 | } | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | } | 
| 35 | 35 | |
| 36 | 36 | /** | 
| 37 | - * @return string | |
| 37 | + * @return DataView | |
| 38 | 38 | */ | 
| 39 | 39 | public function getText() | 
| 40 | 40 |      { | 
| @@ -334,7 +334,7 @@ | ||
| 334 | 334 | } | 
| 335 | 335 | |
| 336 | 336 | /** | 
| 337 | - * @return null|Grid | |
| 337 | + * @return Compound|null | |
| 338 | 338 | */ | 
| 339 | 339 | protected function getGrid() | 
| 340 | 340 |      { | 
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 |          $tr->setAttribute('data-row-with-details', 1); | 
| 70 | 70 | $this->getGrid()->children() | 
| 71 | 71 | ->add($this->jquery, 1) | 
| 72 | - ->add($this->getScript());; | |
| 72 | + ->add($this->getScript()); ; | |
| 73 | 73 | // fix zebra styled tables | 
| 74 | 74 |          $this->parent()->addChild(new DataView('<tr style="display: none"></tr>')); | 
| 75 | 75 | |
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | |
| 13 | 13 | public function __construct(callable $urlGenerator, ResourceManager $resourceManager = null) | 
| 14 | 14 |      { | 
| 15 | -        parent::__construct(new DataView(null, function ($url) { | |
| 15 | +        parent::__construct(new DataView(null, function($url) { | |
| 16 | 16 | return "<div data-details-container='1' data-details-url='$url'></div>"; | 
| 17 | 17 | }), $resourceManager); | 
| 18 | 18 | $this->setUrlGenerator($urlGenerator); |