Skip to content

Commit 0bdd523

Browse files
authored
Merge pull request #161 from iMattPro/updates
More fixes
2 parents cac4d15 + cea5c30 commit 0bdd523

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

skeleton/README.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a basic skeleton to help you start building a phpBB extension. Customise
1111
## Extension Development Guide
1212

1313
New to phpBB extension development?
14-
Start here: [phpBB Extension Development Guide](https://area51.phpbb.com/docs/dev/3.3.x/extensions/index.html)
14+
Start here: [phpBB Extension Development Guide](https://area51.phpbb.com/docs/dev/{{ skeleton_version_compare(REQUIREMENTS.phpbb_version_min, "4.0", "<") ? '3.3.x' : 'master' }}/extensions/index.html)
1515

1616
## License
1717

skeleton/migrations/install_sample_data.php.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class install_sample_data extends \phpbb\db\migration\migration
2727
/**
2828
* Add, update or delete data stored in the database during extension installation.
2929
*
30-
* https://area51.phpbb.com/docs/dev/3.3.x/migrations/data_changes.html
3130
{% if COMPONENT.migration %}
3231
* config.add: Add config data.
3332
* config.update: Update config data.
@@ -99,7 +98,6 @@ class install_sample_data extends \phpbb\db\migration\migration
9998
* and only needs to be used to perform custom un-installation changes, such as to revert
10099
* changes made by custom functions called in update_data.
101100
*
102-
* https://area51.phpbb.com/docs/dev/3.3.x/migrations/data_changes.html
103101
* config.add: Add config data.
104102
* config.update: Update config data.
105103
* config.remove: Remove config.

skeleton/migrations/install_sample_schema.php.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class install_sample_schema extends \phpbb\db\migration\migration
2525
/**
2626
* Update database schema.
2727
*
28-
* https://area51.phpbb.com/docs/dev/3.3.x/migrations/schema_changes.html
2928
* add_tables: Add tables
3029
* drop_tables: Drop tables
3130
* add_columns: Add columns to a table
@@ -69,7 +68,6 @@ class install_sample_schema extends \phpbb\db\migration\migration
6968
* Revert database schema changes. This method is almost always required
7069
* to revert the changes made above by update_schema.
7170
*
72-
* https://area51.phpbb.com/docs/dev/3.3.x/migrations/schema_changes.html
7371
* add_tables: Add tables
7472
* drop_tables: Drop tables
7573
* add_columns: Add columns to a table

skeleton/tests/controller/main_test.php.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ class main_test extends \phpbb_test_case
4545
->getMock();
4646
4747
// Set {{ LANGUAGE.object }}->lang() to return any arguments sent to it
48-
${{ LANGUAGE.object }}->expects(self::any())
49-
->method('lang')
50-
->will(self::returnArgument(0));
48+
${{ LANGUAGE.object }}->method('lang')
49+
->will($this->returnArgument(0));
5150
5251
/** @var \phpbb\controller\helper|\PHPUnit\Framework\MockObject\MockObject $controller_helper Mock the controller helper class */
5352
$controller_helper = $this->getMockBuilder('\phpbb\controller\helper')

0 commit comments

Comments
 (0)