Skip to content

Commit

Permalink
Merge pull request #4780 from paulbalandan/b-rules
Browse files Browse the repository at this point in the history
[CS Migration]PSR12 rules starting with "b"
  • Loading branch information
paulbalandan authored Jun 7, 2021
2 parents 4d1cb84 + b4f7e4f commit d028ec4
Show file tree
Hide file tree
Showing 162 changed files with 394 additions and 116 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Database\Migrations;
<?php

namespace Tests\Support\Database\Migrations;

use CodeIgniter\Database\Migration;

Expand Down
4 changes: 3 additions & 1 deletion admin/module/tests/_support/Database/Seeds/ExampleSeeder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Database\Seeds;
<?php

namespace Tests\Support\Database\Seeds;

use CodeIgniter\Database\Seeder;

Expand Down
5 changes: 4 additions & 1 deletion admin/module/tests/_support/DatabaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php namespace Tests\Support;
<?php

namespace Tests\Support;

use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\DatabaseTestTrait;

Expand Down
4 changes: 3 additions & 1 deletion admin/module/tests/_support/Models/ExampleModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion admin/module/tests/_support/SessionTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support;
<?php

namespace Tests\Support;

use CodeIgniter\Session\Handlers\ArrayHandler;
use CodeIgniter\Session\SessionInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Database\Migrations;
<?php

namespace Tests\Support\Database\Migrations;

use CodeIgniter\Database\Migration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Database\Seeds;
<?php

namespace Tests\Support\Database\Seeds;

use CodeIgniter\Database\Seeder;

Expand Down
4 changes: 3 additions & 1 deletion admin/starter/tests/_support/DatabaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support;
<?php

namespace Tests\Support;

use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\DatabaseTestTrait;
Expand Down
4 changes: 3 additions & 1 deletion admin/starter/tests/_support/Models/ExampleModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion admin/starter/tests/_support/SessionTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support;
<?php

namespace Tests\Support;

use CodeIgniter\Session\Handlers\ArrayHandler;
use CodeIgniter\Session\SessionInterface;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Commands/AbstractInfo.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Commands;

use CodeIgniter\CLI\BaseCommand;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Commands/AppInfo.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Commands;

use CodeIgniter\CLI\BaseCommand;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Commands/InvalidCommand.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Commands;

use CodeIgniter\CLI\BaseCommand;
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Config/BadRegistrar.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Config;
<?php

namespace Tests\Support\Config;

/**
* Class BadRegistrar
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Config/Filters.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Config\Filters;

$filters->aliases['test-customfilter'] = \Tests\Support\Filters\Customfilter::class;
5 changes: 4 additions & 1 deletion tests/_support/Config/Routes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php namespace Tests\Support\Config;
<?php

namespace Tests\Support\Config;

/**
* This is a simple file to include for testing the RouteCollection class.
*/
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Config/TestRegistrar.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Config;
<?php

namespace Tests\Support\Config;

/**
* Class Registrar
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Controllers/Hello.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace App\Controllers;
<?php

namespace App\Controllers;

use CodeIgniter\Controller;

Expand Down
1 change: 1 addition & 0 deletions tests/_support/Controllers/Popcorn.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Controllers;

use CodeIgniter\API\ResponseTrait;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Filters/Customfilter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\Filters;

use CodeIgniter\HTTP\RequestInterface;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Helpers/baguette_helper.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php

// You did it!
4 changes: 3 additions & 1 deletion tests/_support/Language/SecondMockLanguage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Language;
<?php

namespace Tests\Support\Language;

use CodeIgniter\Language\Language;

Expand Down
1 change: 1 addition & 0 deletions tests/_support/Language/ab-CD/Allin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// seven wonders of the ancient world
return [
'one' => 'Pyramid of Giza',
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Language/ab/Allin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// seven deadly sins
return [
'two' => 'gluttony',
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Language/en-ZZ/More.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

return [
'strongForce' => 'These are not the droids you are looking for',
'notaMoon' => "It's made of cheese",
Expand Down
1 change: 1 addition & 0 deletions tests/_support/Language/en/Allin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// 12 days of Christmas
return [
'for' => 'four calling birds',
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Log/Handlers/TestHandler.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Log\Handlers;
<?php

namespace Tests\Support\Log\Handlers;

/**
* Class TestHandler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\MigrationTestMigrations\Database\Migrations;
<?php

namespace Tests\Support\MigrationTestMigrations\Database\Migrations;

class Migration_some_migration extends \CodeIgniter\Database\Migration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\MigrationTestMigrations\Database\Migrations;
<?php

namespace Tests\Support\MigrationTestMigrations\Database\Migrations;

class Migration_another_migration extends \CodeIgniter\Database\Migration
{
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/EntityModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/EventModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/FabricatorModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;
use Faker\Generator;
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/JobModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/SecondaryModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/StringifyPkeyModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/UserModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/ValidErrorsModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Models/ValidModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Models;
<?php

namespace Tests\Support\Models;

use CodeIgniter\Model;

Expand Down
1 change: 1 addition & 0 deletions tests/_support/RESTful/Worker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\RESTful;

use CodeIgniter\RESTful\ResourceController;
Expand Down
1 change: 1 addition & 0 deletions tests/_support/RESTful/Worker2.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Tests\Support\RESTful;

use CodeIgniter\RESTful\ResourcePresenter;
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Services.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter;
<?php

namespace CodeIgniter;

use CIUnitTestCase;
use Config\Services as ConfigServices;
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/Validation/TestRules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\Validation;
<?php

namespace Tests\Support\Validation;

class TestRules {

Expand Down
4 changes: 3 additions & 1 deletion tests/_support/View/SampleClass.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\View;
<?php

namespace Tests\Support\View;

/**
* Class SampleClass
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/View/SampleClassWithInitController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Tests\Support\View;
<?php

namespace Tests\Support\View;

use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
Expand Down
1 change: 1 addition & 0 deletions tests/system/API/ResponseTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace CodeIgniter\API;

use CodeIgniter\Format\JSONFormatter;
Expand Down
4 changes: 3 additions & 1 deletion tests/system/Autoloader/FileLocatorTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter\Autoloader;
<?php

namespace CodeIgniter\Autoloader;

use CodeIgniter\Test\CIUnitTestCase;
use Config\Autoload;
Expand Down
1 change: 1 addition & 0 deletions tests/system/Cache/CacheFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace CodeIgniter\Cache;

use CodeIgniter\Cache\Handlers\DummyHandler;
Expand Down
4 changes: 3 additions & 1 deletion tests/system/Cache/Handlers/BaseHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter\Cache\Handlers;
<?php

namespace CodeIgniter\Cache\Handlers;

use stdClass;
use CodeIgniter\Test\CIUnitTestCase;
Expand Down
4 changes: 3 additions & 1 deletion tests/system/Cache/Handlers/DummyHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter\Cache\Handlers;
<?php

namespace CodeIgniter\Cache\Handlers;

use CodeIgniter\Test\CIUnitTestCase;

Expand Down
4 changes: 3 additions & 1 deletion tests/system/CodeIgniterTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter;
<?php

namespace CodeIgniter;

use \CodeIgniter\Config\Services;
use CodeIgniter\Router\RouteCollection;
Expand Down
1 change: 1 addition & 0 deletions tests/system/Commands/BaseCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace CodeIgniter\Commands;

use CodeIgniter\CLI\CommandRunner;
Expand Down
4 changes: 3 additions & 1 deletion tests/system/Commands/ClearCacheTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter\Commands;
<?php

namespace CodeIgniter\Commands;

use CodeIgniter\Cache\CacheFactory;
use CodeIgniter\Test\CIUnitTestCase;
Expand Down
1 change: 1 addition & 0 deletions tests/system/Config/ConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace CodeIgniter\Config;

use CodeIgniter\Test\CIUnitTestCase;
Expand Down
4 changes: 3 additions & 1 deletion tests/system/ControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace CodeIgniter;
<?php

namespace CodeIgniter;

use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\Request;
Expand Down
Loading

0 comments on commit d028ec4

Please sign in to comment.