Test Setup Failed
Push — master ( 9fbeaf...6ecf0d )
by Sébastien
03:30 queued 33s
created
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.
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.
lib/CustomColumnTypeComment.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 
42 42
     protected function getAllCustomValuesFromDatabase()
43 43
     {
44
-        return NULL;
44
+        return null;
45 45
     }
46 46
 
47 47
     public function getDescription()
48 48
     {
49 49
         $desc = $this->getDatabaseDescription();
50
-        if ($desc === NULL || empty($desc)) $desc = str_format(localize("customcolumn.description"), $this->getTitle());
50
+        if ($desc === null || empty($desc)) $desc = str_format(localize("customcolumn.description"), $this->getTitle());
51 51
         return $desc;
52 52
     }
53 53
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         if ($post = $result->fetchObject()) {
61 61
             return new CustomColumn($post->id, $post->value, $this);
62 62
         }
63
-        return new CustomColumn(NULL, localize("customcolumn.float.unknown"), $this);
63
+        return new CustomColumn(null, localize("customcolumn.float.unknown"), $this);
64 64
     }
65 65
 
66 66
     public function isSearchable()
Please login to merge, or discard this patch.
lib/JSON_renderer.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@
 block discarded – undo
76 76
         $out = self::getBookContentArray ($book);
77 77
         $database = GetUrlParam (DB);
78 78
 
79
-        $out ["coverurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", NULL)->hrefXhtml ();
80
-        $out ["thumbnailurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", NULL, NULL, $config['cops_html_thumbnail_height'] * 2)->hrefXhtml ();
79
+        $out ["coverurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", null)->hrefXhtml ();
80
+        $out ["thumbnailurl"] = Data::getLink ($book, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", null, null, $config['cops_html_thumbnail_height'] * 2)->hrefXhtml ();
81 81
         $out ["content"] = $book->getComment (false);
82 82
         $out ["datas"] = array ();
83 83
         $dataKindle = $book->GetMostInterestingDataToSendToKindle ();
Please login to merge, or discard this patch.