Skip to content

Commit

Permalink
Merge pull request #603 from cordoval/cordoval-cleanup
Browse files Browse the repository at this point in the history
bootstrap changes
  • Loading branch information
Petit Yoann committed Aug 19, 2014
2 parents f20626e + ef733be commit 8308148
Show file tree
Hide file tree
Showing 24 changed files with 22 additions and 45 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
language: php

php:
- 5.3
# - 5.4
- 5.3
- 5.5

env:
- SYMFONY_VERSION=origin/master
- SYMFONY_VERSION=origin/master

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
- curl -s http://getcomposer.org/installer | php
- php composer.phar install

script: phpunit

notifications:
email:
- [email protected]
- [email protected]
1 change: 0 additions & 1 deletion Grid/Action/DeleteMassAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class DeleteMassAction extends MassAction
* Default DeleteMassAction constructor
*
* @param boolean $confirm Show confirm message if true
* @return \APY\DataGridBundle\Grid\Action\MassAction
*/
public function __construct($confirm = false)
{
Expand Down
5 changes: 2 additions & 3 deletions Grid/Action/MassAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ class MassAction implements MassActionInterface
* @param string $title Title of the mass action
* @param string $callback Callback of the mass action
* @param boolean $confirm Show confirm message if true
* @param array $parameters Additionnal parameters
* @param array $parameters Additional parameters
* @param string $role Security role
*
* @return \APY\DataGridBundle\Grid\Action\MassAction
*/
public function __construct($title, $callback = null, $confirm = false, $parameters = array(), $role = null)
{
Expand Down Expand Up @@ -141,6 +139,7 @@ public function getConfirmMessage()
* Set action/controller parameters
*
* @param array $parameters
* @return $this
*/
public function setParameters(array $parameters)
{
Expand Down
2 changes: 1 addition & 1 deletion Grid/Action/RowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function getColumn()
/**
* Add route parameter
*
* @param array|string $routeParameter
* @param array|string $routeParameters
*
* @return self
*/
Expand Down
7 changes: 5 additions & 2 deletions Grid/Column/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public function getTitle()
* Set column visibility
*
* @param boolean $visible
* @return $this
*/
public function setVisible($visible)
{
Expand Down Expand Up @@ -460,7 +461,7 @@ public function isQueryValid($query)

/**
* Set column visibility for source class
* @param $value
* @param $visibleForSource
* @return \APY\DataGridBundle\Grid\Column\Column
*/
public function setVisibleForSource($visibleForSource)
Expand All @@ -483,6 +484,7 @@ public function isVisibleForSource()
* Set column as primary
*
* @param boolean $primary
* @return $this
*/
public function setPrimary($primary)
{
Expand All @@ -503,6 +505,7 @@ public function isPrimary()
/**
* Set column align
* @param string $align left/right/center
* @return $this
*/
public function setAlign($align)
{
Expand Down Expand Up @@ -767,6 +770,7 @@ public function hasDQLFunction(&$matches = null)
* Internal function
*
* @param $securityContext
* @return $this
*/
public function setSecurityContext(SecurityContextInterface $securityContext)
{
Expand Down Expand Up @@ -894,5 +898,4 @@ public function getIsAggregate()
{
return $this->isAggregate;
}

}
2 changes: 0 additions & 2 deletions Grid/Export/CSVExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* Comma-Separated Values
*
*/
class CSVExport extends DSVExport
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/ExcelExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* Excel (This export produces a warning with new Office Excel)
*
*/
class ExcelExport extends Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/JSONExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* JSON
*
*/
class JSONExport extends Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/PHPExcel2003Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* PHPExcel_Excel 2003 Export (.xlsx)
*
*/
class PHPExcel2003Export extends PHPExcel2007Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/PHPExcel2007Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* PHPExcel 2007 Export
*
*/
class PHPExcel2007Export extends PHPExcel5Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/PHPExcel5Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* PHPExcel 5 Export (97-2003) (.xls)
* 52 columns maximum
*
*/
class PHPExcel5Export extends Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/PHPExcelHTMLExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* PHPExcel HTML Export
*
*/
class PHPExcelHTMLExport extends PHPExcel5Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/PHPExcelPDFExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* PHPExcel PDF Export
*
*/
class PHPExcelPDFExport extends PHPExcel5Export
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/SCSVExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* Semi-Colon-Separated Values
*
*/
class SCSVExport extends CSVExport
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/TSVExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
namespace APY\DataGridBundle\Grid\Export;

/**
*
* Tab-Separated Values
*
*/
class TSVExport extends DSVExport
{
Expand Down
2 changes: 0 additions & 2 deletions Grid/Export/XMLExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
use Symfony\Component\Serializer\Encoder\XmlEncoder;

/**
*
* XML
*
*/
class XMLExport extends Export
{
Expand Down
1 change: 1 addition & 0 deletions Grid/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace APY\DataGridBundle\Grid;

class Filter
Expand Down
5 changes: 3 additions & 2 deletions Grid/Source/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public function prepareRow($row)
}

/**
* @param \Closure $callback
* @param callable $callback
* @return $this
*/
public function manipulateQuery(\Closure $callback = null)
public function manipulateQuery($callback = null)
{
$this->prepareQueryCallback = $callback;

Expand Down
1 change: 0 additions & 1 deletion Resources/config/columns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@
<service id="grid.column.rank" class="%grid.column.rank.class%" public="false">
<tag name="grid.column.extension" />
</service>

</services>
</container>
1 change: 1 addition & 0 deletions Tests/AddColumnTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace APY\DataGridBundle\Tests;

use APY\DataGridBundle\Grid\Columns;
Expand Down
1 change: 1 addition & 0 deletions Tests/Test.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace APY\DataGridBundle\Tests;

class Test extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 1 addition & 0 deletions Twig/DataGridExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public function getGridFilter($column, $grid, $submitOnChange = true)

return '';
}

/**
* Column Operator Drawing override
*
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
"PHPExcel": "Export the grid (Excel, HTML or PDF)"
},
"autoload": {
"psr-0": { "APY\\DataGridBundle": "" }
"psr-4": { "APY\\DataGridBundle\\": "" }
},
"target-dir": "APY/DataGridBundle",
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-master": "2.1-dev"
Expand Down
4 changes: 0 additions & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./Tests/bootstrap.php">

<!-- Les fichiers de tests à lancer -->
<testsuites>
<testsuite name="APYDataGridBundle test suite">
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>

<!-- Quels fichiers sont concernés par l'évaluation du code coverage -->
<filter>
<whitelist>
<directory>./</directory>
Expand Down

0 comments on commit 8308148

Please sign in to comment.