Completed
Push — master ( f42f25...e36723 )
by Mahmoud
08:33
created
app/Ship/Parents/Tests/PhpUnit/TestCaseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             return;
33 33
         }
34 34
 
35
-        $url = ($url) ? : $this->baseUrl;
35
+        $url = ($url) ?: $this->baseUrl;
36 36
 
37 37
         $info = parse_url($url);
38 38
 
Please login to merge, or discard this patch.
app/Containers/User/UI/API/Tests/Functional/CreateAdminTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
             'name'  => $data['name'],
39 39
         ], $response);
40 40
 
41
-         // assert response contain the token
41
+            // assert response contain the token
42 42
         $this->assertResponseContainKeys(['id', 'token'], $response);
43 43
 
44
-         // assert the data is stored in the database
44
+            // assert the data is stored in the database
45 45
         $this->seeInDatabase('users', ['email' => $data['email']]);
46 46
 
47 47
         $responseContent = $this->getResponseContent($response);
Please login to merge, or discard this patch.
app/Containers/Localization/Middlewares/Localization.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @param $lang
54
+     * @param string $lang
55 55
      *
56 56
      * @return string|Exception
57 57
      */
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @param $request
70
+     * @param \Illuminate\Http\Request $request
71 71
      *
72 72
      * @return  string
73 73
      */
Please login to merge, or discard this patch.
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.
app/Ship/Engine/Loaders/LocalizationLoaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-     * @param $directory
35
+     * @param string $directory
36 36
      * @param $containerName
37 37
      */
38 38
     private function loadLocals($directory, $containerName)
Please login to merge, or discard this patch.
app/Ship/Engine/Loaders/MigrationsLoaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param $directory
39
+     * @param string $directory
40 40
      */
41 41
     private function loadMigrations($directory)
42 42
     {
Please login to merge, or discard this patch.
app/Ship/Engine/Loaders/RoutesLoaderTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     /**
79 79
      * @param $file
80
-     * @param $controllerNamespace
80
+     * @param string $controllerNamespace
81 81
      */
82 82
     private function loadWebRoute($file, $controllerNamespace)
83 83
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     /**
146 146
      * @param \Symfony\Component\Finder\SplFileInfo $file
147 147
      *
148
-     * @return  mixed
148
+     * @return  string
149 149
      */
150 150
     private function getRouteFileNameWithoutExtension(SplFileInfo $file)
151 151
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $this->webRouter->group([
85 85
             'middleware' => ['web'],
86 86
             'namespace'  => $controllerNamespace,
87
-        ], function (LaravelRouter $router) use ($file) {
87
+        ], function(LaravelRouter $router) use ($file) {
88 88
             require $file->getPathname();
89 89
         });
90 90
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $apiVersionNumber = $this->getRouteFileVersionNumber($file);
101 101
 
102 102
         $this->apiRouter->version('v' . $apiVersionNumber,
103
-            function (DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
103
+            function(DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
104 104
 
105 105
                 $controllerNamespace = $containersNamespace . '\\Containers\\' . basename($containerPath) . '\\UI\API\Controllers';
106 106
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                     'limit'      => Config::get('hello.api.limit'),
114 114
                     // The API limit expiry time.
115 115
                     'expires'    => Config::get('hello.api.limit_expires'),
116
-                ], function ($router) use ($file) {
116
+                ], function($router) use ($file) {
117 117
 
118 118
                     require $file->getPathname();
119 119
 
Please login to merge, or discard this patch.
app/Ship/Engine/Loaders/ViewsLoaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-     * @param $directory
34
+     * @param string $directory
35 35
      * @param $containerName
36 36
      */
37 37
     private function loadViews($directory, $containerName)
Please login to merge, or discard this patch.
app/Containers/Authorization/Traits/AuthorizationTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 trait AuthorizationTrait
13 13
 {
14 14
     /**
15
-     * @return  \App\Containers\User\Models\User|null
15
+     * @return  \Illuminate\Contracts\Auth\Authenticatable|null
16 16
      */
17 17
     public function getUser()
18 18
     {
Please login to merge, or discard this patch.
app/Ship/Parents/Requests/Request.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Ship\Parents\Requests;
4 4
 
5
-use App\Containers\Authorization\Traits\AuthorizationTrait;
6 5
 use App\Ship\Engine\Traits\HashIdTrait;
7 6
 use Illuminate\Foundation\Http\FormRequest as LaravelFormRequest;
8 7
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function hasAccess(User $user = null)
29 29
     {
30 30
         // if not in parameters, take from the request object {$this}
31
-        $user = $user ? : $this->user();
31
+        $user = $user ?: $this->user();
32 32
 
33 33
         $hasAccess = array_merge(
34 34
             $this->hasAnyPermissionAccess($user),
Please login to merge, or discard this patch.