@@ -11,7 +11,7 @@ |
||
| 11 | 11 | protected $connections; |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * @param Aura\Sql\ConnectionLocator $connections |
|
| 14 | + * @param ConnectionLocator $connections |
|
| 15 | 15 | */ |
| 16 | 16 | public function __construct(ConnectionLocator $connections) |
| 17 | 17 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | protected $connections; |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * @param Aura\Sql\ConnectionLocator $connections |
|
| 14 | + * @param ConnectionLocator $connections |
|
| 15 | 15 | */ |
| 16 | 16 | public function __construct(ConnectionLocator $connections) |
| 17 | 17 | { |
@@ -36,6 +36,10 @@ discard block |
||
| 36 | 36 | $this->replace_element_patterns(); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $pattern |
|
| 41 | + * @param string $replace |
|
| 42 | + */ |
|
| 39 | 43 | private function process_element($pattern, $replace) |
| 40 | 44 | { |
| 41 | 45 | $match_count = preg_match_all($pattern, $this->content, $matches, PREG_SET_ORDER); |
@@ -75,6 +79,10 @@ discard block |
||
| 75 | 79 | $this->content = strip_tags($this->content); |
| 76 | 80 | } |
| 77 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $pattern |
|
| 84 | + * @param string $replace |
|
| 85 | + */ |
|
| 78 | 86 | private function link_unlinked_urls($pattern, $replace) |
| 79 | 87 | { |
| 80 | 88 | $match_count = preg_match_all($pattern, $this->content, $matches, PREG_SET_ORDER); |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | return; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param boolean $is_absolute |
|
| 28 | + */ |
|
| 26 | 29 | private function get_link($string, $is_absolute, $anchor = '') |
| 27 | 30 | { |
| 28 | 31 | list($type, $uri) = explode('/', $string, 2); |
@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $content |
|
| 30 | + */ |
|
| 28 | 31 | private function wrap_in_list($content) |
| 29 | 32 | { |
| 30 | 33 | $content_array = explode("\n", $content); |
@@ -44,6 +47,9 @@ discard block |
||
| 44 | 47 | return $content; |
| 45 | 48 | } |
| 46 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $type |
|
| 52 | + */ |
|
| 47 | 53 | private function highlight_code($content, $type) |
| 48 | 54 | { |
| 49 | 55 | switch($type) |
@@ -62,6 +62,9 @@ |
||
| 62 | 62 | $this->is_trimmed = true; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $content |
|
| 67 | + */ |
|
| 65 | 68 | private function trim_html_string($content, $length) |
| 66 | 69 | { |
| 67 | 70 | $content = preg_replace(self::$PHOTO_PLACEHOLDER_MATCH, '', $content); |
@@ -69,6 +69,9 @@ discard block |
||
| 69 | 69 | return $extension; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $type |
|
| 74 | + */ |
|
| 72 | 75 | public static function getImagePath($type, $file) |
| 73 | 76 | { |
| 74 | 77 | $path = self::instance()->get_root(); |
@@ -151,6 +154,9 @@ discard block |
||
| 151 | 154 | trigger_error("Requested class cannot be instance'd: {$type}, {$file}"); |
| 152 | 155 | } |
| 153 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $type |
|
| 159 | + */ |
|
| 154 | 160 | public static function loadNew($type, $file, $data = array()) |
| 155 | 161 | { |
| 156 | 162 | self::load($type, $file); |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | return false; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $key |
|
| 39 | + */ |
|
| 37 | 40 | static function getGet($key = null) |
| 38 | 41 | { |
| 39 | 42 | if($key) |
@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | self::$array['pieces'] = (array) $uri_array; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @return string |
|
| 53 | + */ |
|
| 51 | 54 | static function getSite() |
| 52 | 55 | { |
| 53 | 56 | return self::$array['site']; |
@@ -76,6 +79,9 @@ discard block |
||
| 76 | 79 | return substr($file, strrpos($file, '.') + 1);; |
| 77 | 80 | } |
| 78 | 81 | |
| 82 | + /** |
|
| 83 | + * @param integer $piece |
|
| 84 | + */ |
|
| 79 | 85 | static function getPiece($piece = null) |
| 80 | 86 | { |
| 81 | 87 | if(!$piece) |