Skip to content

Commit

Permalink
Merge pull request #33 from mvorisek/fix_cs
Browse files Browse the repository at this point in the history
Improve absolute imports
  • Loading branch information
AllanJard authored Dec 25, 2023
2 parents db28315 + 47492ce commit ec0c6d8
Show file tree
Hide file tree
Showing 32 changed files with 265 additions and 232 deletions.
9 changes: 5 additions & 4 deletions Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables;
Expand Down
9 changes: 5 additions & 4 deletions DataTables.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/
define('DATATABLES', true);

Expand Down
15 changes: 8 additions & 7 deletions Database.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables;
Expand Down Expand Up @@ -282,7 +283,7 @@ public function quote($val, $type = \PDO::PARAM_STR)
*
* @return Query
*
* @example
* @example
* Safely escape user input
* ```php
* $db
Expand Down Expand Up @@ -385,12 +386,12 @@ public function selectDistinct($table, $field = '*', $where = null, $orderBy = n
*
* @return Result
*
* @example
* @example
* Basic select
* ```php
* $result = $db->sql( 'SELECT * FROM myTable;' );
* ```
* @example
* @example
* Set the character set of the connection
* ```php
* $db->sql("SET character_set_client=utf8");
Expand Down
3 changes: 2 additions & 1 deletion Database/Driver/Db2Query.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* DB2 database driver for DataTables libraries.
* BETA! Feedback welcome.
Expand All @@ -11,7 +12,7 @@
/**
* DB2 driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class Db2Query extends Query
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/Db2Result.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

/**
* SQL Server driver for DataTables PHP libraries
* BETA! Feedback welcome.
*
* @author SpryMedia
* @copyright 2013 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2013 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -17,7 +18,7 @@
/**
* SQL Server driver for DataTables Database Result class.
*
* @internal
* @internal
*/
class Db2Result extends Result
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/FirebirdQuery.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* Firebird driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class FirebirdQuery extends Query
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/FirebirdResult.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* Firebird driver for DataTables Database Result class.
*
* @internal
* @internal
*/
class FirebirdResult extends Result
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/MysqlQuery.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* MySQL driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class MysqlQuery extends Query
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/MysqlResult.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* MySQL driver for DataTables Database Result class.
*
* @internal
* @internal
*/
class MysqlResult extends Result
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/OracleQuery.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?php

/**
* Oracle database driver for DataTables libraries.
*
* Note that this software uses the oci_* methods in PHP and NOT the Oracle PDO
* driver, which is poorly supported.
*
* @author SpryMedia
* @copyright 2014 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2014 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -19,7 +20,7 @@
/**
* Oracle driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class OracleQuery extends Query
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/OracleResult.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php

/**
* Oracle database driver for Editor.
*
* @author SpryMedia
* @copyright 2014 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2014 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -16,7 +17,7 @@
/**
* MySQL driver for DataTables Database Result class.
*
* @internal
* @internal
*/
class OracleResult extends Result
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/PostgresQuery.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* Postgres driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class PostgresQuery extends Query
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/PostgresResult.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* Postgres driver for DataTables Database Result class.
*
* @internal
* @internal
*/
class PostgresResult extends Result
{
Expand Down
11 changes: 6 additions & 5 deletions Database/Driver/SqliteQuery.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
*
* @see http://editor.datatables.net
* @see http://editor.datatables.net
*/

namespace DataTables\Database\Driver;
Expand All @@ -18,7 +19,7 @@
/**
* SQLite3 driver for DataTables Database Query class.
*
* @internal
* @internal
*/
class SqliteQuery extends Query
{
Expand Down
Loading

0 comments on commit ec0c6d8

Please sign in to comment.