diff --git a/admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php b/admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
index 4d0292dd119a..2bbdcfe51994 100644
--- a/admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
+++ b/admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
@@ -10,43 +10,17 @@ class ExampleMigration extends Migration
public function up()
{
- $fields = [
- 'name' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'uid' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'class' => [
- 'type' => 'varchar',
- 'constraint' => 63,
- ],
- 'icon' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'summary' => [
- 'type' => 'varchar',
- 'constraint' => 255,
- ],
- 'created_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- 'updated_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- 'deleted_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- ];
-
$this->forge->addField('id');
- $this->forge->addField($fields);
+ $this->forge->addField([
+ 'name' => ['type' => 'varchar', 'constraint' => 31],
+ 'uid' => ['type' => 'varchar', 'constraint' => 31],
+ 'class' => ['type' => 'varchar', 'constraint' => 63],
+ 'icon' => ['type' => 'varchar', 'constraint' => 31],
+ 'summary' => ['type' => 'varchar', 'constraint' => 255],
+ 'created_at' => ['type' => 'datetime', 'null' => true],
+ 'updated_at' => ['type' => 'datetime', 'null' => true],
+ 'deleted_at' => ['type' => 'datetime', 'null' => true],
+ ]);
$this->forge->addKey('name');
$this->forge->addKey('uid');
diff --git a/admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php b/admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
index 4d0292dd119a..2bbdcfe51994 100644
--- a/admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
+++ b/admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
@@ -10,43 +10,17 @@ class ExampleMigration extends Migration
public function up()
{
- $fields = [
- 'name' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'uid' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'class' => [
- 'type' => 'varchar',
- 'constraint' => 63,
- ],
- 'icon' => [
- 'type' => 'varchar',
- 'constraint' => 31,
- ],
- 'summary' => [
- 'type' => 'varchar',
- 'constraint' => 255,
- ],
- 'created_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- 'updated_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- 'deleted_at' => [
- 'type' => 'datetime',
- 'null' => true,
- ],
- ];
-
$this->forge->addField('id');
- $this->forge->addField($fields);
+ $this->forge->addField([
+ 'name' => ['type' => 'varchar', 'constraint' => 31],
+ 'uid' => ['type' => 'varchar', 'constraint' => 31],
+ 'class' => ['type' => 'varchar', 'constraint' => 63],
+ 'icon' => ['type' => 'varchar', 'constraint' => 31],
+ 'summary' => ['type' => 'varchar', 'constraint' => 255],
+ 'created_at' => ['type' => 'datetime', 'null' => true],
+ 'updated_at' => ['type' => 'datetime', 'null' => true],
+ 'deleted_at' => ['type' => 'datetime', 'null' => true],
+ ]);
$this->forge->addKey('name');
$this->forge->addKey('uid');
diff --git a/app/Config/Filters.php b/app/Config/Filters.php
index 0c5dbd712b73..df90270a6480 100644
--- a/app/Config/Filters.php
+++ b/app/Config/Filters.php
@@ -32,7 +32,7 @@ class Filters extends BaseConfig
// 'honeypot',
// 'csrf',
],
- 'after' => [
+ 'after' => [
'toolbar',
// 'honeypot',
],
diff --git a/app/Config/Logger.php b/app/Config/Logger.php
index 5626006ce96d..397fcc4b5200 100644
--- a/app/Config/Logger.php
+++ b/app/Config/Logger.php
@@ -88,7 +88,7 @@ class Logger extends BaseConfig
/*
* The log levels that this handler will handle.
*/
- 'handles' => [
+ 'handles' => [
'critical',
'alert',
'emergency',
@@ -106,7 +106,7 @@ class Logger extends BaseConfig
*
* Note: Leaving it blank will default to 'log'.
*/
- 'fileExtension' => '',
+ 'fileExtension' => '',
/*
* The file system permissions to be applied on newly created log files.
@@ -122,7 +122,7 @@ class Logger extends BaseConfig
* By default, logs are written to WRITEPATH . 'logs/'
* Specify a different destination here, if desired.
*/
- 'path' => '',
+ 'path' => '',
],
/**
diff --git a/app/Config/Mimes.php b/app/Config/Mimes.php
index 339773b4110d..4edcfa4edc5c 100644
--- a/app/Config/Mimes.php
+++ b/app/Config/Mimes.php
@@ -25,14 +25,14 @@ class Mimes
* @var array
*/
public static $mimes = [
- 'hqx' => [
+ 'hqx' => [
'application/mac-binhex40',
'application/mac-binhex',
'application/x-binhex40',
'application/x-mac-binhex40',
],
- 'cpt' => 'application/mac-compactpro',
- 'csv' => [
+ 'cpt' => 'application/mac-compactpro',
+ 'csv' => [
'text/csv',
'text/x-comma-separated-values',
'text/comma-separated-values',
@@ -44,17 +44,17 @@ class Mimes
'application/vnd.msexcel',
'text/plain',
],
- 'bin' => [
+ 'bin' => [
'application/macbinary',
'application/mac-binary',
'application/octet-stream',
'application/x-binary',
'application/x-macbinary',
],
- 'dms' => 'application/octet-stream',
- 'lha' => 'application/octet-stream',
- 'lzh' => 'application/octet-stream',
- 'exe' => [
+ 'dms' => 'application/octet-stream',
+ 'lha' => 'application/octet-stream',
+ 'lzh' => 'application/octet-stream',
+ 'exe' => [
'application/octet-stream',
'application/x-msdownload',
],
@@ -63,25 +63,25 @@ class Mimes
'application/x-photoshop',
'image/vnd.adobe.photoshop',
],
- 'so' => 'application/octet-stream',
- 'sea' => 'application/octet-stream',
- 'dll' => 'application/octet-stream',
- 'oda' => 'application/oda',
- 'pdf' => [
+ 'so' => 'application/octet-stream',
+ 'sea' => 'application/octet-stream',
+ 'dll' => 'application/octet-stream',
+ 'oda' => 'application/oda',
+ 'pdf' => [
'application/pdf',
'application/force-download',
'application/x-download',
],
- 'ai' => [
+ 'ai' => [
'application/pdf',
'application/postscript',
],
- 'eps' => 'application/postscript',
- 'ps' => 'application/postscript',
- 'smi' => 'application/smil',
- 'smil' => 'application/smil',
- 'mif' => 'application/vnd.mif',
- 'xls' => [
+ 'eps' => 'application/postscript',
+ 'ps' => 'application/postscript',
+ 'smi' => 'application/smil',
+ 'smil' => 'application/smil',
+ 'mif' => 'application/vnd.mif',
+ 'xls' => [
'application/vnd.ms-excel',
'application/msexcel',
'application/x-msexcel',
@@ -95,13 +95,13 @@ class Mimes
'application/vnd.ms-office',
'application/msword',
],
- 'ppt' => [
+ 'ppt' => [
'application/vnd.ms-powerpoint',
'application/powerpoint',
'application/vnd.ms-office',
'application/msword',
],
- 'pptx' => [
+ 'pptx' => [
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/x-zip',
'application/zip',
@@ -131,10 +131,10 @@ class Mimes
'application/x-javascript',
'text/plain',
],
- 'swf' => 'application/x-shockwave-flash',
- 'sit' => 'application/x-stuffit',
- 'tar' => 'application/x-tar',
- 'tgz' => [
+ 'swf' => 'application/x-shockwave-flash',
+ 'sit' => 'application/x-stuffit',
+ 'tar' => 'application/x-tar',
+ 'tgz' => [
'application/x-tar',
'application/x-gzip-compressed',
],
@@ -148,42 +148,42 @@ class Mimes
'application/s-compressed',
'multipart/x-zip',
],
- 'rar' => [
+ 'rar' => [
'application/vnd.rar',
'application/x-rar',
'application/rar',
'application/x-rar-compressed',
],
- 'mid' => 'audio/midi',
- 'midi' => 'audio/midi',
- 'mpga' => 'audio/mpeg',
- 'mp2' => 'audio/mpeg',
- 'mp3' => [
+ 'mid' => 'audio/midi',
+ 'midi' => 'audio/midi',
+ 'mpga' => 'audio/mpeg',
+ 'mp2' => 'audio/mpeg',
+ 'mp3' => [
'audio/mpeg',
'audio/mpg',
'audio/mpeg3',
'audio/mp3',
],
- 'aif' => [
+ 'aif' => [
'audio/x-aiff',
'audio/aiff',
],
- 'aiff' => [
+ 'aiff' => [
'audio/x-aiff',
'audio/aiff',
],
- 'aifc' => 'audio/x-aiff',
- 'ram' => 'audio/x-pn-realaudio',
- 'rm' => 'audio/x-pn-realaudio',
- 'rpm' => 'audio/x-pn-realaudio-plugin',
- 'ra' => 'audio/x-realaudio',
- 'rv' => 'video/vnd.rn-realvideo',
- 'wav' => [
+ 'aifc' => 'audio/x-aiff',
+ 'ram' => 'audio/x-pn-realaudio',
+ 'rm' => 'audio/x-pn-realaudio',
+ 'rpm' => 'audio/x-pn-realaudio-plugin',
+ 'ra' => 'audio/x-realaudio',
+ 'rv' => 'video/vnd.rn-realvideo',
+ 'wav' => [
'audio/x-wav',
'audio/wave',
'audio/wav',
],
- 'bmp' => [
+ 'bmp' => [
'image/bmp',
'image/x-bmp',
'image/x-bitmap',
@@ -196,82 +196,82 @@ class Mimes
'application/x-bmp',
'application/x-win-bitmap',
],
- 'gif' => 'image/gif',
- 'jpg' => [
+ 'gif' => 'image/gif',
+ 'jpg' => [
'image/jpeg',
'image/pjpeg',
],
- 'jpeg' => [
+ 'jpeg' => [
'image/jpeg',
'image/pjpeg',
],
- 'jpe' => [
+ 'jpe' => [
'image/jpeg',
'image/pjpeg',
],
- 'jp2' => [
+ 'jp2' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'j2k' => [
+ 'j2k' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'jpf' => [
+ 'jpf' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'jpg2' => [
+ 'jpg2' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'jpx' => [
+ 'jpx' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'jpm' => [
+ 'jpm' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'mj2' => [
+ 'mj2' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'mjp2' => [
+ 'mjp2' => [
'image/jp2',
'video/mj2',
'image/jpx',
'image/jpm',
],
- 'png' => [
+ 'png' => [
'image/png',
'image/x-png',
],
- 'tif' => 'image/tiff',
- 'tiff' => 'image/tiff',
- 'css' => [
+ 'tif' => 'image/tiff',
+ 'tiff' => 'image/tiff',
+ 'css' => [
'text/css',
'text/plain',
],
- 'html' => [
+ 'html' => [
'text/html',
'text/plain',
],
- 'htm' => [
+ 'htm' => [
'text/html',
'text/plain',
],
@@ -279,30 +279,30 @@ class Mimes
'text/html',
'text/plain',
],
- 'txt' => 'text/plain',
- 'text' => 'text/plain',
- 'log' => [
+ 'txt' => 'text/plain',
+ 'text' => 'text/plain',
+ 'log' => [
'text/plain',
'text/x-log',
],
- 'rtx' => 'text/richtext',
- 'rtf' => 'text/rtf',
- 'xml' => [
+ 'rtx' => 'text/richtext',
+ 'rtf' => 'text/rtf',
+ 'xml' => [
'application/xml',
'text/xml',
'text/plain',
],
- 'xsl' => [
+ 'xsl' => [
'application/xml',
'text/xsl',
'text/xml',
],
- 'mpeg' => 'video/mpeg',
- 'mpg' => 'video/mpeg',
- 'mpe' => 'video/mpeg',
- 'qt' => 'video/quicktime',
- 'mov' => 'video/quicktime',
- 'avi' => [
+ 'mpeg' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mpe' => 'video/mpeg',
+ 'qt' => 'video/quicktime',
+ 'mov' => 'video/quicktime',
+ 'avi' => [
'video/x-msvideo',
'video/msvideo',
'video/avi',
@@ -313,131 +313,131 @@ class Mimes
'application/msword',
'application/vnd.ms-office',
],
- 'docx' => [
+ 'docx' => [
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/zip',
'application/msword',
'application/x-zip',
],
- 'dot' => [
+ 'dot' => [
'application/msword',
'application/vnd.ms-office',
],
- 'dotx' => [
+ 'dotx' => [
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/zip',
'application/msword',
],
- 'xlsx' => [
+ 'xlsx' => [
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/zip',
'application/vnd.ms-excel',
'application/msword',
'application/x-zip',
],
- 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
- 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
- 'word' => [
+ 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
+ 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
+ 'word' => [
'application/msword',
'application/octet-stream',
],
- 'xl' => 'application/excel',
- 'eml' => 'message/rfc822',
- 'json' => [
+ 'xl' => 'application/excel',
+ 'eml' => 'message/rfc822',
+ 'json' => [
'application/json',
'text/json',
],
- 'pem' => [
+ 'pem' => [
'application/x-x509-user-cert',
'application/x-pem-file',
'application/octet-stream',
],
- 'p10' => [
+ 'p10' => [
'application/x-pkcs10',
'application/pkcs10',
],
- 'p12' => 'application/x-pkcs12',
- 'p7a' => 'application/x-pkcs7-signature',
- 'p7c' => [
+ 'p12' => 'application/x-pkcs12',
+ 'p7a' => 'application/x-pkcs7-signature',
+ 'p7c' => [
'application/pkcs7-mime',
'application/x-pkcs7-mime',
],
- 'p7m' => [
+ 'p7m' => [
'application/pkcs7-mime',
'application/x-pkcs7-mime',
],
- 'p7r' => 'application/x-pkcs7-certreqresp',
- 'p7s' => 'application/pkcs7-signature',
- 'crt' => [
+ 'p7r' => 'application/x-pkcs7-certreqresp',
+ 'p7s' => 'application/pkcs7-signature',
+ 'crt' => [
'application/x-x509-ca-cert',
'application/x-x509-user-cert',
'application/pkix-cert',
],
- 'crl' => [
+ 'crl' => [
'application/pkix-crl',
'application/pkcs-crl',
],
- 'der' => 'application/x-x509-ca-cert',
- 'kdb' => 'application/octet-stream',
- 'pgp' => 'application/pgp',
- 'gpg' => 'application/gpg-keys',
- 'sst' => 'application/octet-stream',
- 'csr' => 'application/octet-stream',
- 'rsa' => 'application/x-pkcs7',
- 'cer' => [
+ 'der' => 'application/x-x509-ca-cert',
+ 'kdb' => 'application/octet-stream',
+ 'pgp' => 'application/pgp',
+ 'gpg' => 'application/gpg-keys',
+ 'sst' => 'application/octet-stream',
+ 'csr' => 'application/octet-stream',
+ 'rsa' => 'application/x-pkcs7',
+ 'cer' => [
'application/pkix-cert',
'application/x-x509-ca-cert',
],
- '3g2' => 'video/3gpp2',
- '3gp' => [
+ '3g2' => 'video/3gpp2',
+ '3gp' => [
'video/3gp',
'video/3gpp',
],
- 'mp4' => 'video/mp4',
- 'm4a' => 'audio/x-m4a',
- 'f4v' => [
+ 'mp4' => 'video/mp4',
+ 'm4a' => 'audio/x-m4a',
+ 'f4v' => [
'video/mp4',
'video/x-f4v',
],
- 'flv' => 'video/x-flv',
- 'webm' => 'video/webm',
- 'aac' => 'audio/x-acc',
- 'm4u' => 'application/vnd.mpegurl',
- 'm3u' => 'text/plain',
- 'xspf' => 'application/xspf+xml',
- 'vlc' => 'application/videolan',
- 'wmv' => [
+ 'flv' => 'video/x-flv',
+ 'webm' => 'video/webm',
+ 'aac' => 'audio/x-acc',
+ 'm4u' => 'application/vnd.mpegurl',
+ 'm3u' => 'text/plain',
+ 'xspf' => 'application/xspf+xml',
+ 'vlc' => 'application/videolan',
+ 'wmv' => [
'video/x-ms-wmv',
'video/x-ms-asf',
],
- 'au' => 'audio/x-au',
- 'ac3' => 'audio/ac3',
- 'flac' => 'audio/x-flac',
- 'ogg' => [
+ 'au' => 'audio/x-au',
+ 'ac3' => 'audio/ac3',
+ 'flac' => 'audio/x-flac',
+ 'ogg' => [
'audio/ogg',
'video/ogg',
'application/ogg',
],
- 'kmz' => [
+ 'kmz' => [
'application/vnd.google-earth.kmz',
'application/zip',
'application/x-zip',
],
- 'kml' => [
+ 'kml' => [
'application/vnd.google-earth.kml+xml',
'application/xml',
'text/xml',
],
- 'ics' => 'text/calendar',
- 'ical' => 'text/calendar',
- 'zsh' => 'text/x-scriptzsh',
- '7zip' => [
+ 'ics' => 'text/calendar',
+ 'ical' => 'text/calendar',
+ 'zsh' => 'text/x-scriptzsh',
+ '7zip' => [
'application/x-compressed',
'application/x-zip-compressed',
'application/zip',
'multipart/x-zip',
],
- 'cdr' => [
+ 'cdr' => [
'application/cdr',
'application/coreldraw',
'application/x-cdr',
@@ -446,37 +446,37 @@ class Mimes
'image/x-cdr',
'zz-application/zz-winassoc-cdr',
],
- 'wma' => [
+ 'wma' => [
'audio/x-ms-wma',
'video/x-ms-asf',
],
- 'jar' => [
+ 'jar' => [
'application/java-archive',
'application/x-java-application',
'application/x-jar',
'application/x-compressed',
],
- 'svg' => [
+ 'svg' => [
'image/svg+xml',
'image/svg',
'application/xml',
'text/xml',
],
- 'vcf' => 'text/x-vcard',
- 'srt' => [
+ 'vcf' => 'text/x-vcard',
+ 'srt' => [
'text/srt',
'text/plain',
],
- 'vtt' => [
+ 'vtt' => [
'text/vtt',
'text/plain',
],
- 'ico' => [
+ 'ico' => [
'image/x-icon',
'image/x-ico',
'image/vnd.microsoft.icon',
],
- 'stl' => [
+ 'stl' => [
'application/sla',
'application/vnd.ms-pki.stl',
'application/x-navistyle',
diff --git a/app/Config/UserAgents.php b/app/Config/UserAgents.php
index 5eea09fe5567..e1dbfa63d726 100644
--- a/app/Config/UserAgents.php
+++ b/app/Config/UserAgents.php
@@ -79,11 +79,11 @@ class UserAgents extends BaseConfig
* @var array
*/
public $browsers = [
- 'OPR' => 'Opera',
- 'Flock' => 'Flock',
- 'Edge' => 'Spartan',
- 'Edg' => 'Edge',
- 'Chrome' => 'Chrome',
+ 'OPR' => 'Opera',
+ 'Flock' => 'Flock',
+ 'Edge' => 'Spartan',
+ 'Edg' => 'Edge',
+ 'Chrome' => 'Chrome',
// Opera 10+ always reports Opera/9.80 and appends Version/ to the user agent string
'Opera.*?Version' => 'Opera',
'Opera' => 'Opera',
@@ -121,16 +121,16 @@ class UserAgents extends BaseConfig
*/
public $mobiles = [
// legacy array, old values commented out
- 'mobileexplorer' => 'Mobile Explorer',
+ 'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
- 'palmsource' => 'Palm',
+ 'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
- 'palmscape' => 'Palmscape',
+ 'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
@@ -181,42 +181,42 @@ class UserAgents extends BaseConfig
'openweb' => 'OpenWeb',
// Operating Systems
- 'android' => 'Android',
- 'symbian' => 'Symbian',
- 'SymbianOS' => 'SymbianOS',
- 'elaine' => 'Palm',
- 'series60' => 'Symbian S60',
- 'windows ce' => 'Windows CE',
+ 'android' => 'Android',
+ 'symbian' => 'Symbian',
+ 'SymbianOS' => 'SymbianOS',
+ 'elaine' => 'Palm',
+ 'series60' => 'Symbian S60',
+ 'windows ce' => 'Windows CE',
// Browsers
- 'obigo' => 'Obigo',
- 'netfront' => 'Netfront Browser',
- 'openwave' => 'Openwave Browser',
- 'mobilexplorer' => 'Mobile Explorer',
- 'operamini' => 'Opera Mini',
- 'opera mini' => 'Opera Mini',
- 'opera mobi' => 'Opera Mobile',
- 'fennec' => 'Firefox Mobile',
+ 'obigo' => 'Obigo',
+ 'netfront' => 'Netfront Browser',
+ 'openwave' => 'Openwave Browser',
+ 'mobilexplorer' => 'Mobile Explorer',
+ 'operamini' => 'Opera Mini',
+ 'opera mini' => 'Opera Mini',
+ 'opera mobi' => 'Opera Mobile',
+ 'fennec' => 'Firefox Mobile',
// Other
- 'digital paths' => 'Digital Paths',
- 'avantgo' => 'AvantGo',
- 'xiino' => 'Xiino',
- 'novarra' => 'Novarra Transcoder',
- 'vodafone' => 'Vodafone',
- 'docomo' => 'NTT DoCoMo',
- 'o2' => 'O2',
+ 'digital paths' => 'Digital Paths',
+ 'avantgo' => 'AvantGo',
+ 'xiino' => 'Xiino',
+ 'novarra' => 'Novarra Transcoder',
+ 'vodafone' => 'Vodafone',
+ 'docomo' => 'NTT DoCoMo',
+ 'o2' => 'O2',
// Fallback
- 'mobile' => 'Generic Mobile',
- 'wireless' => 'Generic Mobile',
- 'j2me' => 'Generic Mobile',
- 'midp' => 'Generic Mobile',
- 'cldc' => 'Generic Mobile',
- 'up.link' => 'Generic Mobile',
- 'up.browser' => 'Generic Mobile',
- 'smartphone' => 'Generic Mobile',
- 'cellphone' => 'Generic Mobile',
+ 'mobile' => 'Generic Mobile',
+ 'wireless' => 'Generic Mobile',
+ 'j2me' => 'Generic Mobile',
+ 'midp' => 'Generic Mobile',
+ 'cldc' => 'Generic Mobile',
+ 'up.link' => 'Generic Mobile',
+ 'up.browser' => 'Generic Mobile',
+ 'smartphone' => 'Generic Mobile',
+ 'cellphone' => 'Generic Mobile',
];
/**
diff --git a/system/Database/MigrationRunner.php b/system/Database/MigrationRunner.php
index e42a84cea2aa..aa86cfde10dd 100644
--- a/system/Database/MigrationRunner.php
+++ b/system/Database/MigrationRunner.php
@@ -918,23 +918,23 @@ public function ensureTable()
$forge = Database::forge($this->db);
$forge->addField([
- 'id' => [
+ 'id' => [
'type' => 'BIGINT',
'constraint' => 20,
'unsigned' => true,
'auto_increment' => true,
],
- 'version' => [
+ 'version' => [
'type' => 'VARCHAR',
'constraint' => 255,
'null' => false,
],
- 'class' => [
+ 'class' => [
'type' => 'VARCHAR',
'constraint' => 255,
'null' => false,
],
- 'group' => [
+ 'group' => [
'type' => 'VARCHAR',
'constraint' => 255,
'null' => false,
@@ -944,12 +944,12 @@ public function ensureTable()
'constraint' => 255,
'null' => false,
],
- 'time' => [
+ 'time' => [
'type' => 'INT',
'constraint' => 11,
'null' => false,
],
- 'batch' => [
+ 'batch' => [
'type' => 'INT',
'constraint' => 11,
'unsigned' => true,
diff --git a/system/Database/MySQLi/Result.php b/system/Database/MySQLi/Result.php
index 4dc7e79173a2..65eb6b7f0b80 100644
--- a/system/Database/MySQLi/Result.php
+++ b/system/Database/MySQLi/Result.php
@@ -59,29 +59,29 @@ public function getFieldNames(): array
public function getFieldData(): array
{
static $dataTypes = [
- MYSQLI_TYPE_DECIMAL => 'decimal',
- MYSQLI_TYPE_NEWDECIMAL => 'newdecimal',
- MYSQLI_TYPE_FLOAT => 'float',
- MYSQLI_TYPE_DOUBLE => 'double',
+ MYSQLI_TYPE_DECIMAL => 'decimal',
+ MYSQLI_TYPE_NEWDECIMAL => 'newdecimal',
+ MYSQLI_TYPE_FLOAT => 'float',
+ MYSQLI_TYPE_DOUBLE => 'double',
- MYSQLI_TYPE_BIT => 'bit',
- MYSQLI_TYPE_SHORT => 'short',
- MYSQLI_TYPE_LONG => 'long',
- MYSQLI_TYPE_LONGLONG => 'longlong',
- MYSQLI_TYPE_INT24 => 'int24',
+ MYSQLI_TYPE_BIT => 'bit',
+ MYSQLI_TYPE_SHORT => 'short',
+ MYSQLI_TYPE_LONG => 'long',
+ MYSQLI_TYPE_LONGLONG => 'longlong',
+ MYSQLI_TYPE_INT24 => 'int24',
- MYSQLI_TYPE_YEAR => 'year',
+ MYSQLI_TYPE_YEAR => 'year',
- MYSQLI_TYPE_TIMESTAMP => 'timestamp',
- MYSQLI_TYPE_DATE => 'date',
- MYSQLI_TYPE_TIME => 'time',
- MYSQLI_TYPE_DATETIME => 'datetime',
- MYSQLI_TYPE_NEWDATE => 'newdate',
+ MYSQLI_TYPE_TIMESTAMP => 'timestamp',
+ MYSQLI_TYPE_DATE => 'date',
+ MYSQLI_TYPE_TIME => 'time',
+ MYSQLI_TYPE_DATETIME => 'datetime',
+ MYSQLI_TYPE_NEWDATE => 'newdate',
- MYSQLI_TYPE_SET => 'set',
+ MYSQLI_TYPE_SET => 'set',
- MYSQLI_TYPE_VAR_STRING => 'var_string',
- MYSQLI_TYPE_STRING => 'string',
+ MYSQLI_TYPE_VAR_STRING => 'var_string',
+ MYSQLI_TYPE_STRING => 'string',
MYSQLI_TYPE_GEOMETRY => 'geometry',
MYSQLI_TYPE_TINY_BLOB => 'tiny_blob',
diff --git a/system/Database/Postgre/Connection.php b/system/Database/Postgre/Connection.php
index 26d92d872017..62076997c8c3 100644
--- a/system/Database/Postgre/Connection.php
+++ b/system/Database/Postgre/Connection.php
@@ -295,7 +295,7 @@ public function _fieldData(string $table): array
$retVal = [];
for ($i = 0, $c = count($query); $i < $c; $i ++) {
- $retVal[$i] = new stdClass();
+ $retVal[$i] = new stdClass();
$retVal[$i]->name = $query[$i]->column_name;
$retVal[$i]->type = $query[$i]->data_type;
@@ -384,7 +384,7 @@ public function _foreignKeyData(string $table): array
$retVal = [];
foreach ($query as $row) {
- $obj = new stdClass();
+ $obj = new stdClass();
$obj->constraint_name = $row->constraint_name;
$obj->table_name = $row->table_name;
@@ -392,7 +392,7 @@ public function _foreignKeyData(string $table): array
$obj->foreign_table_name = $row->foreign_table_name;
$obj->foreign_column_name = $row->foreign_column_name;
- $retVal[] = $obj;
+ $retVal[] = $obj;
}
return $retVal;
diff --git a/system/Database/SQLSRV/Connection.php b/system/Database/SQLSRV/Connection.php
index 5e4acde01fd2..56b431d022e6 100755
--- a/system/Database/SQLSRV/Connection.php
+++ b/system/Database/SQLSRV/Connection.php
@@ -310,7 +310,7 @@ public function _foreignKeyData(string $table): array
$retVal = [];
foreach ($query as $row) {
- $obj = new stdClass();
+ $obj = new stdClass();
$obj->constraint_name = $row->constraint_name;
$obj->table_name = $row->table_name;
@@ -318,7 +318,7 @@ public function _foreignKeyData(string $table): array
$obj->foreign_table_name = $row->foreign_table_name;
$obj->foreign_column_name = $row->foreign_column_name;
- $retVal[] = $obj;
+ $retVal[] = $obj;
}
return $retVal;
@@ -367,11 +367,11 @@ public function _fieldData(string $table): array
$retVal = [];
for ($i = 0, $c = count($query); $i < $c; $i++) {
- $retVal[$i] = new stdClass();
+ $retVal[$i] = new stdClass();
- $retVal[$i]->name = $query[$i]->COLUMN_NAME;
- $retVal[$i]->type = $query[$i]->DATA_TYPE;
- $retVal[$i]->default = $query[$i]->COLUMN_DEFAULT;
+ $retVal[$i]->name = $query[$i]->COLUMN_NAME;
+ $retVal[$i]->type = $query[$i]->DATA_TYPE;
+ $retVal[$i]->default = $query[$i]->COLUMN_DEFAULT;
$retVal[$i]->max_length = $query[$i]->CHARACTER_MAXIMUM_LENGTH > 0
? $query[$i]->CHARACTER_MAXIMUM_LENGTH
diff --git a/system/Database/SQLSRV/Result.php b/system/Database/SQLSRV/Result.php
index 08409414f30e..d2fed8735e82 100755
--- a/system/Database/SQLSRV/Result.php
+++ b/system/Database/SQLSRV/Result.php
@@ -56,32 +56,32 @@ public function getFieldNames(): array
public function getFieldData(): array
{
static $dataTypes = [
- SQLSRV_SQLTYPE_BIGINT => 'bigint',
- SQLSRV_SQLTYPE_BIT => 'bit',
- SQLSRV_SQLTYPE_CHAR => 'char',
+ SQLSRV_SQLTYPE_BIGINT => 'bigint',
+ SQLSRV_SQLTYPE_BIT => 'bit',
+ SQLSRV_SQLTYPE_CHAR => 'char',
- SQLSRV_SQLTYPE_DATE => 'date',
- SQLSRV_SQLTYPE_DATETIME => 'datetime',
- SQLSRV_SQLTYPE_DATETIME2 => 'datetime2',
- SQLSRV_SQLTYPE_DATETIMEOFFSET => 'datetimeoffset',
+ SQLSRV_SQLTYPE_DATE => 'date',
+ SQLSRV_SQLTYPE_DATETIME => 'datetime',
+ SQLSRV_SQLTYPE_DATETIME2 => 'datetime2',
+ SQLSRV_SQLTYPE_DATETIMEOFFSET => 'datetimeoffset',
- SQLSRV_SQLTYPE_DECIMAL => 'decimal',
- SQLSRV_SQLTYPE_FLOAT => 'float',
+ SQLSRV_SQLTYPE_DECIMAL => 'decimal',
+ SQLSRV_SQLTYPE_FLOAT => 'float',
- SQLSRV_SQLTYPE_IMAGE => 'image',
- SQLSRV_SQLTYPE_INT => 'int',
- SQLSRV_SQLTYPE_MONEY => 'money',
- SQLSRV_SQLTYPE_NCHAR => 'nchar',
- SQLSRV_SQLTYPE_NUMERIC => 'numeric',
+ SQLSRV_SQLTYPE_IMAGE => 'image',
+ SQLSRV_SQLTYPE_INT => 'int',
+ SQLSRV_SQLTYPE_MONEY => 'money',
+ SQLSRV_SQLTYPE_NCHAR => 'nchar',
+ SQLSRV_SQLTYPE_NUMERIC => 'numeric',
- SQLSRV_SQLTYPE_NVARCHAR => 'nvarchar',
- SQLSRV_SQLTYPE_NTEXT => 'ntext',
+ SQLSRV_SQLTYPE_NVARCHAR => 'nvarchar',
+ SQLSRV_SQLTYPE_NTEXT => 'ntext',
- SQLSRV_SQLTYPE_REAL => 'real',
- SQLSRV_SQLTYPE_SMALLDATETIME => 'smalldatetime',
- SQLSRV_SQLTYPE_SMALLINT => 'smallint',
- SQLSRV_SQLTYPE_SMALLMONEY => 'smallmoney',
- SQLSRV_SQLTYPE_TEXT => 'text',
+ SQLSRV_SQLTYPE_REAL => 'real',
+ SQLSRV_SQLTYPE_SMALLDATETIME => 'smalldatetime',
+ SQLSRV_SQLTYPE_SMALLINT => 'smallint',
+ SQLSRV_SQLTYPE_SMALLMONEY => 'smallmoney',
+ SQLSRV_SQLTYPE_TEXT => 'text',
SQLSRV_SQLTYPE_TIME => 'time',
SQLSRV_SQLTYPE_TIMESTAMP => 'timestamp',
@@ -96,7 +96,7 @@ public function getFieldData(): array
$retVal = [];
foreach (sqlsrv_field_metadata($this->resultID) as $i => $field) {
- $retVal[$i] = new stdClass();
+ $retVal[$i] = new stdClass();
$retVal[$i]->name = $field['Name'];
$retVal[$i]->type = $field['Type'];
diff --git a/system/Database/SQLite3/Connection.php b/system/Database/SQLite3/Connection.php
index 772842b10fbf..1941d2ef2d13 100644
--- a/system/Database/SQLite3/Connection.php
+++ b/system/Database/SQLite3/Connection.php
@@ -281,7 +281,7 @@ public function _fieldData(string $table): array
$retVal = [];
for ($i = 0, $c = count($query); $i < $c; $i++) {
- $retVal[$i] = new stdClass();
+ $retVal[$i] = new stdClass();
$retVal[$i]->name = $query[$i]->name;
$retVal[$i]->type = $query[$i]->type;
@@ -318,7 +318,7 @@ public function _indexData(string $table): array
$retVal = [];
foreach ($query as $row) {
- $obj = new stdClass();
+ $obj = new stdClass();
$obj->name = $row->name;
diff --git a/system/Email/Email.php b/system/Email/Email.php
index 0a37388eab1d..b5df794b1ee5 100644
--- a/system/Email/Email.php
+++ b/system/Email/Email.php
@@ -704,9 +704,9 @@ public function attach($file, $disposition = '', $newname = null, $mime = '')
'name' => $namesAttached,
'disposition' => empty($disposition) ? 'attachment' : $disposition,
// Can also be 'inline' Not sure if it matters
- 'type' => $mime,
- 'content' => chunk_split(base64_encode($fileContent)),
- 'multipart' => 'mixed',
+ 'type' => $mime,
+ 'content' => chunk_split(base64_encode($fileContent)),
+ 'multipart' => 'mixed',
];
return $this;
@@ -1113,7 +1113,7 @@ public function wordWrap($str, $charlim = null)
// Trim the word down
$temp .= static::substr($line, 0, $charlim - 1);
- $line = static::substr($line, $charlim - 1);
+ $line = static::substr($line, $charlim - 1);
} while (static::strlen($line) > $charlim);
// If $temp contains data it means we had to split up an over-length
@@ -1197,7 +1197,7 @@ protected function buildMessage()
if ($this->getProtocol() === 'mail') {
$this->headerStr .= $hdr;
- $this->finalBody = $this->body;
+ $this->finalBody = $this->body;
} else {
$this->finalBody = $hdr . $this->newline . $this->newline . $this->body;
}
@@ -1261,7 +1261,7 @@ protected function buildMessage()
$lastBoundary = null;
if ($this->attachmentsHaveMultipart('mixed')) {
- $atcBoundary = uniqid('B_ATC_', true);
+ $atcBoundary = uniqid('B_ATC_', true);
$hdr .= 'Content-Type: multipart/mixed; boundary="' . $atcBoundary . '"';
$lastBoundary = $atcBoundary;
}
@@ -1345,7 +1345,8 @@ protected function appendAttachments(&$body, $boundary, $multipart = null)
if (isset($multipart) && $attachment['multipart'] !== $multipart) {
continue;
}
- $name = $attachment['name'][1] ?? basename($attachment['name'][0]);
+
+ $name = $attachment['name'][1] ?? basename($attachment['name'][0]);
$body .= '--' . $boundary . $this->newline
. 'Content-Type: ' . $attachment['type'] . '; name="' . $name . '"' . $this->newline
. 'Content-Disposition: ' . $attachment['disposition'] . ';' . $this->newline
@@ -1512,7 +1513,7 @@ protected function prepQuotedPrintable($str)
// reset our temp variable, and keep on chuggin'
if ((static::strlen($temp) + static::strlen($char)) >= 76) {
$output .= $temp . $escape . $this->CRLF;
- $temp = '';
+ $temp = '';
}
// Add the character to our temporary line
@@ -1670,7 +1671,7 @@ public function batchBCCSend()
if ($i === $float) {
$chunk[] = static::substr($set, 1);
$float += $this->BCCBatchSize;
- $set = '';
+ $set = '';
}
if ($i === $c - 1) {
diff --git a/system/Encryption/Encryption.php b/system/Encryption/Encryption.php
index 410b92bf0dc1..2fec6306e2e8 100644
--- a/system/Encryption/Encryption.php
+++ b/system/Encryption/Encryption.php
@@ -96,7 +96,7 @@ public function __construct(EncryptionConfig $config = null)
$this->handlers = [
'OpenSSL' => extension_loaded('openssl'),
// the SodiumHandler uses some API (like sodium_pad) that is available only on v1.0.14+
- 'Sodium' => extension_loaded('sodium') && version_compare(SODIUM_LIBRARY_VERSION, '1.0.14', '>='),
+ 'Sodium' => extension_loaded('sodium') && version_compare(SODIUM_LIBRARY_VERSION, '1.0.14', '>='),
];
// If requested driver is not active, bail
diff --git a/system/Filters/Filters.php b/system/Filters/Filters.php
index bf3ffedac4ef..c6bb1a51cd59 100644
--- a/system/Filters/Filters.php
+++ b/system/Filters/Filters.php
@@ -268,8 +268,10 @@ public function initialize(string $uri = null)
public function reset(): self
{
$this->initialized = false;
- $this->arguments = $this->argumentsClass = [];
- $this->filters = $this->filtersClass = [
+
+ $this->arguments = $this->argumentsClass = [];
+
+ $this->filters = $this->filtersClass = [
'before' => [],
'after' => [],
];
diff --git a/system/Helpers/form_helper.php b/system/Helpers/form_helper.php
index 9284916a3665..3f7b9336bdcd 100644
--- a/system/Helpers/form_helper.php
+++ b/system/Helpers/form_helper.php
@@ -57,7 +57,7 @@ function form_open(string $action = '', $attributes = [], array $hidden = []): s
$attributes .= ' method="post"';
}
if (stripos($attributes, 'accept-charset=') === false) {
- $config = config(App::class);
+ $config = config(App::class);
$attributes .= ' accept-charset="' . strtolower($config->charset) . '"';
}
diff --git a/system/Helpers/text_helper.php b/system/Helpers/text_helper.php
index da096cb52c1c..dcd51d7916a5 100755
--- a/system/Helpers/text_helper.php
+++ b/system/Helpers/text_helper.php
@@ -126,8 +126,8 @@ function ascii_to_entities(string $str): string
if (count($temp) === $count) {
$number = ($count === 3) ? (($temp[0] % 16) * 4096) + (($temp[1] % 64) * 64) + ($temp[2] % 64) : (($temp[0] % 32) * 64) + ($temp[1] % 64);
$out .= '' . $number . ';';
- $count = 1;
- $temp = [];
+ $count = 1;
+ $temp = [];
}
// If this is the last iteration, just output whatever we have
elseif ($i === $s) {
@@ -442,7 +442,7 @@ function word_wrap(string $str, int $charlim = 76): string
}
// Trim the word down
$temp .= mb_substr($line, 0, $charlim - 1);
- $line = mb_substr($line, $charlim - 1);
+ $line = mb_substr($line, $charlim - 1);
}
// If $temp contains data it means we had to split up an over-length
diff --git a/system/Images/Handlers/ImageMagickHandler.php b/system/Images/Handlers/ImageMagickHandler.php
index 89c4c292489b..db668b6b02d9 100644
--- a/system/Images/Handlers/ImageMagickHandler.php
+++ b/system/Images/Handlers/ImageMagickHandler.php
@@ -236,7 +236,7 @@ protected function process(string $action, int $quality = 100): array
$this->config->libraryPath = rtrim($this->config->libraryPath, '/') . '/convert';
}
- $cmd = $this->config->libraryPath;
+ $cmd = $this->config->libraryPath;
$cmd .= $action === '-version' ? ' ' . $action : ' -quality ' . $quality . ' ' . $action;
$retval = 1;
diff --git a/system/Language/en/CLI.php b/system/Language/en/CLI.php
index faab90ca7c9b..8fe504b40283 100644
--- a/system/Language/en/CLI.php
+++ b/system/Language/en/CLI.php
@@ -11,12 +11,12 @@
// CLI language settings
return [
- 'altCommandPlural' => 'Did you mean one of these?',
- 'altCommandSingular' => 'Did you mean this?',
- 'commandNotFound' => 'Command "{0}" not found.',
- 'generator' => [
- 'cancelOperation' => 'Operation has been cancelled.',
- 'className' => [
+ 'altCommandPlural' => 'Did you mean one of these?',
+ 'altCommandSingular' => 'Did you mean this?',
+ 'commandNotFound' => 'Command "{0}" not found.',
+ 'generator' => [
+ 'cancelOperation' => 'Operation has been cancelled.',
+ 'className' => [
'command' => 'Command class name',
'config' => 'Config class name',
'controller' => 'Controller class name',
diff --git a/system/Language/en/HTTP.php b/system/Language/en/HTTP.php
index cfdc79f9c211..ec5dad341e05 100644
--- a/system/Language/en/HTTP.php
+++ b/system/Language/en/HTTP.php
@@ -12,67 +12,67 @@
// HTTP language settings
return [
// CurlRequest
- 'missingCurl' => 'CURL must be enabled to use the CURLRequest class.',
- 'invalidSSLKey' => 'Cannot set SSL Key. {0} is not a valid file.',
- 'sslCertNotFound' => 'SSL certificate not found at: {0}',
- 'curlError' => '{0} : {1}',
+ 'missingCurl' => 'CURL must be enabled to use the CURLRequest class.',
+ 'invalidSSLKey' => 'Cannot set SSL Key. {0} is not a valid file.',
+ 'sslCertNotFound' => 'SSL certificate not found at: {0}',
+ 'curlError' => '{0} : {1}',
// IncomingRequest
- 'invalidNegotiationType' => '{0} is not a valid negotiation type. Must be one of: media, charset, encoding, language.',
+ 'invalidNegotiationType' => '{0} is not a valid negotiation type. Must be one of: media, charset, encoding, language.',
// Message
- 'invalidHTTPProtocol' => 'Invalid HTTP Protocol Version. Must be one of: {0}',
+ 'invalidHTTPProtocol' => 'Invalid HTTP Protocol Version. Must be one of: {0}',
// Negotiate
'emptySupportedNegotiations' => 'You must provide an array of supported values to all Negotiations.',
// RedirectResponse
- 'invalidRoute' => '{0} route cannot be found while reverse-routing.',
+ 'invalidRoute' => '{0} route cannot be found while reverse-routing.',
// DownloadResponse
- 'cannotSetBinary' => 'When setting filepath cannot set binary.',
- 'cannotSetFilepath' => 'When setting binary cannot set filepath: {0}',
- 'notFoundDownloadSource' => 'Not found download body source.',
- 'cannotSetCache' => 'It does not support caching for downloading.',
- 'cannotSetStatusCode' => 'It does not support change status code for downloading. code: {0}, reason: {1}',
+ 'cannotSetBinary' => 'When setting filepath cannot set binary.',
+ 'cannotSetFilepath' => 'When setting binary cannot set filepath: {0}',
+ 'notFoundDownloadSource' => 'Not found download body source.',
+ 'cannotSetCache' => 'It does not support caching for downloading.',
+ 'cannotSetStatusCode' => 'It does not support change status code for downloading. code: {0}, reason: {1}',
// Response
- 'missingResponseStatus' => 'HTTP Response is missing a status code',
- 'invalidStatusCode' => '{0} is not a valid HTTP return status code',
- 'unknownStatusCode' => 'Unknown HTTP status code provided with no message: {0}',
+ 'missingResponseStatus' => 'HTTP Response is missing a status code',
+ 'invalidStatusCode' => '{0} is not a valid HTTP return status code',
+ 'unknownStatusCode' => 'Unknown HTTP status code provided with no message: {0}',
// URI
- 'cannotParseURI' => 'Unable to parse URI: {0}',
- 'segmentOutOfRange' => 'Request URI segment is out of range: {0}',
- 'invalidPort' => 'Ports must be between 0 and 65535. Given: {0}',
- 'malformedQueryString' => 'Query strings may not include URI fragments.',
+ 'cannotParseURI' => 'Unable to parse URI: {0}',
+ 'segmentOutOfRange' => 'Request URI segment is out of range: {0}',
+ 'invalidPort' => 'Ports must be between 0 and 65535. Given: {0}',
+ 'malformedQueryString' => 'Query strings may not include URI fragments.',
// Page Not Found
- 'pageNotFound' => 'Page Not Found',
- 'emptyController' => 'No Controller specified.',
- 'controllerNotFound' => 'Controller or its method is not found: {0}::{1}',
- 'methodNotFound' => 'Controller method is not found: {0}',
+ 'pageNotFound' => 'Page Not Found',
+ 'emptyController' => 'No Controller specified.',
+ 'controllerNotFound' => 'Controller or its method is not found: {0}::{1}',
+ 'methodNotFound' => 'Controller method is not found: {0}',
// CSRF
// @deprecated use `Security.disallowedAction`
- 'disallowedAction' => 'The action you requested is not allowed.',
+ 'disallowedAction' => 'The action you requested is not allowed.',
// Uploaded file moving
- 'alreadyMoved' => 'The uploaded file has already been moved.',
- 'invalidFile' => 'The original file is not a valid file.',
- 'moveFailed' => 'Could not move file {0} to {1} ({2})',
+ 'alreadyMoved' => 'The uploaded file has already been moved.',
+ 'invalidFile' => 'The original file is not a valid file.',
+ 'moveFailed' => 'Could not move file {0} to {1} ({2})',
- 'uploadErrOk' => 'The file uploaded with success.',
- 'uploadErrIniSize' => 'The file "%s" exceeds your upload_max_filesize ini directive.',
- 'uploadErrFormSize' => 'The file "%s" exceeds the upload limit defined in your form.',
- 'uploadErrPartial' => 'The file "%s" was only partially uploaded.',
- 'uploadErrNoFile' => 'No file was uploaded.',
- 'uploadErrCantWrite' => 'The file "%s" could not be written on disk.',
- 'uploadErrNoTmpDir' => 'File could not be uploaded: missing temporary directory.',
- 'uploadErrExtension' => 'File upload was stopped by a PHP extension.',
- 'uploadErrUnknown' => 'The file "%s" was not uploaded due to an unknown error.',
+ 'uploadErrOk' => 'The file uploaded with success.',
+ 'uploadErrIniSize' => 'The file "%s" exceeds your upload_max_filesize ini directive.',
+ 'uploadErrFormSize' => 'The file "%s" exceeds the upload limit defined in your form.',
+ 'uploadErrPartial' => 'The file "%s" was only partially uploaded.',
+ 'uploadErrNoFile' => 'No file was uploaded.',
+ 'uploadErrCantWrite' => 'The file "%s" could not be written on disk.',
+ 'uploadErrNoTmpDir' => 'File could not be uploaded: missing temporary directory.',
+ 'uploadErrExtension' => 'File upload was stopped by a PHP extension.',
+ 'uploadErrUnknown' => 'The file "%s" was not uploaded due to an unknown error.',
// SameSite setting
// @deprecated
- 'invalidSameSiteSetting' => 'The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
+ 'invalidSameSiteSetting' => 'The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
];
diff --git a/system/Language/en/Migrations.php b/system/Language/en/Migrations.php
index bbf34e53c2cb..faa57a1f989a 100644
--- a/system/Language/en/Migrations.php
+++ b/system/Language/en/Migrations.php
@@ -12,27 +12,27 @@
// Migration language settings
return [
// Migration Runner
- 'missingTable' => 'Migrations table must be set.',
- 'disabled' => 'Migrations have been loaded but are disabled or setup incorrectly.',
- 'notFound' => 'Migration file not found: ',
- 'batchNotFound' => 'Target batch not found: ',
- 'empty' => 'No Migration files found',
- 'gap' => 'There is a gap in the migration sequence near version number: ',
- 'classNotFound' => 'The migration class "%s" could not be found.',
- 'missingMethod' => 'The migration class is missing an "%s" method.',
+ 'missingTable' => 'Migrations table must be set.',
+ 'disabled' => 'Migrations have been loaded but are disabled or setup incorrectly.',
+ 'notFound' => 'Migration file not found: ',
+ 'batchNotFound' => 'Target batch not found: ',
+ 'empty' => 'No Migration files found',
+ 'gap' => 'There is a gap in the migration sequence near version number: ',
+ 'classNotFound' => 'The migration class "%s" could not be found.',
+ 'missingMethod' => 'The migration class is missing an "%s" method.',
// Migration Command
- 'migHelpLatest' => "\t\tMigrates database to latest available migration.",
- 'migHelpCurrent' => "\t\tMigrates database to version set as 'current' in configuration.",
- 'migHelpVersion' => "\tMigrates database to version {v}.",
- 'migHelpRollback' => "\tRuns all migrations 'down' to version 0.",
- 'migHelpRefresh' => "\t\tUninstalls and re-runs all migrations to freshen database.",
- 'migHelpSeed' => "\tRuns the seeder named [name].",
- 'migCreate' => "\tCreates a new migration named [name]",
- 'nameMigration' => 'Name the migration file',
- 'migNumberError' => 'Migration number must be three digits, and there must not be any gaps in the sequence.',
- 'rollBackConfirm' => 'Are you sure you want to rollback?',
- 'refreshConfirm' => 'Are you sure you want to refresh?',
+ 'migHelpLatest' => "\t\tMigrates database to latest available migration.",
+ 'migHelpCurrent' => "\t\tMigrates database to version set as 'current' in configuration.",
+ 'migHelpVersion' => "\tMigrates database to version {v}.",
+ 'migHelpRollback' => "\tRuns all migrations 'down' to version 0.",
+ 'migHelpRefresh' => "\t\tUninstalls and re-runs all migrations to freshen database.",
+ 'migHelpSeed' => "\tRuns the seeder named [name].",
+ 'migCreate' => "\tCreates a new migration named [name]",
+ 'nameMigration' => 'Name the migration file',
+ 'migNumberError' => 'Migration number must be three digits, and there must not be any gaps in the sequence.',
+ 'rollBackConfirm' => 'Are you sure you want to rollback?',
+ 'refreshConfirm' => 'Are you sure you want to refresh?',
'latest' => 'Running all new migrations...',
'generalFault' => 'Migration failed!',
@@ -48,10 +48,10 @@
'added' => 'Running: ',
// Migrate Status
- 'namespace' => 'Namespace',
- 'filename' => 'Filename',
- 'version' => 'Version',
- 'group' => 'Group',
- 'on' => 'Migrated On: ',
- 'batch' => 'Batch',
+ 'namespace' => 'Namespace',
+ 'filename' => 'Filename',
+ 'version' => 'Version',
+ 'group' => 'Group',
+ 'on' => 'Migrated On: ',
+ 'batch' => 'Batch',
];
diff --git a/system/Language/en/Number.php b/system/Language/en/Number.php
index 22d4363ce299..d9e77586c0a4 100644
--- a/system/Language/en/Number.php
+++ b/system/Language/en/Number.php
@@ -18,9 +18,9 @@
'bytes' => 'Bytes',
// don't forget the space in front of these!
- 'thousand' => ' thousand',
- 'million' => ' million',
- 'billion' => ' billion',
- 'trillion' => ' trillion',
- 'quadrillion' => ' quadrillion',
+ 'thousand' => ' thousand',
+ 'million' => ' million',
+ 'billion' => ' billion',
+ 'trillion' => ' trillion',
+ 'quadrillion' => ' quadrillion',
];
diff --git a/system/Language/en/Security.php b/system/Language/en/Security.php
index f558bea5103d..fdcdf3865cd9 100644
--- a/system/Language/en/Security.php
+++ b/system/Language/en/Security.php
@@ -14,5 +14,5 @@
'disallowedAction' => 'The action you requested is not allowed.',
// @deprecated
- 'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: {0}',
+ 'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: {0}',
];
diff --git a/system/Language/en/Validation.php b/system/Language/en/Validation.php
index e2d6a4eda065..f57ece4a55ea 100644
--- a/system/Language/en/Validation.php
+++ b/system/Language/en/Validation.php
@@ -12,11 +12,11 @@
// Validation language settings
return [
// Core Messages
- 'noRuleSets' => 'No rulesets specified in Validation configuration.',
- 'ruleNotFound' => '{0} is not a valid rule.',
- 'groupNotFound' => '{0} is not a validation rules group.',
- 'groupNotArray' => '{0} rule group must be an array.',
- 'invalidTemplate' => '{0} is not a valid Validation template.',
+ 'noRuleSets' => 'No rulesets specified in Validation configuration.',
+ 'ruleNotFound' => '{0} is not a valid rule.',
+ 'groupNotFound' => '{0} is not a validation rules group.',
+ 'groupNotArray' => '{0} rule group must be an array.',
+ 'invalidTemplate' => '{0} is not a valid Validation template.',
// Rule Messages
'alpha' => 'The {field} field may only contain alphabetical characters.',
@@ -60,13 +60,13 @@
'valid_date' => 'The {field} field must contain a valid date.',
// Credit Cards
- 'valid_cc_num' => '{field} does not appear to be a valid credit card number.',
+ 'valid_cc_num' => '{field} does not appear to be a valid credit card number.',
// Files
- 'uploaded' => '{field} is not a valid uploaded file.',
- 'max_size' => '{field} is too large of a file.',
- 'is_image' => '{field} is not a valid, uploaded image file.',
- 'mime_in' => '{field} does not have a valid mime type.',
- 'ext_in' => '{field} does not have a valid file extension.',
- 'max_dims' => '{field} is either not an image, or it is too wide or tall.',
+ 'uploaded' => '{field} is not a valid uploaded file.',
+ 'max_size' => '{field} is too large of a file.',
+ 'is_image' => '{field} is not a valid, uploaded image file.',
+ 'mime_in' => '{field} does not have a valid mime type.',
+ 'ext_in' => '{field} does not have a valid file extension.',
+ 'max_dims' => '{field} is either not an image, or it is too wide or tall.',
];
diff --git a/system/Log/Handlers/ChromeLoggerHandler.php b/system/Log/Handlers/ChromeLoggerHandler.php
index 3765fa3c8d06..a1f915acdad4 100644
--- a/system/Log/Handlers/ChromeLoggerHandler.php
+++ b/system/Log/Handlers/ChromeLoggerHandler.php
@@ -48,7 +48,7 @@ class ChromeLoggerHandler extends BaseHandler
'backtrace',
'type',
],
- 'rows' => [],
+ 'rows' => [],
];
/**
diff --git a/system/Test/Mock/MockLogger.php b/system/Test/Mock/MockLogger.php
index 98cb94af7b9b..3427fe7ec251 100644
--- a/system/Test/Mock/MockLogger.php
+++ b/system/Test/Mock/MockLogger.php
@@ -102,7 +102,7 @@ class MockLogger
/*
* Logging Directory Path
*/
- 'path' => '',
+ 'path' => '',
],
];
}
diff --git a/system/Throttle/Throttler.php b/system/Throttle/Throttler.php
index bd6f8dd1672c..5310edb9e728 100644
--- a/system/Throttle/Throttler.php
+++ b/system/Throttle/Throttler.php
@@ -135,7 +135,7 @@ public function check(string $key, int $capacity, int $seconds, int $cost = 1):
// should be refilled, then checked against capacity
// to be sure the bucket didn't overflow.
$tokens += $rate * $elapsed;
- $tokens = $tokens > $capacity ? $capacity : $tokens;
+ $tokens = $tokens > $capacity ? $capacity : $tokens;
// If $tokens >= 1, then we are safe to perform the action, but
// we need to decrement the number of available tokens.
diff --git a/system/Typography/Typography.php b/system/Typography/Typography.php
index 89d8b2251f14..38da93779ba9 100644
--- a/system/Typography/Typography.php
+++ b/system/Typography/Typography.php
@@ -186,28 +186,28 @@ public function autoTypography(string $str, bool $reduceLinebreaks = false): str
$table = [
// If the user submitted their own paragraph tags within the text
// we will retain them instead of using our tags.
- '/(
*?]>)
/' => '$1', // *?]>)
/' => '$1', // )+#' => '
',
- '/(
\W*
)+/' => '
',
+ '#(
)+#' => '
',
+ '/(
\W*
)+/' => '
',
// Clean up stray paragraph tags that appear before block level elements
- '#
<(' . $this->blockElements . ')#' => '<$1',
+ '#<(' . $this->blockElements . ')#' => '<$1',
// Clean up stray non-breaking spaces preceeding block elements
'#( \s*)+<(' . $this->blockElements . ')#' => ' <$2',
// Replace the temporary markers we added earlier
- '/\{@TAG\}/' => '<',
- '/\{@DQ\}/' => '"',
- '/\{@SQ\}/' => "'",
- '/\{@DD\}/' => '--',
- '/\{@NBS\}/' => ' ',
+ '/\{@TAG\}/' => '<',
+ '/\{@DQ\}/' => '"',
+ '/\{@SQ\}/' => "'",
+ '/\{@DD\}/' => '--',
+ '/\{@NBS\}/' => ' ',
// An unintended consequence of the _format_newlines function is that
// some of the newlines get truncated, resulting in
tags
// starting immediately after tags on the same line.
// This forces a newline after such occurrences, which looks much nicer.
- "/>
\n/" => ">\n
",
+ "/>
\n/" => ">\n
",
// Similarly, there might be cases where a closing
will follow
// a closing
tag, so we'll correct it by adding a newline in between
- '##' => "\n",
+ '##' => "\n",
];
// Do we need to reduce empty lines?
@@ -248,31 +248,31 @@ public function formatCharacters(string $str): string
// Note that in all cases, whitespace is the primary determining factor
// on which direction to curl, with non-word characters like punctuation
// being a secondary factor only after whitespace is addressed.
- '/\'"(\s|$)/' => '’”$1',
- '/(^|\s|