!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/testing/Constraints/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     NotSoftDeletedInDatabase.php (2.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Testing\Constraints;

use 
Illuminate\Database\Connection;
use 
PHPUnit\Framework\Constraint\Constraint;

class 
NotSoftDeletedInDatabase extends Constraint
{
    
/**
     * Number of records that will be shown in the console in case of failure.
     *
     * @var int
     */
    
protected $show 3;

    
/**
     * The database connection.
     *
     * @var \Illuminate\Database\Connection
     */
    
protected $database;

    
/**
     * The data that will be used to narrow the search in the database table.
     *
     * @var array
     */
    
protected $data;

    
/**
     * The name of the column that indicates soft deletion has occurred.
     *
     * @var string
     */
    
protected $deletedAtColumn;

    
/**
     * Create a new constraint instance.
     *
     * @param  \Illuminate\Database\Connection  $database
     * @param  array  $data
     * @param  string  $deletedAtColumn
     * @return void
     */
    
public function __construct(Connection $database, array $datastring $deletedAtColumn)
    {
        
$this->database $database;
        
$this->data $data;
        
$this->deletedAtColumn $deletedAtColumn;
    }

    
/**
     * Check if the data is found in the given table.
     *
     * @param  string  $table
     * @return bool
     */
    
public function matches($table): bool
    
{
        return 
$this->database->table($table)
                ->
where($this->data)
                ->
whereNull($this->deletedAtColumn)
                ->
count() > 0;
    }

    
/**
     * Get the description of the failure.
     *
     * @param  string  $table
     * @return string
     */
    
public function failureDescription($table): string
    
{
        return 
sprintf(
            
"any existing row in the table [%s] matches the attributes %s.\n\n%s",
            
$table$this->toString(), $this->getAdditionalInfo($table)
        );
    }

    
/**
     * Get additional info about the records found in the database table.
     *
     * @param  string  $table
     * @return string
     */
    
protected function getAdditionalInfo($table)
    {
        
$query $this->database->table($table);

        
$results $query->limit($this->show)->get();

        if (
$results->isEmpty()) {
            return 
'The table is empty';
        }

        
$description 'Found: '.json_encode($resultsJSON_PRETTY_PRINT);

        if (
$query->count() > $this->show) {
            
$description .= sprintf(' and %s others'$query->count() - $this->show);
        }

        return 
$description;
    }

    
/**
     * Get a string representation of the object.
     *
     * @return string
     */
    
public function toString(): string
    
{
        return 
json_encode($this->data);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]--