@@ -92,8 +92,6 @@ |
||
| 92 | 92 | * @since 0.1 |
| 93 | 93 | * |
| 94 | 94 | * @param string $tag The name of the action to be executed. |
| 95 | - * @param mixed $arg,... Optional additional arguments which are passed on to the functions |
|
| 96 | - * hooked to the action. |
|
| 97 | 95 | */ |
| 98 | 96 | public static function dispatch($tag, $arg = '') |
| 99 | 97 | { |
@@ -103,8 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | if (!isset(self::$actions[$tag])) { |
| 105 | 105 | self::$actions[$tag] = 1; |
| 106 | - } else { |
|
| 107 | - ++self::$actions[$tag]; |
|
| 106 | + } else {++self::$actions[$tag]; |
|
| 108 | 107 | } |
| 109 | 108 | |
| 110 | 109 | // Do 'all' actions first |
@@ -137,9 +136,9 @@ discard block |
||
| 137 | 136 | } |
| 138 | 137 | |
| 139 | 138 | // Sort |
| 140 | - if (!isset(Filter::$mergedFilters[ $tag ])) { |
|
| 139 | + if (!isset(Filter::$mergedFilters[$tag])) { |
|
| 141 | 140 | ksort(Filter::$filters[$tag]); |
| 142 | - Filter::$mergedFilters[ $tag ] = true; |
|
| 141 | + Filter::$mergedFilters[$tag] = true; |
|
| 143 | 142 | } |
| 144 | 143 | |
| 145 | 144 | reset(Filter::$filters[$tag]); |
@@ -171,8 +170,7 @@ discard block |
||
| 171 | 170 | |
| 172 | 171 | if (!isset(self::$actions[$tag])) { |
| 173 | 172 | self::$actions[$tag] = 1; |
| 174 | - } else { |
|
| 175 | - ++self::$actions[$tag]; |
|
| 173 | + } else {++self::$actions[$tag]; |
|
| 176 | 174 | } |
| 177 | 175 | |
| 178 | 176 | // Do 'all' actions first |
@@ -195,12 +193,12 @@ discard block |
||
| 195 | 193 | } |
| 196 | 194 | |
| 197 | 195 | // Sort |
| 198 | - if (!isset($merged_filters[ $tag ])) { |
|
| 196 | + if (!isset($merged_filters[$tag])) { |
|
| 199 | 197 | ksort(Filter::$filters[$tag]); |
| 200 | - $merged_filters[ $tag ] = true; |
|
| 198 | + $merged_filters[$tag] = true; |
|
| 201 | 199 | } |
| 202 | 200 | |
| 203 | - reset(Filter::$filters[ $tag ]); |
|
| 201 | + reset(Filter::$filters[$tag]); |
|
| 204 | 202 | |
| 205 | 203 | do { |
| 206 | 204 | foreach ((array) current(Filter::$filters[$tag]) as $the_) { |
@@ -125,7 +125,6 @@ |
||
| 125 | 125 | /** |
| 126 | 126 | * Set page favicon. |
| 127 | 127 | * |
| 128 | - * @param string $href Favicon location |
|
| 129 | 128 | */ |
| 130 | 129 | public function setFavicon($favicon) |
| 131 | 130 | { |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | file_put_contents(LOG_ROOT.'/'.$level.'.log', $this->format($message), FILE_APPEND | LOCK_EX); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $message |
|
| 16 | + */ |
|
| 14 | 17 | private function format($message) |
| 15 | 18 | { |
| 16 | 19 | return sprintf( |
@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Sets the pattern for the path. |
| 51 | 51 | * |
| 52 | - * @param string $pattern The path pattern |
|
| 53 | 52 | */ |
| 54 | 53 | private function setPath($path) |
| 55 | 54 | { |
@@ -79,7 +78,7 @@ discard block |
||
| 79 | 78 | /** |
| 80 | 79 | * Returns the controller name. |
| 81 | 80 | * |
| 82 | - * @return array $controllerName |
|
| 81 | + * @return string $controllerName |
|
| 83 | 82 | */ |
| 84 | 83 | public function getControllerName() |
| 85 | 84 | { |
@@ -109,7 +108,7 @@ discard block |
||
| 109 | 108 | /** |
| 110 | 109 | * Returns the priority. |
| 111 | 110 | * |
| 112 | - * @return array $priority |
|
| 111 | + * @return integer $priority |
|
| 113 | 112 | */ |
| 114 | 113 | public function getPriority() |
| 115 | 114 | { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Create connection with database. |
| 47 | 47 | * |
| 48 | - * @return object PDO |
|
| 48 | + * @return PDO PDO |
|
| 49 | 49 | */ |
| 50 | 50 | private function connect() |
| 51 | 51 | { |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Returns part of query. |
| 11 | 11 | * |
| 12 | + * @param string $part |
|
| 12 | 13 | * @return string |
| 13 | 14 | */ |
| 14 | 15 | protected function queryPart($part) |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | /** |
| 136 | 136 | * Returns modifier full name. |
| 137 | 137 | * |
| 138 | - * @return int |
|
| 138 | + * @return string |
|
| 139 | 139 | */ |
| 140 | 140 | public function modifierFullName($type = '') |
| 141 | 141 | { |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | $this->root = THEMES_ROOT.'/front/'.FRONT_THEME.'/'; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param string $path |
|
| 20 | + */ |
|
| 18 | 21 | public function getFilesListByPath($path) |
| 19 | 22 | { |
| 20 | 23 | return array_diff( |
@@ -23,6 +26,9 @@ discard block |
||
| 23 | 26 | ); |
| 24 | 27 | } |
| 25 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $path |
|
| 31 | + */ |
|
| 26 | 32 | public function getFileInfo($path) |
| 27 | 33 | { |
| 28 | 34 | $file = $this->root.$path; |
@@ -40,6 +46,9 @@ discard block |
||
| 40 | 46 | ]; |
| 41 | 47 | } |
| 42 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $path |
|
| 51 | + */ |
|
| 43 | 52 | public function saveFile($path, $data) |
| 44 | 53 | { |
| 45 | 54 | $file = $this->root.$path; |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Returns part of query. |
| 11 | 11 | * |
| 12 | + * @param string $part |
|
| 12 | 13 | * @return string |
| 13 | 14 | */ |
| 14 | 15 | protected function queryPart($part) |