Skip to content

Commit bc114f6

Browse files
committed
Merge branch 'develop' of github.com:bcit-ci/CodeIgniter4 into develop
2 parents d05b49a + 3db9fef commit bc114f6

172 files changed

Lines changed: 6891 additions & 6936 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.

license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 - 2017, British Columbia Institute of Technology
3+
Copyright (c) 2014-2017 British Columbia Institute of Technology
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

system/API/ResponseTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This content is released under the MIT License (MIT)
99
*
10-
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
10+
* Copyright (c) 2014-2017 British Columbia Institute of Technology
1111
*
1212
* Permission is hereby granted, free of charge, to any person obtaining a copy
1313
* of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,7 @@
2929
*
3030
* @package CodeIgniter
3131
* @author CodeIgniter Dev Team
32-
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
32+
* @copyright 2014-2017 British Columbia Institute of Technology (https://bcit.ca/)
3333
* @license https://opensource.org/licenses/MIT MIT License
3434
* @link https://codeigniter.com
3535
* @since Version 3.0.0

system/Autoloader/Autoloader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This content is released under the MIT License (MIT)
99
*
10-
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
10+
* Copyright (c) 2014-2017 British Columbia Institute of Technology
1111
*
1212
* Permission is hereby granted, free of charge, to any person obtaining a copy
1313
* of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,7 @@
2929
*
3030
* @package CodeIgniter
3131
* @author CodeIgniter Dev Team
32-
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
32+
* @copyright 2014-2017 British Columbia Institute of Technology (https://bcit.ca/)
3333
* @license https://opensource.org/licenses/MIT MIT License
3434
* @link https://codeigniter.com
3535
* @since Version 3.0.0
@@ -151,7 +151,7 @@ public function register()
151151

152152
include_once $config[$class];
153153
}, true, // Throw exception
154-
true // Prepend
154+
true // Prepend
155155
);
156156
}
157157

system/Autoloader/FileLocator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This content is released under the MIT License (MIT)
99
*
10-
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
10+
* Copyright (c) 2014-2017 British Columbia Institute of Technology
1111
*
1212
* Permission is hereby granted, free of charge, to any person obtaining a copy
1313
* of this software and associated documentation files (the "Software"), to deal
@@ -29,7 +29,7 @@
2929
*
3030
* @package CodeIgniter
3131
* @author CodeIgniter Dev Team
32-
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
32+
* @copyright 2014-2017 British Columbia Institute of Technology (https://bcit.ca/)
3333
* @license https://opensource.org/licenses/MIT MIT License
3434
* @link https://codeigniter.com
3535
* @since Version 3.0.0

system/CLI/BaseCommand.php

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This content is released under the MIT License (MIT)
99
*
10-
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
10+
* Copyright (c) 2014-2017 British Columbia Institute of Technology
1111
*
1212
* Permission is hereby granted, free of charge, to any person obtaining a copy
1313
* of this software and associated documentation files (the "Software"), to deal
@@ -27,15 +27,14 @@
2727
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2828
* THE SOFTWARE.
2929
*
30-
* @package CodeIgniter
31-
* @author CodeIgniter Dev Team
32-
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
33-
* @license https://opensource.org/licenses/MIT MIT License
34-
* @link https://codeigniter.com
35-
* @since Version 3.0.0
30+
* @package CodeIgniter
31+
* @author CodeIgniter Dev Team
32+
* @copyright 2014-2017 British Columbia Institute of Technology (https://bcit.ca/)
33+
* @license https://opensource.org/licenses/MIT MIT License
34+
* @link https://codeigniter.com
35+
* @since Version 3.0.0
3636
* @filesource
3737
*/
38-
3938
use Psr\Log\LoggerInterface;
4039

4140
/**
@@ -49,6 +48,7 @@
4948
*/
5049
abstract class BaseCommand
5150
{
51+
5252
/**
5353
* The group the command is lumped under
5454
* when listing commands.
@@ -161,7 +161,8 @@ protected function showError(\Exception $e)
161161
*/
162162
public function __get(string $key)
163163
{
164-
if (isset($this->$key)) {
164+
if (isset($this->$key))
165+
{
165166
return $this->$key;
166167
}
167168
}
@@ -189,7 +190,7 @@ public function showHelp()
189190

190191
$pad = max($this->getPad($this->options, 6), $this->getPad($this->arguments, 6));
191192

192-
if (!empty($this->arguments))
193+
if ( ! empty($this->arguments))
193194
{
194195
CLI::write(lang('CLI.helpArguments'), 'yellow');
195196
foreach ($this->arguments as $argument => $description)
@@ -199,7 +200,7 @@ public function showHelp()
199200
CLI::newLine();
200201
}
201202

202-
if (!empty($this->options))
203+
if ( ! empty($this->options))
203204
{
204205
CLI::write(lang('CLI.helpOptions'), 'yellow');
205206
foreach ($this->options as $option => $description)
@@ -223,12 +224,12 @@ public function showHelp()
223224
public function getPad($array, string $pad)
224225
{
225226
$max = 0;
226-
foreach ($array as $key => $value) {
227+
foreach ($array as $key => $value)
228+
{
227229
$max = max($max, strlen($key));
228230
}
229231
return $max + $pad;
230232
}
231233

232-
233234
//--------------------------------------------------------------------
234235
}

0 commit comments

Comments
 (0)