Completed
Push — master ( 8a4f85...f304b0 )
by Sherif
02:40
created
src/Modules/Core/Repositories/SettingRepository.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 saveMany(array $data)
24 24
     {
25
-    	\DB::transaction(function () use ($data) {
25
+    	\DB::transaction(function() use ($data) {
26 26
     		foreach ($data as $key => $value) 
27 27
     		{
28 28
     			$this->save($value);
Please login to merge, or discard this patch.
src/Modules/Acl/AclUser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     use SoftDeletes, HasApiTokens;
11 11
     protected $table    = 'users';
12 12
     protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
13
-    protected $hidden   = ['password', 'remember_token','deleted_at'];
13
+    protected $hidden   = ['password', 'remember_token', 'deleted_at'];
14 14
     protected $guarded  = ['id'];
15 15
     protected $fillable = ['profile_picture', 'name', 'email', 'password'];
16 16
     public $searchable  = ['name', 'email'];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function groups()
69 69
     {
70
-        return $this->belongsToMany('\App\Modules\Acl\AclGroup','users_groups','user_id','group_id')->whereNull('users_groups.deleted_at')->withTimestamps();
70
+        return $this->belongsToMany('\App\Modules\Acl\AclGroup', 'users_groups', 'user_id', 'group_id')->whereNull('users_groups.deleted_at')->withTimestamps();
71 71
     }
72 72
 
73 73
     public function oauthClients()
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function receivesBroadcastNotificationsOn()
116 116
     {
117
-        return 'users.' . $this->id;
117
+        return 'users.'.$this->id;
118 118
     }
119 119
     
120 120
     public static function boot()
Please login to merge, or discard this patch.
src/Modules/Core/Console/Commands/GenerateDoc.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             if ($route) 
46 46
             {
47 47
                 $actoinArray = explode('@', $route['action']);
48
-                if(array_get($actoinArray, 1, false))
48
+                if (array_get($actoinArray, 1, false))
49 49
                 {
50 50
                     $controller       = $actoinArray[0];
51 51
                     $method           = $actoinArray[1];
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     $route['response'] = $this->getResponseObject($classProperties['model'], $route['name'], $route['returnDocBlock']);
65 65
 
66 66
                     preg_match('/api\/([^#]+)\//iU', $route['uri'], $module);
67
-                    $docData['modules'][$module[1]][substr($route['prefix'], strlen('/api/' . $module[1] . '/') - 1)][] = $route;
67
+                    $docData['modules'][$module[1]][substr($route['prefix'], strlen('/api/'.$module[1].'/') - 1)][] = $route;
68 68
 
69 69
                     $this->getModels($classProperties['model'], $docData);   
70 70
                 }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function getRoutes()
84 84
     {
85
-        return collect(\Route::getRoutes())->map(function ($route) {
85
+        return collect(\Route::getRoutes())->map(function($route) {
86 86
             if (strpos($route->uri(), 'api') !== false) 
87 87
             {
88 88
                 return [
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         ];
115 115
 
116 116
 
117
-        if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) 
117
+        if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) 
118 118
         {
119 119
             $route['headers']['Authorization'] = 'Bearer {token}';
120 120
         }
@@ -168,16 +168,16 @@  discard block
 block discarded – undo
168 168
                 }
169 169
                 else
170 170
                 {
171
-                    $route['body'] = eval('return ' . str_replace(',\'.$request->get(\'id\')', ',{id}\'', $match[1]) . ';');
171
+                    $route['body'] = eval('return '.str_replace(',\'.$request->get(\'id\')', ',{id}\'', $match[1]).';');
172 172
                 }
173 173
 
174 174
                 foreach ($route['body'] as &$rule) 
175 175
                 {
176
-                    if(strpos($rule, 'unique'))
176
+                    if (strpos($rule, 'unique'))
177 177
                     {
178 178
                         $rule = substr($rule, 0, strpos($rule, 'unique') + 6);
179 179
                     }
180
-                    elseif(strpos($rule, 'exists'))
180
+                    elseif (strpos($rule, 'exists'))
181 181
                     {
182 182
                         $rule = substr($rule, 0, strpos($rule, 'exists') - 1);
183 183
                     }
@@ -250,10 +250,10 @@  discard block
 block discarded – undo
250 250
             $model      = factory($modelClass)->make();
251 251
             $modelArr   = $model->toArray();
252 252
 
253
-            if ( $model->trans && ! $model->trans->count()) 
253
+            if ($model->trans && ! $model->trans->count()) 
254 254
             {
255 255
                 $modelArr['trans'] = [
256
-                    'en' => factory($modelClass . 'Translation')->make()->toArray()
256
+                    'en' => factory($modelClass.'Translation')->make()->toArray()
257 257
                 ];
258 258
             }
259 259
 
Please login to merge, or discard this patch.
src/Modules/Notifications/Notifications/ResetPassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
             ->subject('Reset passowrd')
48 48
             ->line('Reset passowrd')
49 49
             ->line('To reset your password click on the button below')
50
-            ->action('Reset password', config('reset_password_url') . '/' . $this->token);
50
+            ->action('Reset password', config('reset_password_url').'/'.$this->token);
51 51
     }
52 52
 }
53 53
\ No newline at end of file
Please login to merge, or discard this patch.
files/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->registerPolicies();
28 28
 
29
-        Passport::routes(function ($router) {
29
+        Passport::routes(function($router) {
30 30
             $router->forAuthorization();
31 31
             $router->forAccessTokens();
32 32
             $router->forPersonalAccessTokens();
Please login to merge, or discard this patch.
src/Modules/Notifications/Notifications/ConfirmEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
             ->subject('Email verification')
46 46
             ->line('Email verification')
47 47
             ->line('To validate your email click on the button below')
48
-            ->action('Verify your email', config('confrim_email_url') . '/' . $notifiable->confirmation_code);
48
+            ->action('Verify your email', config('confrim_email_url').'/'.$notifiable->confirmation_code);
49 49
     }
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.