Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Bug #14, Controller namespace - code standard fix PSR-2 [iet:3633574]
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed Jun 22, 2015
1 parent 02db0c3 commit f164b41
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion application/controllers/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/


class About extends MY_Controller
class About extends \IET_OU\Open_Media_Player\MY_Controller
{

#const LAYOUT = 'ouice_2';
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author N.D.Freear, 17 April 2012, -04-25.
*/

class Build extends MY_Controller
class Build extends \IET_OU\Open_Media_Player\MY_Controller
{

protected $_closure_template = <<<EOF
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @copyright Copyright 2011 The Open University.
*/

class Demo extends MY_Controller
class Demo extends \IET_OU\Open_Media_Player\MY_Controller
{

public function __construct()
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require_once APPPATH.'libraries/ouplayer_lib.php';


class Embed extends MY_Controller
class Embed extends \IET_OU\Open_Media_Player\MY_Controller
{

protected $_debug;
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/localize.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* http://embed.open.ac.uk/localize/po/zh-cn/download -- Opens in poEdit if installed.
*/

class Localize extends MY_Controller
class Localize extends \IET_OU\Open_Media_Player\MY_Controller
{

const TEMPLATE = 'ouplayer.pot';
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/media_redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/


class Media_redirect extends MY_Controller
class Media_redirect extends \IET_OU\Open_Media_Player\MY_Controller
{

protected $redirect_codes = array(
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/obj_to_oup.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/


class Obj_to_oup extends MY_Controller
class Obj_to_oup extends \IET_OU\Open_Media_Player\MY_Controller
{

public function index()
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/


class Oembed extends MY_Controller
class Oembed extends \IET_OU\Open_Media_Player\MY_Controller
{

public function __construct()
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
http://www.mnot.net/cache_docs/
*/

class Scripts extends MY_Controller
class Scripts extends \IET_OU\Open_Media_Player\MY_Controller
{

public function __construct()
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ini_set('display_errors', true);


class Services extends MY_Controller
class Services extends \IET_OU\Open_Media_Player\MY_Controller
{

/** Output JSON/ JSON-P.
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

class Svg extends MY_Controller
class Svg extends \IET_OU\Open_Media_Player\MY_Controller
{

protected $_whitelist;
Expand Down
4 changes: 2 additions & 2 deletions application/controllers/timedtext.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php defined('BASEPATH') or exit('No direct script access allowed');
/**
* Captions/timed-text controller.
*
Expand All @@ -15,7 +15,7 @@
define('TTML_NS', 'http://www.w3.org/2006/10/ttaf1');


class Timedtext extends MY_Controller
class Timedtext extends \IET_OU\Open_Media_Player\MY_Controller
{
#CI_Controller {

Expand Down
2 changes: 1 addition & 1 deletion application/controllers/uptime.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @package Uptime
*/

class Uptime extends MY_Controller
class Uptime extends \IET_OU\Open_Media_Player\MY_Controller
{

/** Uptime page, for both podcast and OU-embed data sources/DBs.
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/xml_namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/


class Xml_namespace extends MY_Controller
class Xml_namespace extends \IET_OU\Open_Media_Player\MY_Controller
{

// List of live/test/dev. servers for which we display the namespace page.
Expand Down
7 changes: 3 additions & 4 deletions application/core/MY_Controller.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');

// if (! defined('BASEPATH')) exit('No direct script access allowed');
<?php namespace IET_OU\Open_Media_Player;

defined('BASEPATH') or exit('No direct script access allowed');
/**
* OU Media Player.
*
Expand All @@ -12,7 +11,7 @@
*/


class MY_Controller extends CI_Controller
class MY_Controller extends \CI_Controller
{

public $firephp;
Expand Down

0 comments on commit f164b41

Please sign in to comment.