Skip to content

Commit

Permalink
[#14837] - PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed May 16, 2020
1 parent 1d65f2c commit e4088c8
Show file tree
Hide file tree
Showing 121 changed files with 347 additions and 339 deletions.
13 changes: 7 additions & 6 deletions tests/database/Db/Adapter/Pdo/DescribeColumnsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class DescribeColumnsCest

/**
* @param DatabaseTester $I
*
* @throws Exception
*/
public function _before(DatabaseTester $I)
Expand All @@ -38,16 +39,16 @@ public function _before(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-03-02
*
* @group mysql
* @group mysql
*/
public function dbAdapterPdoDescribeColumnsOnUpdate(DatabaseTester $I)
{
$I->wantToTest('Db\Adapter\Pdo - describeColumns()');

$connection = $I->getConnection();
$db = $this->container->get('db');
$db = $this->container->get('db');

$now = date('Y-m-d H:i:s');
$now = date('Y-m-d H:i:s');
$migration = new ComplexDefaultMigration($connection);
$migration->insert(1, $now, $now);

Expand All @@ -63,16 +64,16 @@ public function dbAdapterPdoDescribeColumnsOnUpdate(DatabaseTester $I)
* @author Jeremy PASTOURET <https://github.com/jenovateurs>
* @since 2020-03-09
*
* @group pgsql
* @group pgsql
*/
public function dbAdapterPdoDescribeColumnsDefaultPostgres(DatabaseTester $I)
{
$I->wantToTest('Db\Adapter\Pdo - describeColumns() - CheckPostgres Default value');

$connection = $I->getConnection();
$db = $this->container->get('db');
$db = $this->container->get('db');

$now = date('Y-m-d H:i:s');
$now = date('Y-m-d H:i:s');
$migration = new ComplexDefaultMigration($connection);
$migration->insert(1, $now, $now);

Expand Down
8 changes: 4 additions & 4 deletions tests/database/Db/Adapter/Pdo/QueryCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ public function _before(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-02-22
*
* @group pgsql
* @group mysql
* @group sqlite
* @group pgsql
* @group mysql
* @group sqlite
*/
public function dbAdapterPdoQuery(DatabaseTester $I)
{
$I->wantToTest('Db\Adapter\Pdo - query()');

$connection = $I->getConnection();
$db = $this->container->get('db');
$db = $this->container->get('db');

$migration = new InvoicesMigration($connection);
$migration->insert(1, 1, 1, 'title 1', 101);
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/ConstantsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ConstantsCest
* @author Phalcon Team <[email protected]>
* @since 2018-10-26
*
* @group common
* @group common
*/
public function checkClassConstants(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ConstructCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnConstruct(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetAfterPositionCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetAfterPositionCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetAfterPosition(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetBindTypeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetBindTypeCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetBindType(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetDefaultCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetDefaultCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetDefault(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetNameCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetNameCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetName(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetScaleCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetScaleCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetScale(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetSizeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetSizeCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetSize(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetTypeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetTypeCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetType(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetTypeReferenceCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetTypeReferenceCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetTypeReference(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/GetTypeValuesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GetTypeValuesCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnGetTypeValues(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/IsFirstCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsFirstCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnIsFirst(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/IsNotNullCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsNotNullCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnIsNotNull(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/IsNumericCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsNumericCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnIsNumeric(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/IsPrimaryCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsPrimaryCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnIsPrimary(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Column/IsUnsignedCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsUnsignedCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbColumnIsUnsigned(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Profiler/Item/GetSetFinalTimeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetSetFinalTimeCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetSetFinalTime(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Profiler/Item/GetSetInitialTimeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetSetInitialTimeCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetSetInitialTime(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Profiler/Item/GetSetSqlBindTypesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetSetSqlBindTypesCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetSetSqlBindTypes(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Profiler/Item/GetSetSqlStatementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetSetSqlStatementCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetSetSqlStatement(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/Profiler/Item/GetSetSqlVariablesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetSetSqlVariablesCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetSetSqlVariables(DatabaseTester $I)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetTotalElapsedSecondsCest
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group common
* @group common
*/
public function dbProfilerItemGetTotalElapsedSeconds(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/RawValue/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConstructCest
*
* @dataProvider valueProvider
*
* @group common
* @group common
*/
public function dbRawvalueConstruct(DatabaseTester $I, Example $example)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/RawValue/GetValueCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GetValueCest
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-04-17
*
* @group common
* @group common
*/
public function dbRawvalueGetValue(DatabaseTester $I)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/Db/RawValue/ToStringCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ToStringCest
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-04-17
*
* @group common
* @group common
*/
public function dbRawvalueToString(DatabaseTester $I)
{
Expand Down
18 changes: 9 additions & 9 deletions tests/database/Mvc/Model/AssignCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function _before(DatabaseTester $I)
* @author Sid Roberts <https://github.com/SidRoberts>
* @since 2019-04-18
*
* @group mysql
* @group pgsql
* @group sqlite
* @group mysql
* @group pgsql
* @group sqlite
*/
public function mvcModelAssign(DatabaseTester $I)
{
Expand Down Expand Up @@ -100,9 +100,9 @@ public function mvcModelAssign(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-01-29
*
* @group mysql
* @group pgsql
* @group sqlite
* @group mysql
* @group pgsql
* @group sqlite
*/
public function mvcModelAssignIncomplete(DatabaseTester $I)
{
Expand Down Expand Up @@ -143,9 +143,9 @@ public function mvcModelAssignIncomplete(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-02-13
*
* @group mysql
* @group pgsql
* @group sqlite
* @group mysql
* @group pgsql
* @group sqlite
*/
public function mvcModelAssignAutoPrimary(DatabaseTester $I)
{
Expand Down
8 changes: 4 additions & 4 deletions tests/database/Mvc/Model/AverageCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public function _before(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-01-30
*
* @group mysql
* @group pgsql
* @group sqlites
* @group mysql
* @group pgsql
* @group sqlites
*/
public function mvcModelAverage(DatabaseTester $I)
{
Expand Down Expand Up @@ -97,7 +97,7 @@ public function mvcModelAverage(DatabaseTester $I)
[
'column' => 'inv_total',
'group' => 'inv_cst_id',
'order' => 'inv_cst_id'
'order' => 'inv_cst_id',
]
);
$I->assertInstanceOf(Simple::class, $results);
Expand Down
6 changes: 3 additions & 3 deletions tests/database/Mvc/Model/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public function _before(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-02-01
*
* @group mysql
* @group pgsql
* @group sqlite
* @group mysql
* @group pgsql
* @group sqlite
*/
public function mvcModelConstruct(DatabaseTester $I)
{
Expand Down
8 changes: 4 additions & 4 deletions tests/database/Mvc/Model/CountCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function _before(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-01-29
*
* @group mysql
* @group pgsql
* @group mysql
* @group pgsql
*/
public function mvcModelCount(DatabaseTester $I)
{
Expand Down Expand Up @@ -115,8 +115,8 @@ public function mvcModelCount(DatabaseTester $I)
* @author Phalcon Team <[email protected]>
* @since 2020-01-29
*
* @group mysql
* @group pgsql
* @group mysql
* @group pgsql
*/
public function mvcModelCountColumnMap(DatabaseTester $I)
{
Expand Down
Loading

0 comments on commit e4088c8

Please sign in to comment.