Passed
Pull Request — master (#14)
by ARCANEDEV
08:28
created
src/System/Views/Composers/FoldersPermissionsComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     protected static function getFoldersPermissions(array $folders): array
70 70
     {
71
-        return array_map(function ($folder) {
71
+        return array_map(function($folder) {
72 72
             $path = base_path($folder);
73 73
 
74 74
             return [
Please login to merge, or discard this patch.
src/System/Metrics/LogViewer/LogEntriesCountByLevel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     private static function calculateEntriesByLevel(LogViewer $logViewer): array
56 56
     {
57
-        return $logViewer->all()->reduce(function ($count, Log $log) {
57
+        return $logViewer->all()->reduce(function($count, Log $log) {
58 58
             foreach ($log->entries()->groupBy('level') as $level => $entries) {
59 59
                 /** @var  \Arcanedev\LogViewer\Entities\LogEntryCollection  $entries */
60 60
                 $count[$level] = ($count[$level] ?? 0) + $entries->count();
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000012_create_auth_two_factors_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function up(): void
42 42
     {
43
-        $this->createSchema(function (Blueprint $table) {
43
+        $this->createSchema(function(Blueprint $table) {
44 44
             $table->id();
45 45
             $table->morphs('two_factorable');
46 46
             $table->text('secret')->nullable();
Please login to merge, or discard this patch.
src/Auth/Views/Components/AdministratorsDatatable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,13 +77,13 @@
 block discarded – undo
77 77
     {
78 78
         return $repo
79 79
             ->onlyTrashed($this->trash)
80
-            ->unless(empty($this->search), function (Builder $query) {
80
+            ->unless(empty($this->search), function(Builder $query) {
81 81
                 $query
82 82
                     ->where('first_name', 'like', '%'.$this->search.'%')
83 83
                     ->orWhere('last_name', 'like', '%'.$this->search.'%')
84 84
                     ->orWhere('email', 'like', '%'.$this->search.'%');
85 85
             })
86
-            ->unless(empty($this->sortField), function (Builder $query) {
86
+            ->unless(empty($this->sortField), function(Builder $query) {
87 87
                 $query->orderBy($this->sortField, $this->getSortDirection());
88 88
             })
89 89
             ->paginate($this->perPage);
Please login to merge, or discard this patch.
src/Core/Views/Composers/MetricsComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function compose(View $view): void
60 60
     {
61
-        $metrics = $this->manager->makeSelected()->filter(function ($metric) {
61
+        $metrics = $this->manager->makeSelected()->filter(function($metric) {
62 62
             return $metric->authorizedToSee(request());
63 63
         });
64 64
 
Please login to merge, or discard this patch.
src/Views/ViewsServiceProvider.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
     private function registerBladeComponents(): void
62 62
     {
63
-        $this->callAfterResolving(BladeCompiler::class, function (BladeCompiler $blade, $app) {
63
+        $this->callAfterResolving(BladeCompiler::class, function(BladeCompiler $blade, $app) {
64 64
             $blade->components(
65 65
                 $app['config']->get('arcanesoft.foundation.view.components')
66 66
             );
Please login to merge, or discard this patch.