Completed
Push — master ( 9e2978...438a01 )
by Mahmoud
03:41
created
app/Containers/Debugger/Objects/Output.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
+     * @param string $text
59 60
      * @return  string
60 61
      */
61 62
     protected function set($text)
@@ -82,7 +83,7 @@  discard block
 block discarded – undo
82 83
     /**
83 84
      * Add header
84 85
      *
85
-     * @param $name
86
+     * @param string $name
86 87
      */
87 88
     public function header($name)
88 89
     {
Please login to merge, or discard this patch.
app/Containers/Debugger/Objects/RequestsLogger.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App;
6 6
 use Config;
7
-use DB;
8
-use Log;
9 7
 use Monolog\Formatter\LineFormatter;
10 8
 use Monolog\Handler\StreamHandler;
11 9
 use Monolog\Logger;
Please login to merge, or discard this patch.
app/Containers/Authentication/UI/WEB/Controllers/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     /**
60 60
      * @param \App\Containers\Authentication\Actions\WebLogoutAction $action
61 61
      *
62
-     * @return  \Illuminate\Contracts\View\Factory|\Illuminate\View\View
62
+     * @return  \Illuminate\Http\RedirectResponse
63 63
      */
64 64
     public function logoutAdmin(WebLogoutAction $action)
65 65
     {
Please login to merge, or discard this patch.
app/Containers/Authorization/Actions/RevokeUserFromRoleAction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 class RevokeUserFromRoleAction extends Action
18 18
 {
19 19
     /**
20
-     * @param User|integer  $userId
20
+     * @param User|integer  $user
21 21
      * @param integer|array $rolesIds
22 22
      *
23 23
      * @return  \App\Containers\User\Models\User
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Containers\Authorization\Actions;
4 4
 
5 5
 use App\Containers\Authorization\Tasks\GetRoleTask;
6
-use App\Containers\Authorization\Tasks\RevokeUserFromRoleTask;
7 6
 use App\Containers\User\Models\User;
8 7
 use App\Containers\User\Tasks\FindUserByIdTask;
9 8
 use App\Ship\Parents\Actions\Action;
Please login to merge, or discard this patch.
app/Ship/Parents/Exceptions/Exception.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Exception constructor.
41 41
      *
42
-     * @param null            $message
42
+     * @param string            $message
43 43
      * @param null            $errors
44 44
      * @param null            $statusCode
45 45
      * @param int             $code
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 
113 113
 
114 114
     /**
115
-     * @param $statusCode
115
+     * @param integer $statusCode
116 116
      * @param $message
117
-     * @param $code
117
+     * @param integer $code
118 118
      */
119 119
     private function logTheError($statusCode, $message, $code)
120 120
     {
Please login to merge, or discard this patch.
Containers/Authorization/UI/API/Tests/Functional/AssignUserToRoleTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,13 +60,13 @@
 block discarded – undo
60 60
         $response = $this->makeCall($data);
61 61
 
62 62
         // assert response status is correct. Note: this will return 200 if `HASH_ID=false` in the .env
63
-        if(\Config::get('hello.hash-id')){
63
+        if (\Config::get('hello.hash-id')) {
64 64
             $this->assertEquals('400', $response->getStatusCode());
65 65
 
66 66
             $this->assertResponseContainKeyValue([
67 67
                 'message' => 'Only Hashed ID\'s allowed (user_id).',
68 68
             ], $response);
69
-        }else{
69
+        } else {
70 70
             $this->assertEquals('200', $response->getStatusCode());
71 71
         }
72 72
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             $this->assertResponseContainKeyValue([
67 67
                 'message' => 'Only Hashed ID\'s allowed (user_id).',
68 68
             ], $response);
69
-        }else{
69
+        } else{
70 70
             $this->assertEquals('200', $response->getStatusCode());
71 71
         }
72 72
 
Please login to merge, or discard this patch.
Containers/Authorization/UI/API/Tests/Functional/RevokeUserFromRoleTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@
 block discarded – undo
66 66
 
67 67
 
68 68
         // assert response status is correct. Note: this will return 200 if `HASH_ID=false` in the .env
69
-        if(\Config::get('hello.hash-id')){
69
+        if (\Config::get('hello.hash-id')) {
70 70
             $this->assertEquals('400', $response->getStatusCode());
71 71
 
72 72
             $this->assertResponseContainKeyValue([
73 73
                 'message' => 'Only Hashed ID\'s allowed (roles_ids.*).',
74 74
             ], $response);
75
-        }else{
75
+        } else {
76 76
             $this->assertEquals('200', $response->getStatusCode());
77 77
         }
78 78
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             $this->assertResponseContainKeyValue([
73 73
                 'message' => 'Only Hashed ID\'s allowed (roles_ids.*).',
74 74
             ], $response);
75
-        }else{
75
+        } else{
76 76
             $this->assertEquals('200', $response->getStatusCode());
77 77
         }
78 78
 
Please login to merge, or discard this patch.
app/Containers/User/Actions/DeleteUserAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function run($userId = null)
24 24
     {
25
-        $userId = $userId ? : $this->call(GetAuthenticatedUserTask::class)->id;
25
+        $userId = $userId ?: $this->call(GetAuthenticatedUserTask::class)->id;
26 26
 
27 27
         $user = $this->call(FindUserByIdTask::class, [$userId]);
28 28
 
Please login to merge, or discard this patch.
app/Containers/Documentation/Actions/GenerateDocumentationAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
     /**
19
-     * @param $console
19
+     * @param \App\Containers\Documentation\UI\CLI\Commands\GenerateApiDocsCommand $console
20 20
      */
21 21
     public function run($console)
22 22
     {
Please login to merge, or discard this patch.