@@ -7,8 +7,6 @@ |
||
7 | 7 | * @subpackage River |
8 | 8 | */ |
9 | 9 | |
10 | -use Elgg\Project\Paths; |
|
11 | - |
|
12 | 10 | /** |
13 | 11 | * Adds an item to the river. |
14 | 12 | * |
@@ -7,8 +7,6 @@ |
||
7 | 7 | * @subpackage DataModel.User |
8 | 8 | */ |
9 | 9 | |
10 | -use Elgg\Project\Paths; |
|
11 | - |
|
12 | 10 | /** |
13 | 11 | * Disables all of a user's entities |
14 | 12 | * |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * registered multiple times? |
294 | 294 | * @param string $subtype Subtype of the user entity |
295 | 295 | * |
296 | - * @return int|false The new user's GUID; false on failure |
|
296 | + * @return integer The new user's GUID; false on failure |
|
297 | 297 | * @throws RegistrationException |
298 | 298 | */ |
299 | 299 | function register_user($username, $password, $name, $email, $allow_multiple_emails = false, $subtype = null) { |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | /** |
416 | 416 | * Sets the last action time of the given user to right now. |
417 | 417 | * |
418 | - * @param ElggUser|int $user The user or GUID |
|
418 | + * @param ElggUser $user The user or GUID |
|
419 | 419 | * @return void |
420 | 420 | */ |
421 | 421 | function set_last_action($user) { |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | * /avatar/edit/<username> |
588 | 588 | * |
589 | 589 | * @param array $page |
590 | - * @return bool |
|
590 | + * @return boolean|null |
|
591 | 591 | * @access private |
592 | 592 | */ |
593 | 593 | function elgg_avatar_page_handler($page) { |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | /** |
458 | 458 | * Elgg's front controller. Handles basically all incoming URL requests. |
459 | 459 | * |
460 | - * @return bool True if Elgg will handle the request, false if the server should (PHP-CLI server) |
|
460 | + * @return boolean|null True if Elgg will handle the request, false if the server should (PHP-CLI server) |
|
461 | 461 | */ |
462 | 462 | public static function index() { |
463 | 463 | $req = Request::createFromGlobals(); |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | /** |
475 | 475 | * Routes the request, booting core if not yet booted |
476 | 476 | * |
477 | - * @return bool False if Elgg wants the PHP CLI server to handle the request |
|
477 | + * @return boolean|null False if Elgg wants the PHP CLI server to handle the request |
|
478 | 478 | */ |
479 | 479 | public function run() { |
480 | 480 | $config = $this->_services->config; |
@@ -852,7 +852,7 @@ discard block |
||
852 | 852 | * @param int $linenum The line number the error was raised at |
853 | 853 | * @param array $vars An array that points to the active symbol table where error occurred |
854 | 854 | * |
855 | - * @return true |
|
855 | + * @return boolean |
|
856 | 856 | * @throws \Exception |
857 | 857 | * @access private |
858 | 858 | */ |
@@ -3,21 +3,16 @@ |
||
3 | 3 | namespace Elgg; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Connection; |
6 | -use Elgg\Cache\Pool\InMemory as InMemoryCachePool; |
|
7 | 6 | use Elgg\Database\DbConfig; |
8 | 7 | use Elgg\Database\SiteSecret; |
9 | -use Elgg\Database\TestingPlugins; |
|
10 | 8 | use Elgg\Di\ServiceProvider; |
11 | 9 | use Elgg\Filesystem\Directory; |
12 | 10 | use Elgg\Http\Request; |
13 | 11 | use Elgg\Filesystem\Directory\Local; |
14 | 12 | use ConfigurationException; |
15 | -use Elgg\Mocks\Di\MockServiceProvider; |
|
16 | 13 | use Elgg\Project\Paths; |
17 | 14 | use Exception; |
18 | 15 | use InstallationException; |
19 | -use RuntimeException; |
|
20 | -use Zend\Mail\Transport\InMemory as InMemoryMailTransport; |
|
21 | 16 | |
22 | 17 | /** |
23 | 18 | * Load, boot, and implement a front controller for an Elgg application |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @param string $name Option name |
66 | 66 | * |
67 | - * @return mixed |
|
67 | + * @return string |
|
68 | 68 | */ |
69 | 69 | public function option($name) { |
70 | 70 | return $this->input->getOption($name); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * @note WARNING! update_data() has the 2nd and 3rd arguments reversed. |
95 | 95 | * |
96 | 96 | * @param string $query The query to run. |
97 | - * @param bool $get_num_rows Return the number of rows affected (default: false). |
|
97 | + * @param bool $getNumRows Return the number of rows affected (default: false). |
|
98 | 98 | * @param array $params Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve'] |
99 | 99 | * |
100 | 100 | * @return bool|int |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * |
149 | 149 | * @param string $type The type of link we want: "read", "write" or "readwrite". |
150 | 150 | * |
151 | - * @return Connection |
|
151 | + * @return \Doctrine\DBAL\Connection |
|
152 | 152 | * @throws \DatabaseException |
153 | 153 | * @access private |
154 | 154 | */ |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | * @param array $attributes Object entity attributes |
398 | 398 | * @param array $metadata Object entity metadata |
399 | 399 | * |
400 | - * @return ElggObject |
|
400 | + * @return \ElggSite |
|
401 | 401 | */ |
402 | 402 | public function createSite(array $attributes = [], array $metadata = []) { |
403 | 403 | // We don't want to create more than one site |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * |
437 | 437 | * @param int[] $exclude GUIDs to exclude |
438 | 438 | * |
439 | - * @return ElggGroup|false |
|
439 | + * @return ElggEntity |
|
440 | 440 | */ |
441 | 441 | public function getRandomGroup(array $exclude = []) { |
442 | 442 |
@@ -5,8 +5,6 @@ |
||
5 | 5 | use Elgg\Cache\Pool; |
6 | 6 | use Elgg\Printer\CliPrinter; |
7 | 7 | use Elgg\Printer\HtmlPrinter; |
8 | -use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; |
|
9 | -use Symfony\Component\HttpFoundation\Session\Session as SymfonySession; |
|
10 | 8 | use Zend\Mail\Transport\TransportInterface as Mailer; |
11 | 9 | |
12 | 10 | /** |
@@ -12,9 +12,8 @@ |
||
12 | 12 | /** |
13 | 13 | * Prints data |
14 | 14 | * |
15 | - * @param mixed $message Data to print |
|
16 | 15 | * @param bool $display If display is expected by the logger |
17 | - * @param null $level Logging level |
|
16 | + * @param integer $level Logging level |
|
18 | 17 | * |
19 | 18 | * @return mixed |
20 | 19 | */ |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * @param int $linenum The line number the error was raised at |
115 | 115 | * @param array $vars An array that points to the active symbol table where error occurred |
116 | 116 | * |
117 | - * @return true |
|
117 | + * @return boolean |
|
118 | 118 | * @throws \Exception |
119 | 119 | * @access private |
120 | 120 | */ |