Completed
Push — master ( 80af1b...f425bf )
by Manu
02:30
created
src/Providers/InventoryServiceProvider.php 7 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
     public function register()
19 19
     {
20 20
         if (!defined('SCOOL_INVENTORY_PATH')) {
21
-            define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../'));
21
+            define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../'));
22 22
         }
23 23
         $this->app->register(NamesServiceProvider::class);
24 24
         $this->app->bind(\Scool\Inventory\Repositories\StudyRepository::class, \Scool\Inventory\Repositories\StudyRepositoryEloquent::class);
25
-        $this->app->bind(StatsRepositoryInterface::class,function() {
25
+        $this->app->bind(StatsRepositoryInterface::class, function() {
26 26
             return new CacheableStatsRepository(new StatsRepository());
27 27
         });
28 28
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function loadMigrations()
46 46
     {
47
-        $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations');
47
+        $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations');
48 48
     }
49 49
     /**
50 50
      * Publish factories.
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
             ScoolInventory::configs(), 'scool_inventory'
65 65
         );
66 66
         $this->mergeConfigFrom(
67
-            SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory'
67
+            SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory'
68 68
         );
69 69
     }
70 70
     private function publishTests()
71 71
     {
72 72
         $this->publishes(
73
-            [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'],
74
-<<<<<<< HEAD
73
+            [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ],
74
+<< << <<< HEAD
75 75
             'scool_inventory'
76 76
 =======
77 77
             'scool_curriculum'
@@ -91,6 +91,4 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,6 +91,4 @@
 block discarded – undo
91 91
 
92 92
     private function registerStatefulEloquentServiceProvider ()
93 93
     {
94
-        $this->app->register(StatefulServiceProvider::class);
95
-    }
96
-}
94
+        $this->app
97 95
\ No newline at end of file
Please login to merge, or discard this patch.