Completed
Push — master ( 865827...08e2eb )
by Markus
04:14
created
fetch.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
     header("Pragma: public");
23 23
     header("Cache-Control: maxage=".$expires);
24 24
     header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
25
-    $bookId = getURLParam ("id", NULL);
25
+    $bookId = getURLParam ("id", null);
26 26
     $type = getURLParam ("type", "jpg");
27
-    $idData = getURLParam ("data", NULL);
27
+    $idData = getURLParam ("data", null);
28 28
     if (is_null ($bookId))
29 29
     {
30 30
         $book = Book::getBookByDataId($idData);
Please login to merge, or discard this patch.
sendtomail.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         empty ($config['cops_mail_configuration']["address.from"])) {
12 12
         return "NOK. bad configuration.";
13 13
     }
14
-    return False;
14
+    return false;
15 15
 }
16 16
 
17 17
 function checkRequest ($idData, $emailDest) {
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     if (empty ($emailDest)) {
22 22
         return 'No email sent.';
23 23
     }
24
-    return False;
24
+    return false;
25 25
 }
26 26
 
27 27
 if (php_sapi_name() === 'cli') { return; }
Please login to merge, or discard this patch.
transliteration.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @return
26 26
  *   Transliterated text.
27 27
  */
28
-function _transliteration_process($string, $unknown = '?', $source_langcode = NULL) {
28
+function _transliteration_process($string, $unknown = '?', $source_langcode = null) {
29 29
   // ASCII is always valid NFC! If we're only ever given plain ASCII, we can
30 30
   // avoid the overhead of initializing the decomposition tables by skipping
31 31
   // out early.
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
  * @return
176 176
  *   ASCII replacement character.
177 177
  */
178
-function _transliteration_replace($ord, $unknown = '?', $langcode = NULL) {
178
+function _transliteration_replace($ord, $unknown = '?', $langcode = null) {
179 179
   static $map = array();
180 180
 
181 181
   //GL: set language later
Please login to merge, or discard this patch.
epubreader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 header ("Content-Type: text/html;charset=utf-8");
15 15
 
16
-$idData = getURLParam ("data", NULL);
16
+$idData = getURLParam ("data", null);
17 17
 $add = "data=$idData&";
18 18
 if (!is_null (GetUrlParam (DB))) $add .= DB . "=" . GetUrlParam (DB) . "&";
19 19
 $myBook = Book::getBookByDataId($idData);
Please login to merge, or discard this patch.
index.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     }
51 51
     $headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html');
52 52
     $template = new doT ();
53
-    $dot = $template->template ($headcontent, NULL);
53
+    $dot = $template->template ($headcontent, null);
54 54
     echo ($dot ($data));
55 55
 ?><body>
56 56
 <?php
Please login to merge, or discard this patch.
config_default.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      *                                           "address.from"  => "[email protected]"
211 211
      *                                           );
212 212
      */
213
-    $config['cops_mail_configuration'] = NULL;
213
+    $config['cops_mail_configuration'] = null;
214 214
 
215 215
     /*
216 216
      * Use filter in HTML catalog
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
283 283
      * NULL : Disable PHP password protection (You can still use htpasswd)
284 284
      */
285
-    $config['cops_basic_authentication'] = NULL;
285
+    $config['cops_basic_authentication'] = null;
286 286
 
287 287
     /*
288 288
      * Which template is used by default :
Please login to merge, or discard this patch.
checkconfig.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     $err = getURLParam ("err", -1);
18 18
     $full = getURLParam ("full");
19
-    $error = NULL;
19
+    $error = null;
20 20
     switch ($err) {
21 21
         case 1 :
22 22
             $error = "Database error";
Please login to merge, or discard this patch.
epubfs.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 header ("Content-Type: text/html;charset=utf-8");
15 15
 
16
-$idData = getURLParam ("data", NULL);
16
+$idData = getURLParam ("data", null);
17 17
 $add = "data=$idData&";
18 18
 if (!is_null (GetUrlParam (DB))) $add .= DB . "=" . GetUrlParam (DB) . "&";
19 19
 $myBook = Book::getBookByDataId($idData);
Please login to merge, or discard this patch.
base.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
     // If there is a syntax error in the function created
37 37
     // $dot will be equal to FALSE
38 38
     if (!$dot) {
39
-        return FALSE;
39
+        return false;
40 40
     }
41 41
     // Execute the template
42 42
     if (!empty ($data)) {
43 43
         return $dot ($data);
44 44
     }
45 45
 
46
-    return NULL;
46
+    return null;
47 47
 }
48 48
 
49 49
 function getQueryString () {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     $_SERVER['REDIRECT_STATUS'] = 404;
61 61
 }
62 62
 
63
-function getURLParam ($name, $default = NULL) {
63
+function getURLParam ($name, $default = null) {
64 64
     if (!empty ($_GET) && isset($_GET[$name]) && $_GET[$name] != "") {
65 65
         return $_GET[$name];
66 66
     }
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
 
110 110
     switch ($error->level) {
111 111
         case LIBXML_ERR_WARNING:
112
-            $return .= "Warning $error->code: ";
112
+            $return .= "warning $error->code: ";
113 113
             break;
114 114
          case LIBXML_ERR_ERROR:
115
-            $return .= "Error $error->code: ";
115
+            $return .= "error $error->code: ";
116 116
             break;
117 117
         case LIBXML_ERR_FATAL:
118 118
             $return .= "Fatal Error $error->code: ";
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $langs = getAcceptLanguages();
245 245
     }
246 246
     //echo var_dump($langs);
247
-    $lang_file = NULL;
247
+    $lang_file = null;
248 248
     foreach ($langs as $language => $val) {
249 249
         $temp_file = dirname(__FILE__). '/lang/Localization_' . $language . '.json';
250 250
         if (file_exists($temp_file)) {
@@ -273,13 +273,13 @@  discard block
 block discarded – undo
273 273
         $phrase .= ".many";
274 274
 
275 275
     /* Static keyword is used to ensure the file is loaded only once */
276
-    static $translations = NULL;
276
+    static $translations = null;
277 277
     if ($reset) {
278
-        $translations = NULL;
278
+        $translations = null;
279 279
     }
280 280
     /* If no instance of $translations has occured load the language file */
281 281
     if (is_null($translations)) {
282
-        $lang_file_en = NULL;
282
+        $lang_file_en = null;
283 283
         list ($lang, $lang_file) = getLangAndTranslationFile();
284 284
         if ($lang != "en") {
285 285
             $lang_file_en = dirname(__FILE__). '/lang/' . 'Localization_en.json';
Please login to merge, or discard this patch.