Completed
Push — master ( 9b2112...c3dd28 )
by Stephan
05:26
created
SEOstats/Helper/HttpRequest.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,6 @@  discard block
 block discarded – undo
69 69
      * HTTP HEAD request with curl.
70 70
      *
71 71
      * @access        private
72
-     * @param         String        $a        The request URL
73 72
      * @return        Integer                 Returns the HTTP status code received in
74 73
      *                                        response to a GET request of the input URL.
75 74
      */
@@ -136,6 +135,9 @@  discard block
 block discarded – undo
136 135
         return (bool)(false !== stat($file));
137 136
     }
138 137
 
138
+    /**
139
+     * @return resource
140
+     */
139 141
     public static function getUserAgent() {
140 142
         $ua = sprintf('SEOstats %s https://github.com/eyecatchup/SEOstats', \SEOstats\SEOstats::BUILD_NO);
141 143
         if(\SEOstats\Config\DefaultSettings::UA !== '') {
Please login to merge, or discard this patch.
SEOstats/SEOstats.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,6 +152,9 @@  discard block
 block discarded – undo
152 152
         return $url;
153 153
     }
154 154
 
155
+    /**
156
+     * @param boolean $url
157
+     */
155 158
     public function setUrl($url)
156 159
     {
157 160
         if (false !== Helper\Url::isRfc($url)) {
@@ -165,6 +168,9 @@  discard block
 block discarded – undo
165 168
         return true;
166 169
     }
167 170
 
171
+    /**
172
+     * @return string
173
+     */
168 174
     public static function getHost($url = false)
169 175
     {
170 176
         return Helper\Url::parseHost(self::getUrl($url));
@@ -176,7 +182,7 @@  discard block
 block discarded – undo
176 182
     }
177 183
 
178 184
     /**
179
-     * @return DOMDocument
185
+     * @return \DOMDocument
180 186
      */
181 187
     protected static function _getDOMDocument($html) {
182 188
         $doc = new \DOMDocument;
@@ -185,7 +191,7 @@  discard block
 block discarded – undo
185 191
     }
186 192
 
187 193
     /**
188
-     * @return DOMXPath
194
+     * @return \DOMXPath
189 195
      */
190 196
     protected static function _getDOMXPath($doc) {
191 197
         $xpath = new \DOMXPath($doc);
@@ -255,7 +261,7 @@  discard block
 block discarded – undo
255 261
     }
256 262
 
257 263
     /**
258
-     * @return Useragent string
264
+     * @return boolean string
259 265
      */
260 266
     public static function getUserAgent()
261 267
     {
Please login to merge, or discard this patch.