Passed
Pull Request — master (#14)
by ARCANEDEV
09:41
created
src/Fortify/Http/Controllers/Concerns/HasPasswordBroker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     protected static function broker(): PasswordBroker
27 27
     {
28
-        return with(app('auth.password'), function (PasswordBrokerFactory $manager) {
28
+        return with(app('auth.password'), function(PasswordBrokerFactory $manager) {
29 29
             return $manager->broker(static::getBrokerDriver());
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/ModuleManifest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
 
54 54
         $this->write(
55 55
             Collection::make($packages)
56
-                ->mapWithKeys(function ($package) {
56
+                ->mapWithKeys(function($package) {
57 57
                     return [$this->format($package['name']) => $package['extra']['arcanesoft'] ?? []];
58 58
                 })
59
-                ->each(function ($configuration) use (&$ignore) {
59
+                ->each(function($configuration) use (&$ignore) {
60 60
                     $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []);
61 61
                 })
62
-                ->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
62
+                ->reject(function($configuration, $package) use ($ignore, $ignoreAll) {
63 63
                     return $ignoreAll || in_array($package, $ignore);
64 64
                 })
65 65
                 ->filter()
Please login to merge, or discard this patch.
src/Views/Contracts/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param  string|array  $name
27 27
      * @param  string|null   $component
28 28
      */
29
-    public function register($name, string $component= null): void;
29
+    public function register($name, string $component = null): void;
30 30
 
31 31
     /**
32 32
      * Check if a component is registered.
Please login to merge, or discard this patch.
src/Views/Concerns/WithPagination.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
         $this->page = $this->resolvePage();
42 42
 
43
-        Paginator::currentPageResolver(function () {
43
+        Paginator::currentPageResolver(function() {
44 44
             return $this->page;
45 45
         });
46 46
 
Please login to merge, or discard this patch.
src/Views/Concerns/WithSortField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function sortBy(string $field): void
37 37
     {
38
-        $this->sortAsc   = $this->sortField === $field ? (! $this->sortAsc) : true;
38
+        $this->sortAsc   = $this->sortField === $field ? ( ! $this->sortAsc) : true;
39 39
         $this->sortField = $field;
40 40
     }
41 41
 
Please login to merge, or discard this patch.
src/Views/Concerns/InteractsWithProperties.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@
 block discarded – undo
56 56
             $reflection = new ReflectionClass($this);
57 57
 
58 58
             static::$propertyCache[$class] = Collection::make($reflection->getProperties(ReflectionProperty::IS_PUBLIC))
59
-                ->reject(function (ReflectionProperty $property) {
59
+                ->reject(function(ReflectionProperty $property) {
60 60
                     return $this->shouldIgnore($property->getName());
61 61
                 })
62
-                ->map(function (ReflectionProperty $property) {
62
+                ->map(function(ReflectionProperty $property) {
63 63
                     return $property->getName();
64 64
                 })
65 65
                 ->all();
Please login to merge, or discard this patch.
src/Views/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * @param  string|array  $name
53 53
      * @param  string|null   $component
54 54
      */
55
-    public function register($name, string $component= null): void
55
+    public function register($name, string $component = null): void
56 56
     {
57 57
         if (is_array($name)) {
58 58
             foreach ($name as $key => $class) {
Please login to merge, or discard this patch.
src/Auth/Providers/SessionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     protected function registerCustomSessionHandler(SessionManager $session): void
45 45
     {
46
-        $session->extend('arcanesoft', function (Container $app) {
46
+        $session->extend('arcanesoft', function(Container $app) {
47 47
             return new DatabaseSessionHandler($app->make(SessionsRepository::class), $app);
48 48
         });
49 49
     }
Please login to merge, or discard this patch.
src/Auth/Http/Routes/UsersRoutes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function map(): void
34 34
     {
35
-        $this->adminGroup(function () {
36
-            $this->name('users.')->prefix('users')->group(function () {
35
+        $this->adminGroup(function() {
36
+            $this->name('users.')->prefix('users')->group(function() {
37 37
                 // admin::auth.users.index
38 38
                 $this->get('/', [UsersController::class, 'index'])
39 39
                      ->name('index');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 $this->post('store', [UsersController::class, 'store'])
55 55
                      ->name('store');
56 56
 
57
-                $this->prefix('{'.static::USER_WILDCARD.'}')->group(function () {
57
+                $this->prefix('{'.static::USER_WILDCARD.'}')->group(function() {
58 58
                     // admin::auth.users.show
59 59
                     $this->get('/', [UsersController::class, 'show'])
60 60
                          ->name('show');
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function bindings(UsersRepository $repo): void
101 101
     {
102
-        $this->bind(static::USER_WILDCARD, function (string $uuid) use ($repo) {
102
+        $this->bind(static::USER_WILDCARD, function(string $uuid) use ($repo) {
103 103
             return $repo->firstWhereUuidOrFail($uuid);
104 104
         });
105 105
     }
Please login to merge, or discard this patch.