Sfoglia il codice sorgente

fixing some documentation issues detected by scrutinizer-ci

El RIDO 10 anni fa
parent
commit
c13caee981
4 ha cambiato i file con 6 aggiunte e 7 eliminazioni
  1. 2 2
      lib/auto.php
  2. 2 3
      lib/configuration.php
  3. 1 1
      lib/zerobin.php
  4. 1 1
      lib/zerobin/abstract.php

+ 2 - 2
lib/auto.php

@@ -20,11 +20,11 @@ spl_autoload_register('auto::loader');
 class auto
 {
     /**
-     * strips slashes deeply
+     * includes file for given class name
      *
      * @access public
      * @static
-     * @param  mixed $value
+     * @param  string $class_name
      * @return mixed
      */
     public static function loader($class_name)

+ 2 - 3
lib/configuration.php

@@ -218,10 +218,9 @@ class configuration
 
 
     /**
-     * get a key from the configuration, typically the main section or all keys
+     * get a section from the configuration, must exist
      *
-     * @param string $key if empty, return all configuration options
-     * @param string $section defaults to main
+     * @param string $section
      * @throws Exception
      * return mixed
      */

+ 1 - 1
lib/zerobin.php

@@ -486,7 +486,7 @@ class zerobin
      * prepares JSON encoded status message
      *
      * @access private
-     * @param  bool $status
+     * @param  int $status
      * @param  string $message
      * @param  array $other
      * @return void

+ 1 - 1
lib/zerobin/abstract.php

@@ -69,7 +69,7 @@ abstract class zerobin_abstract
      *
      * @access public
      * @param  string $pasteid
-     * @return string
+     * @return stdClass|false
      */
     abstract public function read($pasteid);