Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/vendor/spatie/ray/src/Support/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/vendor/spatie/ray/src/Support/Counters.php
<?php

namespace Spatie\Ray\Support;

use Spatie\Ray\Ray;

class Counters
{
    /** @var array */
    protected $counters = [];

    public function increment(string $name): array
    {
        if (! isset($this->counters[$name])) {
            $this->counters[$name] = [ray(), 0];
        }

        [$ray, $times] = $this->counters[$name];

        $newTimes = $times + 1;

        $this->counters[$name] = [$ray, $newTimes];

        return [$ray, $newTimes];
    }

    public function get(string $name): int
    {
        if (! isset($this->counters[$name])) {
            return 0;
        }

        return $this->counters[$name][1];
    }

    public function clear(): void
    {
        $this->counters = [];
    }

    public function setRay(string $name, Ray $ray): void
    {
        $this->counters[$name][0] = $ray;
    }
}

Spamworldpro Mini