Skip to content

Commit 142512e

Browse files
author
Michiel Vancoillie
committed
Started with refactoring
1 parent dce6593 commit 142512e

File tree

258 files changed

+847
-568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+847
-568
lines changed

app/commands/Export.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
use tdt\commands\ie\Users;
99
use tdt\commands\ie\Groups;
1010

11-
class Export extends Command {
11+
class Export extends Command
12+
{
1213

1314
/**
1415
* The console command name.

app/commands/Import.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
use tdt\commands\ie\Users;
1010
use tdt\commands\ie\Groups;
1111

12-
class Import extends Command {
12+
class Import extends Command
13+
{
1314

1415
/**
1516
* The console command name.

app/commands/ie/Definitions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* @license AGPLv3
1111
* @author Michiel Vancoillie <[email protected]>
1212
*/
13-
class Definitions implements IImportExport {
13+
class Definitions implements IImportExport
14+
{
1415

1516
public static function import($data){
1617

app/commands/ie/Groups.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class Groups implements IImportExport {
11+
class Groups implements IImportExport
12+
{
1213

1314
public static function import($groups){
1415

app/commands/ie/Users.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class Users implements IImportExport {
11+
class Users implements IImportExport
12+
{
1213

1314
public static function import($users){
1415

app/controllers/tdt/core/ApiController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* @author Jan Vansteenlandt <[email protected]>
1111
*/
1212

13-
class ApiController extends \Controller{
13+
class ApiController extends \Controller
14+
{
1415

1516
protected $definition_repository;
1617

app/controllers/tdt/core/BaseController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class BaseController extends \Controller {
11+
class BaseController extends \Controller
12+
{
1213

1314
/*
1415
* Handles all core requests

app/controllers/tdt/core/ContentNegotiator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class ContentNegotiator extends Pager{
11+
class ContentNegotiator extends Pager
12+
{
1213

1314
/**
1415
* Map MIME-types on formatters for Accept-header

app/controllers/tdt/core/HomeController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class HomeController extends \Controller {
11+
class HomeController extends \Controller
12+
{
1213

1314
public static function handle($uri){
1415
$definitions = \Definition::all();

app/controllers/tdt/core/Pager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @license AGPLv3
99
* @author Michiel Vancoillie <[email protected]>
1010
*/
11-
class Pager{
11+
class Pager
12+
{
1213

1314
protected static $PAGING_KEYWORDS = array('next', 'last', 'previous', 'first');
1415
protected static $DEFAULT_PAGE_SIZE = 500;

0 commit comments

Comments
 (0)