@@ -55,6 +55,7 @@ discard block |
||
55 | 55 | * Adds a header to the email |
56 | 56 | * |
57 | 57 | * @since 12.0.0 |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | public function addHeader(); |
60 | 61 | |
@@ -62,10 +63,11 @@ discard block |
||
62 | 63 | * Adds a heading to the email |
63 | 64 | * |
64 | 65 | * @param string $title |
65 | - * @param string $plainTitle|bool Title that is used in the plain text email |
|
66 | + * @param string $plainTitle Title that is used in the plain text email |
|
66 | 67 | * if empty the $title is used, if false none will be used |
67 | 68 | * |
68 | 69 | * @since 12.0.0 |
70 | + * @return void |
|
69 | 71 | */ |
70 | 72 | public function addHeading($title, $plainTitle = ''); |
71 | 73 | |
@@ -77,6 +79,7 @@ discard block |
||
77 | 79 | * if empty the $text is used, if false none will be used |
78 | 80 | * |
79 | 81 | * @since 12.0.0 |
82 | + * @return void |
|
80 | 83 | */ |
81 | 84 | public function addBodyText($text, $plainText = ''); |
82 | 85 | |
@@ -91,6 +94,7 @@ discard block |
||
91 | 94 | * @param string $plainMetaInfo Meta info that is used in the plain text email |
92 | 95 | * if empty the $metaInfo is used, if false none will be used |
93 | 96 | * @since 12.0.0 |
97 | + * @return void |
|
94 | 98 | */ |
95 | 99 | public function addBodyListItem($text, $metaInfo = '', $icon = '', $plainText = '', $plainMetaInfo = ''); |
96 | 100 | |
@@ -105,6 +109,7 @@ discard block |
||
105 | 109 | * @param string $plainTextRight Text of right button that is used in the plain text version - if empty the $textRight is used |
106 | 110 | * |
107 | 111 | * @since 12.0.0 |
112 | + * @return void |
|
108 | 113 | */ |
109 | 114 | public function addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft = '', $plainTextRight = ''); |
110 | 115 | |
@@ -117,6 +122,7 @@ discard block |
||
117 | 122 | * if empty the $text is used, if false none will be used |
118 | 123 | * |
119 | 124 | * @since 12.0.0 |
125 | + * @return void |
|
120 | 126 | */ |
121 | 127 | public function addBodyButton($text, $url, $plainText = ''); |
122 | 128 | |
@@ -126,6 +132,7 @@ discard block |
||
126 | 132 | * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically sent email" will be used |
127 | 133 | * |
128 | 134 | * @since 12.0.0 |
135 | + * @return void |
|
129 | 136 | */ |
130 | 137 | public function addFooter($text = ''); |
131 | 138 |
@@ -320,7 +320,7 @@ |
||
320 | 320 | |
321 | 321 | /** |
322 | 322 | * @param IJob $job |
323 | - * @param $timeTaken |
|
323 | + * @param integer $timeTaken |
|
324 | 324 | */ |
325 | 325 | public function setExecutionTime(IJob $job, $timeTaken) { |
326 | 326 | $query = $this->connection->getQueryBuilder(); |
@@ -431,7 +431,7 @@ |
||
431 | 431 | } |
432 | 432 | |
433 | 433 | /** |
434 | - * @param array $disabledApps |
|
434 | + * @param string[] $disabledApps |
|
435 | 435 | * @throws \Exception |
436 | 436 | */ |
437 | 437 | private function upgradeAppStoreApps(array $disabledApps) { |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | $this->stack = $stack; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param double $time |
|
53 | + */ |
|
51 | 54 | public function end($time) { |
52 | 55 | $this->end = $time; |
53 | 56 | } |
@@ -67,7 +70,7 @@ discard block |
||
67 | 70 | } |
68 | 71 | |
69 | 72 | /** |
70 | - * @return float |
|
73 | + * @return integer |
|
71 | 74 | */ |
72 | 75 | public function getStart() { |
73 | 76 | return $this->start; |
@@ -448,7 +448,7 @@ |
||
448 | 448 | * |
449 | 449 | * @param string $path source path |
450 | 450 | * @param string $destination destination path |
451 | - * @return bool|void false to stop handling, void to skip this handler |
|
451 | + * @return null|false false to stop handling, void to skip this handler |
|
452 | 452 | */ |
453 | 453 | public function beforeMoveFutureFile($path, $destination) { |
454 | 454 | $sourceNode = $this->tree->getNodeForPath($path); |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * @param IConfig $config |
59 | 59 | * @param IL10N $l |
60 | 60 | * @param IURLGenerator $urlGenerator |
61 | - * @param \OC_Defaults $defaults |
|
62 | 61 | * @param IAppData $appData |
63 | 62 | * @param ICacheFactory $cacheFactory |
64 | 63 | * @param Util $util |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * get color for on-page elements: |
73 | 73 | * theme color by default, grey if theme color is to bright |
74 | - * @param $color |
|
74 | + * @param string $color |
|
75 | 75 | * @return string |
76 | 76 | */ |
77 | 77 | public function elementColor($color) { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * @param $app string app name |
117 | - * @return string|ISimpleFile path to app icon / file of logo |
|
117 | + * @return string path to app icon / file of logo |
|
118 | 118 | */ |
119 | 119 | public function getAppIcon($app) { |
120 | 120 | $app = str_replace(array('\0', '/', '\\', '..'), '', $app); |
@@ -190,8 +190,8 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * replace default color with a custom one |
192 | 192 | * |
193 | - * @param $svg string content of a svg file |
|
194 | - * @param $color string color to match |
|
193 | + * @param string $svg string content of a svg file |
|
194 | + * @param string $color string color to match |
|
195 | 195 | * @return string |
196 | 196 | */ |
197 | 197 | public function colorizeSvg($svg, $color) { |
@@ -86,6 +86,9 @@ discard block |
||
86 | 86 | return $path === '.'; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param string $path |
|
91 | + */ |
|
89 | 92 | private function cleanKey($path) { |
90 | 93 | if ($this->isRoot($path)) { |
91 | 94 | return '/'; |
@@ -109,7 +112,7 @@ discard block |
||
109 | 112 | } |
110 | 113 | |
111 | 114 | /** |
112 | - * @param $key |
|
115 | + * @param string $key |
|
113 | 116 | * @return Result|boolean |
114 | 117 | */ |
115 | 118 | private function headObject($key) { |
@@ -236,6 +239,9 @@ discard block |
||
236 | 239 | return false; |
237 | 240 | } |
238 | 241 | |
242 | + /** |
|
243 | + * @param string $path |
|
244 | + */ |
|
239 | 245 | private function batchDelete($path = null) { |
240 | 246 | $params = array( |
241 | 247 | 'Bucket' => $this->bucket |
@@ -581,6 +587,9 @@ discard block |
||
581 | 587 | return $this->id; |
582 | 588 | } |
583 | 589 | |
590 | + /** |
|
591 | + * @param string $path |
|
592 | + */ |
|
584 | 593 | public function writeBack($tmpFile, $path) { |
585 | 594 | try { |
586 | 595 | $source = fopen($tmpFile, 'r'); |
@@ -164,7 +164,7 @@ |
||
164 | 164 | * @param array $parameters |
165 | 165 | * @param bool $silence whether to suppress warnings |
166 | 166 | * @throws \ErrorException via trapError |
167 | - * @return mixed |
|
167 | + * @return string |
|
168 | 168 | */ |
169 | 169 | private function invoke($functionName, array $parameters = [], $silence = false) { |
170 | 170 | try { |