Minor fixes, coding standards
This commit is contained in:
@@ -52,7 +52,7 @@ class ApplicationClients
|
||||
|
||||
public static function dissociateApplications($client_id, $applications)
|
||||
{
|
||||
$client_name = \App\Repositories\Clients::getName($client_id);
|
||||
$client_name = Clients::getName($client_id);
|
||||
foreach ($applications as $key => $application_id) {
|
||||
self::dissociateApplication($client_id, $application_id);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Core\App;
|
||||
|
||||
use App\Models\Core\App\ApplicationModule;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
class ApplicationModules
|
||||
{
|
||||
public static function select_all()
|
||||
|
||||
@@ -11,7 +11,6 @@ class ApplicationPages
|
||||
return $app ? $app->toArray() : null;
|
||||
}
|
||||
|
||||
// récupère toutes les pages actives pour une application
|
||||
public static function getActiveByApplication($application_id)
|
||||
{
|
||||
$app = ApplicationPage::active()->byApplication($application_id)->get();
|
||||
|
||||
@@ -10,11 +10,10 @@ class Arrays
|
||||
if (is_array($value)) {
|
||||
$array[$key] = self::changeKeyName($value, $newkey, $oldkey);
|
||||
} else {
|
||||
$array[$newkey] = $array[$oldkey];
|
||||
$array[$newkey] = $array[$oldkey];
|
||||
}
|
||||
}
|
||||
unset($array[$oldkey]);
|
||||
return $array;
|
||||
return $array;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -95,5 +95,4 @@ class Medias
|
||||
|
||||
return "/storage/$id/conversions/$filename";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user