Commit 04e10a16 authored by Julie gauthier's avatar Julie gauthier

STYLE: format code by intelliJ

parent c5d85a11
<?php
namespace App\Controller\Api\V1;
use App\Controller\AppController;
......@@ -28,7 +29,7 @@ class LicenceTypesController extends AppController
/**
* View method
*
* @param string|null $id Licence Type id.
* @param string|null $id Licence Type id.
* @return void
* @throws NotFoundException When record not found.
*/
......@@ -37,7 +38,7 @@ class LicenceTypesController extends AppController
$licenceType = $this->LicenceTypes->get(
$id,
[
'contain' => []
'contain' => []
]
);
$this->set('licenceType', $licenceType);
......@@ -62,14 +63,14 @@ class LicenceTypesController extends AppController
$errors = $licenceType->errors();
}
}
$this->set(compact(['licenceType','errors']));
$this->set('_serialize', ['licenceType','errors']);
$this->set(compact(['licenceType', 'errors']));
$this->set('_serialize', ['licenceType', 'errors']);
}
/**
* Edit method
*
* @param string|null $id Licence Type id.
* @param string|null $id Licence Type id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -78,7 +79,7 @@ class LicenceTypesController extends AppController
$licenceType = $this->LicenceTypes->get(
$id,
[
'contain' => []
'contain' => []
]
);
if ($this->request->is(['patch', 'post', 'put'])) {
......@@ -97,7 +98,7 @@ class LicenceTypesController extends AppController
/**
* Delete method
*
* @param string|null $id Licence Type id.
* @param string|null $id Licence Type id.
* @return Response|null Redirects to index.
* @throws NotFoundException When record not found.
*/
......
......@@ -32,7 +32,7 @@ class LicensesController extends AppController
/**
* View method
*
* @param string|null $id License id.
* @param string|null $id License id.
* @return void
* @throws NotFoundException When record not found.
*/
......@@ -73,7 +73,7 @@ class LicensesController extends AppController
/**
* Edit method
*
* @param string|null $id License id.
* @param string|null $id License id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -102,7 +102,7 @@ class LicensesController extends AppController
/**
* Delete method
*
* @param string|null $id License id.
* @param string|null $id License id.
* @return Response|null Redirects to index.
* @throws NotFoundException When record not found.
*/
......
......@@ -35,7 +35,7 @@ class RawMetricsSoftwaresController extends AppController
/**
* View method
*
* @param string|null $id Raw Metrics Software id.
* @param string|null $id Raw Metrics Software id.
* @return Response|null
* @throws RecordNotFoundException When record not found.
*/
......@@ -80,7 +80,7 @@ class RawMetricsSoftwaresController extends AppController
/**
* Edit method
*
* @param string|null $id Raw Metrics Software id.
* @param string|null $id Raw Metrics Software id.
* @return Response|void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -112,7 +112,7 @@ class RawMetricsSoftwaresController extends AppController
/**
* Delete method
*
* @param string|null $id Raw Metrics Software id.
* @param string|null $id Raw Metrics Software id.
* @return Response|null Redirects to index.
* @throws RecordNotFoundException When record not found.
*/
......
......@@ -29,7 +29,7 @@ class RelationshipTypesController extends AppController
/**
* View method
*
* @param string|null $id Relationship Type id.
* @param string|null $id Relationship Type id.
* @return void
* @throws NotFoundException When record not found.
*/
......@@ -69,7 +69,7 @@ class RelationshipTypesController extends AppController
/**
* Edit method
*
* @param string|null $id Relationship Type id.
* @param string|null $id Relationship Type id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -97,7 +97,7 @@ class RelationshipTypesController extends AppController
/**
* Delete method
*
* @param string|null $id Relationship Type id.
* @param string|null $id Relationship Type id.
* @return Response|null Redirects to index.
* @throws NotFoundException When record not found.
*/
......
......@@ -34,7 +34,7 @@ class RelationshipsController extends AppController
/**
* View method
*
* @param string|null $id Relationship id.
* @param string|null $id Relationship id.
* @return void
* @throws NotFoundException When record not found.
*/
......@@ -77,7 +77,7 @@ class RelationshipsController extends AppController
/**
* Edit method
*
* @param string|null $id Relationship id.
* @param string|null $id Relationship id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -108,7 +108,7 @@ class RelationshipsController extends AppController
/**
* Delete method
*
* @param string|null $id Relationship id.
* @param string|null $id Relationship id.
* @return Response|null Redirects to index.
* @throws NotFoundException When record not found.
*/
......
......@@ -32,7 +32,7 @@ class RelationshipsUsersController extends AppController
/**
* View method
*
* @param string|null $id Relationships User id.
* @param string|null $id Relationships User id.
* @return void
* @throws NotFoundException When record not found.
*/
......@@ -74,7 +74,7 @@ class RelationshipsUsersController extends AppController
/**
* Edit method
*
* @param string|null $id Relationships User id.
* @param string|null $id Relationships User id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -104,7 +104,7 @@ class RelationshipsUsersController extends AppController
/**
* Delete method
*
* @param string|null $id Relationships User id.
* @param string|null $id Relationships User id.
* @return Response|null Redirects to index.
* @throws NotFoundException When record not found.
*/
......
......@@ -35,7 +35,7 @@ class SoftwaresTagsController extends AppController
/**
* View method
*
* @param string|null $id Softwares Tag id.
* @param string|null $id Softwares Tag id.
* @return Response|null
* @throws RecordNotFoundException When record not found.
*/
......@@ -79,7 +79,7 @@ class SoftwaresTagsController extends AppController
/**
* Edit method
*
* @param string|null $id Softwares Tag id.
* @param string|null $id Softwares Tag id.
* @return Response|void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -110,7 +110,7 @@ class SoftwaresTagsController extends AppController
/**
* Delete method
*
* @param string|null $id Softwares Tag id.
* @param string|null $id Softwares Tag id.
* @return Response|null Redirects to index.
* @throws RecordNotFoundException When record not found.
*/
......
......@@ -80,7 +80,7 @@ class TagsController extends AppController
}
/**
* @param Event $event
* @param Event $event
* @return Response|null|void
*/
public function beforeFilter(Event $event)
......@@ -100,7 +100,7 @@ class TagsController extends AppController
/**
* View method of a given tag
*
* @param string|null $id Tag id.
* @param string|null $id Tag id.
* @return Response|null
* @throws RecordNotFoundException When record not found.
*/
......@@ -160,7 +160,7 @@ class TagsController extends AppController
/**
* Edit method
*
* @param string|null $id Tag id.
* @param string|null $id Tag id.
* @return Response|void Redirects on successful edit, renders view otherwise.
* @throws NotFoundException When record not found.
*/
......@@ -186,7 +186,7 @@ class TagsController extends AppController
/**
* Delete method
*
* @param string|null $id Tag id.
* @param string|null $id Tag id.
* @return Response|null Redirects to index.
* @throws RecordNotFoundException When record not found.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment