Passed
Push — master ( 0cbb2e...6335df )
by Sébastien
12:28 queued 10:49
created
fetch.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
     header('Pragma: public');
24 24
     header('Cache-Control: maxage=' . $expires);
25 25
     header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
26
-    $bookId = getURLParam('id', NULL);
26
+    $bookId = getURLParam('id', null);
27 27
     $type   = getURLParam('type', 'jpg');
28
-    $idData = getURLParam('data', NULL);
28
+    $idData = getURLParam('data', null);
29 29
     if (is_null($bookId)) {
30 30
         $book = Book::getBookByDataId($idData);
31 31
     } else {
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
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *                                           "address.from"  => "[email protected]"
232 232
      *                                           );
233 233
      */
234
-    $config['cops_mail_configuration'] = NULL;
234
+    $config['cops_mail_configuration'] = null;
235 235
 
236 236
     /*
237 237
      * Use filter in HTML catalog
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
304 304
      * NULL : Disable PHP password protection (You can still use htpasswd)
305 305
      */
306
-    $config['cops_basic_authentication'] = NULL;
306
+    $config['cops_basic_authentication'] = null;
307 307
 
308 308
     /*
309 309
      * Which template is used by default :
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))) {
19 19
     $add .= DB . '=' . GetUrlParam (DB) . '&';
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.
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.
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @return
175 175
  *   ASCII replacement character.
176 176
  */
177
-function _transliteration_replace($ord, $unknown = '?', $langcode = NULL) {
177
+function _transliteration_replace($ord, $unknown = '?', $langcode = null) {
178 178
   static $map = array();
179 179
 
180 180
   //GL: set language later
Please login to merge, or discard this patch.
lib/CustomColumnTypeInteger.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function getDescription()
56 56
     {
57 57
         $desc = $this->getDatabaseDescription();
58
-        if ($desc === NULL || empty($desc)) $desc = str_format(localize("customcolumn.description"), $this->getTitle());
58
+        if ($desc === null || empty($desc)) $desc = str_format(localize("customcolumn.description"), $this->getTitle());
59 59
         return $desc;
60 60
     }
61 61
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         if ($post = $result->fetchObject()) {
69 69
             return new CustomColumn($post->value, $post->value, $this);
70 70
         }
71
-        return new CustomColumn(NULL, localize("customcolumn.int.unknown"), $this);
71
+        return new CustomColumn(null, localize("customcolumn.int.unknown"), $this);
72 72
     }
73 73
 
74 74
     public function isSearchable()
Please login to merge, or discard this patch.
lib/CustomColumnType.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
     /** @var string the datatype of this column (one of the CUSTOM_TYPE_* constant values) */
38 38
     public $datatype;
39 39
     /** @var null|Entry[] */
40
-    private $customValues = NULL;
40
+    private $customValues = null;
41 41
 
42 42
     protected function __construct($pcustomId, $pdatatype)
43 43
     {
44 44
         $this->columnTitle = self::getTitleByCustomID($pcustomId);
45 45
         $this->customId = $pcustomId;
46 46
         $this->datatype = $pdatatype;
47
-        $this->customValues = NULL;
47
+        $this->customValues = null;
48 48
     }
49 49
 
50 50
     /**
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
         $result->execute(array($this->customId));
111 111
         if ($post = $result->fetchObject()) {
112 112
             $json = json_decode($post->display);
113
-            return (isset($json->description) && !empty($json->description)) ? $json->description : NULL;
113
+            return (isset($json->description) && !empty($json->description)) ? $json->description : null;
114 114
         }
115
-        return NULL;
115
+        return null;
116 116
     }
117 117
 
118 118
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         if ($post = $result->fetchObject()) {
169 169
             return $post->datatype;
170 170
         }
171
-        return NULL;
171
+        return null;
172 172
     }
173 173
 
174 174
     /**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             case self::CUSTOM_TYPE_BOOL:
207 207
                 return self::$customColumnCacheID[$customId] = new CustomColumnTypeBool($customId);
208 208
             case self::CUSTOM_TYPE_COMPOSITE:
209
-                return NULL; //TODO Currently not supported
209
+                return null; //TODO Currently not supported
210 210
             default:
211 211
                 throw new Exception("Unkown column type: " . $datatype);
212 212
         }
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         if ($post = $result->fetchObject()) {
230 230
             return self::$customColumnCacheLookup[$lookup] = self::createByCustomID($post->id);
231 231
         }
232
-        return self::$customColumnCacheLookup[$lookup] = NULL;
232
+        return self::$customColumnCacheLookup[$lookup] = null;
233 233
     }
234 234
 
235 235
     /**
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     public function getAllCustomValues()
242 242
     {
243 243
         // lazy loading
244
-        if ($this->customValues == NULL)
244
+        if ($this->customValues == null)
245 245
             $this->customValues = $this->getAllCustomValuesFromDatabase();
246 246
 
247 247
         return $this->customValues;
Please login to merge, or discard this patch.
lib/Serie.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         if ($post = $result->fetchObject ()) {
43 43
             return new Serie ($post);
44 44
         }
45
-        return NULL;
45
+        return null;
46 46
     }
47 47
 
48 48
     public static function getSerieById ($serieId) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if ($post = $result->fetchObject ()) {
52 52
             return new Serie ($post);
53 53
         }
54
-        return NULL;
54
+        return null;
55 55
     }
56 56
 
57 57
     public static function getAllSeries() {
Please login to merge, or discard this patch.
lib/Language.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         if ($post = $result->fetchObject ()) {
46 46
             return new Language ($post->id, Language::getLanguageString ($post->lang_code));
47 47
         }
48
-        return NULL;
48
+        return null;
49 49
     }
50 50
 
51 51
 
Please login to merge, or discard this patch.