Skip to content

Commit 07a5c66

Browse files
committed
Bug fixes
1 parent dfe2b9c commit 07a5c66

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

_installer/Classes/IntlMock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public static function getDisplayLanguage() : string
3030
}
3131

3232
class IntlDateFormatter {
33-
const SHORT = '';
34-
const MEDIUM = '';
33+
const SHORT = 0;
34+
const MEDIUM = 0;
3535
const LONG = '';
3636
const FULL = '';
3737
const GREGORIAN = '';

_installer/dictionaries/en_US/ConfigureDb.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@
2727
'UNIX socket:' => '',
2828
'Charset:' => '',
2929
'Path:' => '',
30+
'Error connecting to database:' => '',
3031
];

_tools/studio/application/Classes/DataModel/Definition/Model/Main.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DataModel_Definition_Model_Main extends Jet_DataModel_Definition_Model_Mai
4545
public static function getCreateForm(): Form
4646
{
4747
if( !static::$create_form ) {
48-
static::$create_form = DataModel_Definition_Model_Trait::getCreateForm_Main();
48+
static::$create_form = static::getCreateForm_Main();
4949
}
5050

5151
return static::$create_form;
@@ -164,12 +164,12 @@ public static function catchCreateForm(): bool|DataModel_Definition_Model_Main
164164
return false;
165165
}
166166

167-
$class = DataModel_Definition_Model_Trait::catchCreateForm_createClass( $form );
167+
$class = static::catchCreateForm_createClass( $form );
168168

169169
$model = new DataModel_Definition_Model_Main();
170170
$model->setClass( $class );
171-
172-
DataModel_Definition_Model_Trait::catchCreateForm_modelMainSetup( $form, $model );
171+
172+
static::catchCreateForm_modelMainSetup( $form, $model );
173173

174174
return $model;
175175
}

_tools/studio/application/Classes/DataModel/Definition/Model/Related/1to1.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DataModel_Definition_Model_Related_1to1 extends Jet_DataModel_Definition_M
3636
public static function getCreateForm(): Form
3737
{
3838
if( !static::$create_form ) {
39-
static::$create_form = DataModel_Definition_Model_Trait::getCreateForm_Related( DataModel::MODEL_TYPE_RELATED_1TO1 );
39+
static::$create_form = static::getCreateForm_Related( DataModel::MODEL_TYPE_RELATED_1TO1 );
4040
}
4141

4242
return static::$create_form;
@@ -56,13 +56,13 @@ public static function catchCreateForm(): bool|DataModel_Definition_Model_Relate
5656
return false;
5757
}
5858

59-
$class = DataModel_Definition_Model_Trait::catchCreateForm_createClass( $form );
59+
$class = static::catchCreateForm_createClass( $form );
6060

6161
$model = new DataModel_Definition_Model_Related_1to1();
6262
$model->setClass( $class );
6363

64-
DataModel_Definition_Model_Trait::catchCreateForm_modelMainSetup( $form, $model );
65-
DataModel_Definition_Model_Trait::catchCreateForm_relatedModelSetup( $form, $model );
64+
static::catchCreateForm_modelMainSetup( $form, $model );
65+
static::catchCreateForm_relatedModelSetup( $form, $model );
6666

6767
return $model;
6868
}

_tools/studio/application/Classes/DataModel/Definition/Model/Related/1toN.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DataModel_Definition_Model_Related_1toN extends Jet_DataModel_Definition_M
3737
public static function getCreateForm(): Form
3838
{
3939
if( !static::$create_form ) {
40-
static::$create_form = DataModel_Definition_Model_Trait::getCreateForm_Related( DataModel::MODEL_TYPE_RELATED_1TON );
40+
static::$create_form = static::getCreateForm_Related( DataModel::MODEL_TYPE_RELATED_1TON );
4141
}
4242

4343
return static::$create_form;
@@ -57,13 +57,13 @@ public static function catchCreateForm(): bool|DataModel_Definition_Model_Relate
5757
return false;
5858
}
5959

60-
$class = DataModel_Definition_Model_Trait::catchCreateForm_createClass( $form );
60+
$class = static::catchCreateForm_createClass( $form );
6161

6262
$model = new DataModel_Definition_Model_Related_1toN();
6363
$model->setClass( $class );
64-
65-
DataModel_Definition_Model_Trait::catchCreateForm_modelMainSetup( $form, $model );
66-
DataModel_Definition_Model_Trait::catchCreateForm_relatedModelSetup( $form, $model );
64+
65+
static::catchCreateForm_modelMainSetup( $form, $model );
66+
static::catchCreateForm_relatedModelSetup( $form, $model );
6767

6868

6969
return $model;

library/Jet/Locale.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php
1+
<?php /** @noinspection PhpMultipleClassDeclarationsInspection */
2+
23
/**
34
*
45
* @copyright Copyright (c) Miroslav Marek <mirek.marek@web-jet.cz>

0 commit comments

Comments
 (0)