mirror of https://github.com/MISP/MISP
fix: [internal] Code style
parent
ebef28b8cc
commit
ec0fae0c94
|
@ -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)
|
||||
|
|
|
@ -17,6 +17,7 @@ App::uses('ProcessTool', 'Tools');
|
|||
* @property ThreatLevel $ThreatLevel
|
||||
* @property Sighting $Sighting
|
||||
* @property Organisation $Org
|
||||
* @property CryptographicKey $CryptographicKey
|
||||
*/
|
||||
class Event extends AppModel
|
||||
{
|
||||
|
|
|
@ -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']))
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
?>
|
||||
|
||||
|
|
|
@ -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]];
|
||||
|
|
Loading…
Reference in New Issue