@@ -41,6 +41,9 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $color |
|
| 46 | + */ |
|
| 44 | 47 | public function hsl($color) |
| 45 | 48 | { |
| 46 | 49 | list($r, $g, $b) = $this->rgb($color); |
@@ -135,7 +138,7 @@ discard block |
||
| 135 | 138 | * |
| 136 | 139 | * @param string|array $color1 |
| 137 | 140 | * @param string|array $color2 |
| 138 | - * @return int |
|
| 141 | + * @return double |
|
| 139 | 142 | */ |
| 140 | 143 | public function lumDiff($color1, $color2) |
| 141 | 144 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * Singleton |
| 41 | 41 | * |
| 42 | - * @return Nip_Helper_Date |
|
| 42 | + * @return Nip_Helper_Time |
|
| 43 | 43 | */ |
| 44 | 44 | static public function instance() |
| 45 | 45 | { |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $key |
|
| 23 | + */ |
|
| 21 | 24 | public function setParam($key, $value) { |
| 22 | 25 | $this->_params[$key] = $value; |
| 23 | 26 | return $this; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * @param bool|AutoLoader $autoLoader |
|
| 29 | + * @param AutoLoader $autoLoader |
|
| 30 | 30 | * @return $this |
| 31 | 31 | */ |
| 32 | 32 | public function setAutoLoader($autoLoader = false) |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | - * @param $filePath |
|
| 125 | + * @param string $filePath |
|
| 126 | 126 | * @return bool |
| 127 | 127 | */ |
| 128 | 128 | protected function readCacheFile($filePath) |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * Parses a file from `$path` and gets its contents as an array |
| 13 | 13 | * |
| 14 | - * @param string $path |
|
| 15 | 14 | * |
| 16 | 15 | * @return array |
| 17 | 16 | */ |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @param mixed $extension |
|
| 60 | + * @param string $extension |
|
| 61 | 61 | */ |
| 62 | 62 | public function setExtension($extension) |
| 63 | 63 | { |
@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | protected $_values; |
| 13 | 13 | protected $_query; |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $string |
|
| 17 | + */ |
|
| 15 | 18 | public function __construct($string, $values = array()) |
| 16 | 19 | { |
| 17 | 20 | $this->_string = $string; |
@@ -75,6 +78,9 @@ discard block |
||
| 75 | 78 | return $string; |
| 76 | 79 | } |
| 77 | 80 | |
| 81 | + /** |
|
| 82 | + * @param Query $value |
|
| 83 | + */ |
|
| 78 | 84 | protected function parseValueQuery($value) |
| 79 | 85 | { |
| 80 | 86 | return "(".$value->assemble().")"; |
@@ -99,11 +105,17 @@ discard block |
||
| 99 | 105 | return $this; |
| 100 | 106 | } |
| 101 | 107 | |
| 108 | + /** |
|
| 109 | + * @param Condition $condition |
|
| 110 | + */ |
|
| 102 | 111 | public function and_($condition) |
| 103 | 112 | { |
| 104 | 113 | return new AndCondition($this, $condition); |
| 105 | 114 | } |
| 106 | 115 | |
| 116 | + /** |
|
| 117 | + * @param Condition $condition |
|
| 118 | + */ |
|
| 107 | 119 | public function or_($condition) |
| 108 | 120 | { |
| 109 | 121 | return new OrCondition($this, $condition); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @param bool|Dispatcher $dispatcher |
|
| 41 | + * @param Dispatcher $dispatcher |
|
| 42 | 42 | * @return $this |
| 43 | 43 | */ |
| 44 | 44 | public function setDispatcher($dispatcher = false) |