Permalink
Browse files

[stk/ascraeus] Coding guidelines

  • Loading branch information...
Erik Frèrejean
Erik Frèrejean committed Apr 24, 2012
1 parent aa21113 commit 05b8832b336a9158cb0143b7ed75f6af6d409612
Showing with 15 additions and 6 deletions.
  1. +14 −3 stk/includes/bootstrap.php
  2. +0 −2 stk/includes/utilities.php
  3. +1 −1 stk/toolbox/tool.php
View
@@ -10,9 +10,20 @@
$starttime = microtime(true);
// Define some initial constants
-if (!defined('STK_ROOT')) define('STK_ROOT', __DIR__ . '/../');
-if (!defined('PHPBB_FILES')) define('PHPBB_FILES', STK_ROOT . 'phpBB/');
-if (!defined('IN_PHPBB')) define('IN_PHPBB', true);
+if (!defined('STK_ROOT'))
+{
+ define('STK_ROOT', __DIR__ . '/../');
+}
+
+if (!defined('PHPBB_FILES'))
+{
+ define('PHPBB_FILES', STK_ROOT . 'phpBB/');
+}
+
+if (!defined('IN_PHPBB'))
+{
+ define('IN_PHPBB', true);
+}
// Enforce the usage of the SID
define('NEED_SID', true);
@@ -64,8 +64,6 @@ public function page_header($page_title = '')
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
-
- return;
}
/**
View
@@ -140,7 +140,7 @@ public function runTool()
}
else
{
- // Something went wrong
+ throw new RuntimeException('Not yet implemented');
}
}

0 comments on commit 05b8832

Please sign in to comment.