@@ -67,7 +67,7 @@ |
||
| 67 | 67 | return $this; |
| 68 | 68 | } |
| 69 | 69 | /** |
| 70 | - * @return mixed |
|
| 70 | + * @return string |
|
| 71 | 71 | */ |
| 72 | 72 | public function getOptions() |
| 73 | 73 | { |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | public function testBasicGetterSetter() |
| 29 | 29 | { |
| 30 | 30 | $column = (new Column("test", ['auto_escape' => false])) |
| 31 | - ->setFormatValueCallback(function() { |
|
| 31 | + ->setFormatValueCallback(function() { |
|
| 32 | 32 | return 'test ok'; |
| 33 | 33 | }) |
| 34 | - ->setIdentifier('test'); |
|
| 34 | + ->setIdentifier('test'); |
|
| 35 | 35 | |
| 36 | 36 | $this->assertEquals("test", $column->getOptions()['title']); |
| 37 | 37 | $this->assertEquals("test ok", call_user_func($column->getFormatValueCallback())); |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | public function testRetrieveTableById() |
| 13 | 13 | { |
| 14 | 14 | $table = $this->getMockBuilder(AbstractTable::class) |
| 15 | - ->disableOriginalConstructor() |
|
| 16 | - ->getMock(); |
|
| 15 | + ->disableOriginalConstructor() |
|
| 16 | + ->getMock(); |
|
| 17 | 17 | |
| 18 | 18 | $registry = new DataTableRegistry(['test' => $table]); |
| 19 | 19 | $this->assertEquals($table, $registry->retrieveByTableId('test')); |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | { |
| 14 | 14 | $tableMock = $this->getTableMock(); |
| 15 | 15 | $request = new Request([], [ |
| 16 | - 'order' => [['column' => '1', 'dir' => 'desc']], |
|
| 17 | - 'start' => 242, |
|
| 18 | - 'length' => 342 |
|
| 16 | + 'order' => [['column' => '1', 'dir' => 'desc']], |
|
| 17 | + 'start' => 242, |
|
| 18 | + 'length' => 342 |
|
| 19 | 19 | ]); |
| 20 | 20 | |
| 21 | 21 | $paginateRequest = PaginateRequest::fromHttpRequest($request, $tableMock); |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | $formatter = new DefaultFormatter(); |
| 25 | 25 | |
| 26 | 26 | $row = [ |
| 27 | - 'escapedcolumn' => '<testval', |
|
| 28 | - 'unescapedcolumn' => '<testval', |
|
| 27 | + 'escapedcolumn' => '<testval', |
|
| 28 | + 'unescapedcolumn' => '<testval', |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | $expected = [ |
@@ -19,19 +19,19 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $tableMock = $this->getDataTableMock(); |
| 21 | 21 | $registryMock = $this->getMockBuilder('CrossKnowledge\DataTableBundle\DataTable\DataTableRegistry') |
| 22 | - ->disableOriginalConstructor() |
|
| 23 | - ->getMock(); |
|
| 22 | + ->disableOriginalConstructor() |
|
| 23 | + ->getMock(); |
|
| 24 | 24 | |
| 25 | 25 | $registryMock->expects($this->once()) |
| 26 | - ->method('retrieveByTableId') |
|
| 27 | - ->will($this->returnValue($tableMock)); |
|
| 26 | + ->method('retrieveByTableId') |
|
| 27 | + ->will($this->returnValue($tableMock)); |
|
| 28 | 28 | |
| 29 | 29 | $rendererMock = $this->getMockBuilder('CrossKnowledge\DataTableBundle\DataTable\Renderer\JsonRenderer') |
| 30 | - ->getMock(); |
|
| 30 | + ->getMock(); |
|
| 31 | 31 | |
| 32 | 32 | $rendererMock->expects($this->once()) |
| 33 | - ->method('renderJsonResponse') |
|
| 34 | - ->with($tableMock); |
|
| 33 | + ->method('renderJsonResponse') |
|
| 34 | + ->with($tableMock); |
|
| 35 | 35 | |
| 36 | 36 | $request = new Request([], [], ['tableid' => 'testtable_id']); |
| 37 | 37 | |
@@ -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); |