Completed
Push — master ( b6a9d1...1b7f7e )
by Mahmoud
03:41
created
app/Containers/Localization/Middlewares/LocalizationMiddleware.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     private function findLanguage($request)
64 64
     {
65 65
         // read the language from the request header, if the header is missed, take the default local language
66
-        return $request->header('Content-Language') ? : Config::get('app.locale');
66
+        return $request->header('Content-Language') ?: Config::get('app.locale');
67 67
     }
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @param $lang
44
+     * @param string $lang
45 45
      *
46 46
      * @return string|Exception
47 47
      */
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @param $request
60
+     * @param Request $request
61 61
      *
62 62
      * @return  string
63 63
      */
Please login to merge, or discard this patch.
app/Ship/Engine/Loaders/MiddlewaresLoaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Registering Route Group's
28 28
      *
29
-     * @param array $middlewareGroups
29
+     * @param array $middlewares
30 30
      */
31 31
     private function registerMiddleware(array $middlewares = [])
32 32
     {
Please login to merge, or discard this patch.
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.