changeset 114:09d811e4387d

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 12 Dec 2013 23:32:37 +0200
parents 6ec104da083e
children 6bc9b304aa11
files index.php
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Thu Dec 12 23:30:45 2013 +0200
+++ b/index.php	Thu Dec 12 23:32:37 2013 +0200
@@ -76,7 +76,9 @@
     "en" => "Error! Class code must be of format <b>XXXnXXX</b>, using default value of <b>%1</b>.",
   ),
 
-  "Style" => array("fi" => "Tyyli"),
+  "Style" => array(
+    "fi" => "Tyyli",
+  ),
 //  "" => array("fi" => ),
 );
 
@@ -95,7 +97,8 @@
 function lukCheckClassID(&$id)
 {
   global $classDefault;
-  if (preg_match("#^([A-Z]{3}\d[A-Za-z0-9_]{1,6}|ccr|Ryh_[A-Z]{3}\d[A-Za-z0-9_]{1,6})$#", $id, $m)) {
+  if (preg_match("#^([A-Z]{3}\d[A-Za-z0-9_]{1,6}|ccr|Ryh_[A-Z]{3}\d[A-Za-z0-9_]{1,6})$#", $id, $m))
+  {
     $id = $m[1];
     return TRUE;
   } else {
@@ -566,7 +569,8 @@
 if ($cacheDirty)
 {
   $str = "<?\n\$cache = ".var_export($cache, TRUE)."\n?>";
-  if (file_put_contents($courseCacheFile, $str, LOCK_EX) === FALSE) {
+  if (file_put_contents($courseCacheFile, $str, LOCK_EX) === FALSE)
+  {
     // Can't do much anything here ..
   }
 }