fix: [internal] Code style

pull/8231/head
Jakub Onderka 2022-03-20 09:34:53 +01:00
parent ebef28b8cc
commit ec0fae0c94
5 changed files with 10 additions and 12 deletions

View File

@ -1,18 +1,16 @@
<?php
App::uses('AppController', 'Controller');
/**
* @property CryptographicKey $CryptographicKey
*/
class CryptographicKeysController extends AppController
{
public $components = array('Session', 'RequestHandler');
public function beforeFilter()
{
parent::beforeFilter();
}
public $paginate = array(
'limit' => 60,
'maxLimit' => 9999
'limit' => 60,
'maxLimit' => 9999
);
public function add($type, $parent_id)

View File

@ -17,6 +17,7 @@ App::uses('ProcessTool', 'Tools');
* @property ThreatLevel $ThreatLevel
* @property Sighting $Sighting
* @property Organisation $Org
* @property CryptographicKey $CryptographicKey
*/
class Event extends AppModel
{

View File

@ -13,7 +13,7 @@
}
$onClickParams = implode(',', $onClickParams);
$onClick = sprintf(
'onClick="%s%s"',
'onclick="%s%s"',
(empty($data['url'])) ? 'event.preventDefault();' : '',
(!empty($data['onClick']) ? sprintf(
'%s(%s)',
@ -54,4 +54,3 @@
empty($data['badge']) ? '' : sprintf('<span class="badge badge-%s">%s</span>', empty($data['badge']['type']) ? 'info' : $data['badge']['type'], h($data['badge']['text']))
);
}
?>

View File

@ -82,7 +82,7 @@
);
}
}
$ajaxLists = '<br/>';
$ajaxLists = '<br>';
if (!empty($children)) {
foreach ($children as $child) {
$ajaxLists .= $this->element(
@ -131,4 +131,4 @@
$appendHtml,
$ajax ? '' : $this->element('/genericElements/SideMenu/side_menu', $menuData)
);
?>

View File

@ -70,7 +70,7 @@
[
'key' => __('Contributors'),
'type' => 'custom',
'function' => function ($data) use($contributors, $baseurl, $event) {
'function' => function ($data) use ($contributors, $baseurl, $event) {
$contributorsContent = [];
foreach ($contributors as $organisationId => $name) {
$org = ['Organisation' => ['id' => $organisationId, 'name' => $name]];