Skip to content

Commit a6f1280

Browse files
author
Matthias Schmidt
committed
Fix code style issues in tutorial series code
1 parent 39b459f commit a6f1280

File tree

15 files changed

+41
-31
lines changed

15 files changed

+41
-31
lines changed

snippets/tutorial/tutorial-series/part-1/files/lib/acp/form/PersonAddForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class PersonAddForm extends AbstractFormBuilderForm
4545
/**
4646
* @inheritDoc
4747
*/
48-
public function createForm()
48+
protected function createForm()
4949
{
5050
parent::createForm();
5151

snippets/tutorial/tutorial-series/part-1/files/lib/data/person/Person.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
1414
* @package WoltLabSuite\Core\Data\Person
1515
*
16-
* @property-read integer $personID unique id of the person
17-
* @property-read string $firstName first name of the person
18-
* @property-read string $lastName last name of the person
16+
* @property-read int $personID unique id of the person
17+
* @property-read string $firstName first name of the person
18+
* @property-read string $lastName last name of the person
1919
*/
2020
class Person extends DatabaseObject implements IRouteController
2121
{

snippets/tutorial/tutorial-series/part-3/files/lib/acp/form/PersonAddForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PersonAddForm extends AbstractFormBuilderForm
4646
/**
4747
* @inheritDoc
4848
*/
49-
public function createForm()
49+
protected function createForm()
5050
{
5151
parent::createForm();
5252

snippets/tutorial/tutorial-series/part-3/files/lib/data/person/Person.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
1616
* @package WoltLabSuite\Core\Data\Person
1717
*
18-
* @property-read integer $personID unique id of the person
19-
* @property-read string $firstName first name of the person
20-
* @property-read string $lastName last name of the person
21-
* @property-read int $enableComments is `1` if comments are enabled for the person, otherwise `0`
18+
* @property-read int $personID unique id of the person
19+
* @property-read string $firstName first name of the person
20+
* @property-read string $lastName last name of the person
21+
* @property-read int $enableComments is `1` if comments are enabled for the person, otherwise `0`
2222
*/
2323
class Person extends DatabaseObject implements ITitledLinkObject
2424
{

snippets/tutorial/tutorial-series/part-3/files/lib/page/PersonPage.class.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace wcf\page;
44

5+
use wcf\data\comment\StructuredCommentList;
56
use wcf\data\person\Person;
67
use wcf\system\comment\CommentHandler;
78
use wcf\system\comment\manager\PersonCommentManager;
@@ -32,7 +33,7 @@ class PersonPage extends AbstractPage
3233

3334
/**
3435
* id of the person comment object type
35-
* @var integer
36+
* @var int
3637
*/
3738
public $commentObjectTypeID = 0;
3839

@@ -44,7 +45,7 @@ class PersonPage extends AbstractPage
4445

4546
/**
4647
* id of the shown person
47-
* @var integer
48+
* @var int
4849
*/
4950
public $personID = 0;
5051

snippets/tutorial/tutorial-series/part-4/files/lib/acp/form/PersonAddForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PersonAddForm extends AbstractFormBuilderForm
4646
/**
4747
* @inheritDoc
4848
*/
49-
public function createForm()
49+
protected function createForm()
5050
{
5151
parent::createForm();
5252

snippets/tutorial/tutorial-series/part-4/files/lib/data/person/Person.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
1616
* @package WoltLabSuite\Core\Data\Person
1717
*
18-
* @property-read integer $personID unique id of the person
19-
* @property-read string $firstName first name of the person
20-
* @property-read string $lastName last name of the person
21-
* @property-read int $enableComments is `1` if comments are enabled for the person, otherwise `0`
18+
* @property-read int $personID unique id of the person
19+
* @property-read string $firstName first name of the person
20+
* @property-read string $lastName last name of the person
21+
* @property-read int $enableComments is `1` if comments are enabled for the person, otherwise `0`
2222
*/
2323
class Person extends DatabaseObject implements ITitledLinkObject
2424
{

snippets/tutorial/tutorial-series/part-4/files/lib/page/PersonPage.class.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace wcf\page;
44

5+
use wcf\data\comment\StructuredCommentList;
56
use wcf\data\person\Person;
67
use wcf\system\comment\CommentHandler;
78
use wcf\system\comment\manager\PersonCommentManager;
@@ -32,7 +33,7 @@ class PersonPage extends AbstractPage
3233

3334
/**
3435
* id of the person comment object type
35-
* @var integer
36+
* @var int
3637
*/
3738
public $commentObjectTypeID = 0;
3839

@@ -44,7 +45,7 @@ class PersonPage extends AbstractPage
4445

4546
/**
4647
* id of the shown person
47-
* @var integer
48+
* @var int
4849
*/
4950
public $personID = 0;
5051

snippets/tutorial/tutorial-series/part-4/files/lib/system/box/PersonListBoxController.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PersonListBoxController extends AbstractDatabaseObjectListBoxController
5050
/**
5151
* @inheritDoc
5252
*/
53-
public function getObjectList()
53+
protected function getObjectList()
5454
{
5555
return new PersonList();
5656
}

snippets/tutorial/tutorial-series/part-5/files/lib/acp/form/PersonAddForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PersonAddForm extends AbstractFormBuilderForm
4646
/**
4747
* @inheritDoc
4848
*/
49-
public function createForm()
49+
protected function createForm()
5050
{
5151
parent::createForm();
5252

0 commit comments

Comments
 (0)