Skip to content

Commit be3397b

Browse files
committed
docs: update coding style with php-cs-fixer
1 parent 0643f57 commit be3397b

147 files changed

Lines changed: 166 additions & 166 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

user_guide_src/source/cli/cli_commands/006.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
try {
44
// ...
5-
} catch (\Exception $e) {
5+
} catch (Exception $e) {
66
$this->showError($e);
77
}

user_guide_src/source/concepts/factories/002.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
$users = Factories::models('Blog\Models\UserModel');
44
// Or
5-
$users = Factories::models(\Blog\Models\UserModel::class);
5+
$users = Factories::models(Blog\Models\UserModel::class);

user_guide_src/source/concepts/factories/008.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$appConfig = config('App');
44

55
// The code above is the same as the code below.
6-
$appConfig = \CodeIgniter\Config\Factories::config('App');
6+
$appConfig = CodeIgniter\Config\Factories::config('App');

user_guide_src/source/concepts/factories/009.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$user = model('UserModel');
44

55
// The code above is the same as the code below.
6-
$user = \CodeIgniter\Config\Factories::models('UserModel');
6+
$user = CodeIgniter\Config\Factories::models('UserModel');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$timer = new \CodeIgniter\Debug\Timer();
3+
$timer = new CodeIgniter\Debug\Timer();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$timer = \Config\Services::timer();
3+
$timer = Config\Services::timer();

user_guide_src/source/concepts/services/003.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$logger = service('logger');
44

55
// The code above is the same as the code below.
6-
$logger = \Config\Services::logger();
6+
$logger = Config\Services::logger();

user_guide_src/source/concepts/services/004.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$renderer = service('renderer', APPPATH . 'views/');
44

55
// The code above is the same as the code below.
6-
$renderer = \Config\Services::renderer(APPPATH . 'views/');
6+
$renderer = Config\Services::renderer(APPPATH . 'views/');

user_guide_src/source/concepts/services/005.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$logger = single_service('logger');
44

55
// The code above is the same as the code below.
6-
$logger = \Config\Services::logger(false);
6+
$logger = Config\Services::logger(false);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$renderer = \Config\Services::renderer('/shared/views/');
3+
$renderer = Config\Services::renderer('/shared/views/');

0 commit comments

Comments
 (0)