Passed
Push — master ( 1a1f73...5f3af1 )
by Arthur
04:28
created
src/Foundation/Support/cloudflare_helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
4
-    $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
3
+if (isset($_SERVER[ "HTTP_CF_CONNECTING_IP" ])) {
4
+    $_SERVER[ 'REMOTE_ADDR' ] = $_SERVER[ "HTTP_CF_CONNECTING_IP" ];
5 5
 }
6 6
\ No newline at end of file
Please login to merge, or discard this patch.
src/Foundation/Support/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if (empty($array))
39 39
             return null;
40 40
         $randomIndex = random_int(0, sizeof($array) - 1);
41
-        return $array[$randomIndex];
41
+        return $array[ $randomIndex ];
42 42
     }
43 43
 }
44 44
 if (!function_exists('createArrayFromFactory')) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $traits = array_flip(class_uses_recursive($class));
85 85
 
86
-        return isset($traits[$trait]);
86
+        return isset($traits[ $trait ]);
87 87
     }
88 88
 }
89 89
 
Please login to merge, or discard this patch.
src/Foundation/Traits/RefreshDatabaseBeforeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $this->artisan('migrate:fresh');
24 24
         $this->artisan('db:seed');
25 25
 
26
-        $this->beforeApplicationDestroyed(function () {
26
+        $this->beforeApplicationDestroyed(function() {
27 27
             $this->artisan('migrate:rollback');
28 28
             RefreshDatabaseState::$migrated = false;
29 29
         });
Please login to merge, or discard this patch.
src/Foundation/Traits/OwnedByUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function ownerId()
17 17
     {
18
-        $ownerAttributeName = strtolower(getShortClassName($this->ownedBy())) . '_id';
18
+        $ownerAttributeName = strtolower(getShortClassName($this->ownedBy())).'_id';
19 19
         return $this->$ownerAttributeName;
20 20
     }
21 21
 
Please login to merge, or discard this patch.
src/Foundation/Observers/CacheObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function created($model)
21 21
     {
22
-        $model->relations = [];
22
+        $model->relations = [ ];
23 23
         ModelCache::store($model);
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Foundation/Routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Artisan::command('inspire', function () {
16
+Artisan::command('inspire', function() {
17 17
     $this->comment(Inspiring::quote());
18 18
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.
src/Foundation/Routes/channels.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Broadcast::channel('App.User.{id}', function ($user, $id) {
15
-    return (int)$user->id === (int)$id;
14
+Broadcast::channel('App.User.{id}', function($user, $id) {
15
+    return (int) $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.