Passed
Push — master ( c5d652...dad459 )
by Sébastien
03:37
created
lib/Data.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
                            array('-', '-', ' '), $str );
109 109
     }
110 110
 
111
-    public function getDataLink ($rel, $title = NULL, $view = false) {
111
+    public function getDataLink ($rel, $title = null, $view = false) {
112 112
         global $config;
113 113
 
114 114
         if ($rel == Link::OPDS_ACQUISITION_TYPE && $config['cops_use_url_rewriting'] == "1") {
115 115
             return $this->getHtmlLinkWithRewriting($title, $view);
116 116
         }
117 117
 
118
-        return self::getLink ($this->book, $this->extension, $this->getMimeType (), $rel, $this->getFilename (), $this->id, $title, NULL, $view);
118
+        return self::getLink ($this->book, $this->extension, $this->getMimeType (), $rel, $this->getFilename (), $this->id, $title, null, $view);
119 119
     }
120 120
 
121 121
     public function getHtmlLink () {
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     public function getViewHtmlLink () {
126
-        return $this->getDataLink(Link::OPDS_ACQUISITION_TYPE, NULL, true)->href;
126
+        return $this->getDataLink(Link::OPDS_ACQUISITION_TYPE, null, true)->href;
127 127
     }
128 128
 
129 129
     public function getLocalPath () {
130 130
         return $this->book->path . "/" . $this->getFilename ();
131 131
     }
132 132
 
133
-    public function getHtmlLinkWithRewriting ($title = NULL, $view = false) {
133
+    public function getHtmlLinkWithRewriting ($title = null, $view = false) {
134 134
         global $config;
135 135
 
136 136
         $database = "";
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         return $urlParam;
185 185
     }
186 186
 
187
-    public static function getLink ($book, $type, $mime, $rel, $filename, $idData, $title = NULL, $height = NULL, $view = false)
187
+    public static function getLink ($book, $type, $mime, $rel, $filename, $idData, $title = null, $height = null, $view = false)
188 188
     {
189 189
         global $config;
190 190
 
Please login to merge, or discard this patch.