Completed
Push — master ( 5d18d5...952510 )
by Maxime
04:18
created
src/Distilleries/Expendable/Http/Middleware/VerifyCsrfToken.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 class VerifyCsrfToken extends BaseVerifier {
7 7
 
8
-	/**
9
-	 * Handle an incoming request.
10
-	 *
11
-	 * @param  \Illuminate\Http\Request  $request
12
-	 * @param  \Closure  $next
13
-	 * @return mixed
14
-	 */
15
-	public function handle($request, Closure $next)
16
-	{
17
-		return parent::handle($request, $next);
18
-	}
8
+    /**
9
+     * Handle an incoming request.
10
+     *
11
+     * @param  \Illuminate\Http\Request  $request
12
+     * @param  \Closure  $next
13
+     * @return mixed
14
+     */
15
+    public function handle($request, Closure $next)
16
+    {
17
+        return parent::handle($request, $next);
18
+    }
19 19
 
20 20
 }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/Translation.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function scopeByElement($query, Model $model)
55 55
     {
56 56
         return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable())
57
-                     ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
57
+                        ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
58 58
     }
59 59
 
60 60
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
 
54 54
     public function scopeByElement($query, Model $model)
55 55
     {
56
-        return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable())
57
-                     ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
56
+        return $query->where($this->getTable().'.'.$this->getModelColumn(), '=', $model->getTable())
57
+                     ->where($this->getTable().'.'.$this->getIdSourceColumn(), '=', $model->getKey());
58 58
     }
59 59
 
60 60
 }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Listeners/UserListener.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
 use Distilleries\Expendable\Contracts\LockableContract;
4 4
 use Distilleries\Expendable\Helpers\UserUtils;
5
-use Distilleries\Expendable\Models\User;
6 5
 
7 6
 class UserListener extends BaseListener
8 7
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
 
37 37
 
38
-        if($model->email != ''){
38
+        if ($model->email != '') {
39 39
             $model->unlock();
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Scopes/StatusScope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Illuminate\Database\Eloquent\Scope;
6 6
 use Illuminate\Database\Eloquent\Model;
7 7
 
8
-class StatusScope implements Scope{
8
+class StatusScope implements Scope {
9 9
 
10 10
     /**
11 11
      * All of the extensions to be added to the builder.
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Scopes/TranslatableScope.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
             $iso = app()->getLocale();
32 32
         }
33 33
 
34
-        $builder->whereExists(function ($query) use ($model, $iso) {
34
+        $builder->whereExists(function($query) use ($model, $iso) {
35 35
             $query->select(\DB::raw(1))
36 36
                 ->from($model->getQualifiedTable())
37
-                ->whereRaw($model->getTable() . '.' . $model->getKeyName() . ' = ' . $model->getQualifiedIdElementColumn())
37
+                ->whereRaw($model->getTable().'.'.$model->getKeyName().' = '.$model->getQualifiedIdElementColumn())
38 38
                 ->where($model->getQualifiedIsoColumn(), $iso)
39 39
                 ->where($model->getQualifiedModelColumn(), $model->getTable());
40 40
         });
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function addWithoutTranslation(Builder $builder)
68 68
     {
69
-        $builder->macro('withoutTranslation', function (Builder $builder) {
69
+        $builder->macro('withoutTranslation', function(Builder $builder) {
70 70
             return $builder->withoutGlobalScope($this);
71 71
         });
72 72
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/States/StateDisplayer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         return $this->view->make($template, [
59 59
             'states' => $this->getTableState(),
60
-            'action' => '\\' . $this->class . '@'
60
+            'action' => '\\'.$this->class.'@'
61 61
         ]);
62 62
     }
63 63
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/StatusTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function getQualifiedStatusColumn()
47 47
     {
48
-        return $this->getTable() . '.' . $this->getStatusColumn();
48
+        return $this->getTable().'.'.$this->getStatusColumn();
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/Language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
     public function scopeWithoutCurrentLanguage($query)
16 16
     {
17
-        return $query->where($this->getTable().'.iso','<>',app()->getLocale());
17
+        return $query->where($this->getTable().'.iso', '<>', app()->getLocale());
18 18
     }
19 19
 
20 20
     public function scopeWithTranslationElement($query)
21 21
     {
22
-        return $query->where($this->getTable().'.iso','<>',app()->getLocale());
22
+        return $query->where($this->getTable().'.iso', '<>', app()->getLocale());
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Listeners/BaseListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         foreach ($this->events as $name => $event)
22 22
         {
23
-            Event::listen($name, get_class($this) . '@' . $event['action'], $event['priority']);
23
+            Event::listen($name, get_class($this).'@'.$event['action'], $event['priority']);
24 24
         }
25 25
 
26 26
     }
Please login to merge, or discard this patch.