Completed
Pull Request — master (#3)
by Lars
04:29 queued 02:25
created
src/Repository/OrderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     public function toMiddle(Model $model)
102 102
     {
103 103
         $middle = number_format($this->count($model) / 2);
104
-        $between = [$model->{$this->column}, $middle];
104
+        $between = [ $model->{$this->column}, $middle ];
105 105
 
106 106
         if ($model->{$this->column} != $middle) {
107 107
             if ($model->{$this->column} > $middle) {
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function getEnvironmentSetUp($app)
35 35
     {
36
-        $app['config']->set('database.default', 'sqlite');
37
-        $app['config']->set('database.connections.sqlite', [
36
+        $app[ 'config' ]->set('database.default', 'sqlite');
37
+        $app[ 'config' ]->set('database.connections.sqlite', [
38 38
             'driver'   => 'sqlite',
39 39
             'database' => ':memory:',
40 40
             'prefix'   => '',
41 41
         ]);
42 42
 
43
-        $app['config']->set('app.key', '6rE9Nz59bGRbeMATftriyQjrpF7DcOQm');
43
+        $app[ 'config' ]->set('app.key', '6rE9Nz59bGRbeMATftriyQjrpF7DcOQm');
44 44
     }
45 45
 
46 46
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function setUpDatabase($app)
50 50
     {
51
-        $app['db']->connection()->getSchemaBuilder()->create('forum', function (Blueprint $table) {
51
+        $app[ 'db' ]->connection()->getSchemaBuilder()->create('forum', function(Blueprint $table) {
52 52
             $table->increments('id');
53 53
             $table->string('name');
54 54
             $table->integer('order');
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
             $table->timestamps();
57 57
         });
58 58
 
59
-        TestModel::create(['name' => 'food',        'order' => 1]);
60
-        TestModel::create(['name' => 'work',        'order' => 2]);
61
-        TestModel::create(['name' => 'children',    'order' => 3]);
62
-        TestModel::create(['name' => 'ict',         'order' => 4]);
63
-        TestModel::create(['name' => 'people',      'order' => 5]);
59
+        TestModel::create([ 'name' => 'food', 'order' => 1 ]);
60
+        TestModel::create([ 'name' => 'work', 'order' => 2 ]);
61
+        TestModel::create([ 'name' => 'children', 'order' => 3 ]);
62
+        TestModel::create([ 'name' => 'ict', 'order' => 4 ]);
63
+        TestModel::create([ 'name' => 'people', 'order' => 5 ]);
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
tests/TestModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,5 @@
 block discarded – undo
8 8
 {
9 9
     protected $table = 'forum';
10 10
 
11
-    protected $guarded = [];
11
+    protected $guarded = [ ];
12 12
 }
Please login to merge, or discard this patch.