Completed
Push — master ( 7949b1...be02a5 )
by Nick
07:10
created
src/Generator/ModelFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     protected function filterByTrait(array $classes)
62 62
     {
63
-        return array_filter($classes, function ($className) {
63
+        return array_filter($classes, function($className) {
64 64
             return in_array(EloquentJsQueries::class, class_uses_recursive($className));
65 65
         });
66 66
     }
Please login to merge, or discard this patch.
src/Laravel/EloquentJsServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function register()
24 24
     {
25
-        $this->app->bind(QueryTranslator::class, function ($app) {
25
+        $this->app->bind(QueryTranslator::class, function($app) {
26 26
             return new JsonQueryTranslator($app['request']->input('query', '[]'));
27 27
         });
28 28
 
@@ -53,19 +53,19 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $app = $this->app;
55 55
 
56
-        $app->singleton('eloquentjs.router', function ($app) {
56
+        $app->singleton('eloquentjs.router', function($app) {
57 57
             return (new RouteRegistrar($app['router']))
58 58
                 ->setController('\\'.GenericResourceController::class);
59 59
         });
60 60
 
61
-        $router->macro('eloquent', function ($uri, $resource, $options = []) use ($app) {
61
+        $router->macro('eloquent', function($uri, $resource, $options = []) use ($app) {
62 62
             $app['eloquentjs.router']->addRoute($uri, $resource, $options);
63 63
         });
64 64
 
65 65
         // Typically you'd have dedicated controllers for each resource.
66 66
         // Since that's not the case here, we need some way of telling
67 67
         // our generic controller which resource we're working with.
68
-        $app->resolving(function (GenericResourceController $controller, $app) {
68
+        $app->resolving(function(GenericResourceController $controller, $app) {
69 69
             if ($resource = $app['eloquentjs.router']->getCurrentResource()) {
70 70
                 $controller->setModel($app->make($resource));
71 71
             }
Please login to merge, or discard this patch.