using new license header #124 (#119)

This commit is contained in:
Simon Schaufelberger
2018-02-03 18:23:47 +01:00
committed by Kevin Papst
parent 76d4cba596
commit 65790f1fb7
133 changed files with 160 additions and 701 deletions

View File

@@ -1,9 +1,5 @@
/*! /*
* Kimai Time-Tracking - kimai.scss * This file is part of the Kimai time-tracking app.
*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -22,7 +18,6 @@
li.messages-menu ul.menu li:hover .pull-left i { li.messages-menu ul.menu li:hover .pull-left i {
color: #dd4b39; color: #dd4b39;
} }
.navbar-nav>.messages-menu>.dropdown-menu>li .menu>li>a>p { .navbar-nav>.messages-menu>.dropdown-menu>li .menu>li>a>p {

View File

@@ -1,16 +1,12 @@
/*! /*
* Kimai Time-Tracking - kimai.js * This file is part of the Kimai time-tracking app.
*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
if (typeof jQuery === "undefined") { if (typeof jQuery === 'undefined') {
throw new Error("Kimai requires jQuery"); throw new Error('Kimai requires jQuery');
} }
/* kimai /* kimai

View File

@@ -1,9 +1,5 @@
/*! /*
* Kimai Time-Tracking - toolbar.js * This file is part of the Kimai time-tracking app.
*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"build/app.css": "/build/app.css?b19d130b5e32fad86127dbeb1d5212e6", "build/app.css": "/build/app.css?693b17f722072629aa711aa269697f8d",
"build/app.js": "/build/app.js?411ea6382536dd59a829", "build/app.js": "/build/app.js?a780ad21736af2959a4d",
"build/fonts/fontawesome-webfont.eot": "/build/fonts/fontawesome-webfont.eot?674f50d2", "build/fonts/fontawesome-webfont.eot": "/build/fonts/fontawesome-webfont.eot?674f50d2",
"build/fonts/fontawesome-webfont.ttf?v=4.7.0": "/build/fonts/fontawesome-webfont.ttf?b06871f2", "build/fonts/fontawesome-webfont.ttf?v=4.7.0": "/build/fonts/fontawesome-webfont.ttf?b06871f2",
"build/fonts/fontawesome-webfont.woff2?v=4.7.0": "/build/fonts/fontawesome-webfont.woff2?af7ae505", "build/fonts/fontawesome-webfont.woff2?v=4.7.0": "/build/fonts/fontawesome-webfont.woff2?af7ae505",

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -25,8 +23,6 @@ use Symfony\Component\Validator\Validator\ValidatorInterface;
/** /**
* Command used to create application user. * Command used to create application user.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CreateUserCommand extends Command class CreateUserCommand extends Command
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -34,8 +32,6 @@ use Symfony\Component\Validator\Validator\ValidatorInterface;
/** /**
* Command used to import data from a Kimai v1 installation. * Command used to import data from a Kimai v1 installation.
* Getting help in improving this script would be fantastic, it currently only handles the most basic use-cases. * Getting help in improving this script would be fantastic, it currently only handles the most basic use-cases.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class KimaiImporterCommand extends Command class KimaiImporterCommand extends Command
{ {
@@ -271,7 +267,8 @@ class KimaiImporterCommand extends Command
$bytesImported = memory_get_usage(true); $bytesImported = memory_get_usage(true);
$io->success('Memory usage: ' . PHP_EOL . $io->success(
'Memory usage: ' . PHP_EOL .
'Start: ' . $this->bytesHumanReadable($bytesStart) . PHP_EOL . 'Start: ' . $this->bytesHumanReadable($bytesStart) . PHP_EOL .
'After caching: ' . $this->bytesHumanReadable($bytesCached) . PHP_EOL . 'After caching: ' . $this->bytesHumanReadable($bytesCached) . PHP_EOL .
'After import: ' . $this->bytesHumanReadable($bytesImported) . PHP_EOL . 'After import: ' . $this->bytesHumanReadable($bytesImported) . PHP_EOL .
@@ -321,7 +318,7 @@ class KimaiImporterCommand extends Command
protected function deactivateLifecycleCallbacks(Connection $connection) protected function deactivateLifecycleCallbacks(Connection $connection)
{ {
$allListener = $connection->getEventManager()->getListeners(); $allListener = $connection->getEventManager()->getListeners();
foreach($allListener as $name => $listener) { foreach ($allListener as $name => $listener) {
if (in_array($name, ['prePersist', 'preUpdate'])) { if (in_array($name, ['prePersist', 'preUpdate'])) {
foreach ($listener as $service => $class) { foreach ($listener as $service => $class) {
if ($class === TimesheetSubscriber::class) { if ($class === TimesheetSubscriber::class) {
@@ -340,7 +337,7 @@ class KimaiImporterCommand extends Command
protected function bytesHumanReadable($size) protected function bytesHumanReadable($size)
{ {
$unit=array('b','kB','MB','GB'); $unit=array('b','kB','MB','GB');
return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[$i];
} }
/** /**
@@ -429,8 +426,7 @@ class KimaiImporterCommand extends Command
$counter = 0; $counter = 0;
$entityManager = $this->getDoctrine()->getManager(); $entityManager = $this->getDoctrine()->getManager();
foreach ($users as $oldUser) foreach ($users as $oldUser) {
{
$isActive = (bool)$oldUser['active'] && !(bool)$oldUser['trash'] && !(bool)$oldUser['ban']; $isActive = (bool)$oldUser['active'] && !(bool)$oldUser['trash'] && !(bool)$oldUser['ban'];
$role = ($oldUser['globalRoleID'] == 1) ? User::ROLE_SUPER_ADMIN : User::DEFAULT_ROLE; $role = ($oldUser['globalRoleID'] == 1) ? User::ROLE_SUPER_ADMIN : User::DEFAULT_ROLE;
@@ -503,8 +499,7 @@ class KimaiImporterCommand extends Command
$counter = 0; $counter = 0;
$entityManager = $this->getDoctrine()->getManager(); $entityManager = $this->getDoctrine()->getManager();
foreach ($customers as $oldCustomer) foreach ($customers as $oldCustomer) {
{
$isActive = (bool)$oldCustomer['visible'] && !(bool)$oldCustomer['trash']; $isActive = (bool)$oldCustomer['visible'] && !(bool)$oldCustomer['trash'];
$name = $oldCustomer['name']; $name = $oldCustomer['name'];
if (empty($name)) { if (empty($name)) {
@@ -573,8 +568,7 @@ class KimaiImporterCommand extends Command
$counter = 0; $counter = 0;
$entityManager = $this->getDoctrine()->getManager(); $entityManager = $this->getDoctrine()->getManager();
foreach ($projects as $oldProject) foreach ($projects as $oldProject) {
{
$isActive = (bool)$oldProject['visible'] && !(bool)$oldProject['trash']; $isActive = (bool)$oldProject['visible'] && !(bool)$oldProject['trash'];
$customer = $this->customers[$oldProject['customerID']]; $customer = $this->customers[$oldProject['customerID']];
$name = $oldProject['name']; $name = $oldProject['name'];
@@ -641,15 +635,12 @@ class KimaiImporterCommand extends Command
$counter = 0; $counter = 0;
$entityManager = $this->getDoctrine()->getManager(); $entityManager = $this->getDoctrine()->getManager();
$oldActivityMapping = []; $oldActivityMapping = [];
foreach ($activityToProject as $mapping) foreach ($activityToProject as $mapping) {
{
$oldActivityMapping[$mapping['activityID']] = $mapping['projectID']; $oldActivityMapping[$mapping['activityID']] = $mapping['projectID'];
} }
foreach ($activities as $oldActivity) foreach ($activities as $oldActivity) {
{ if (isset($oldActivityMapping[$oldActivity['activityID']])) {
if (isset($oldActivityMapping[$oldActivity['activityID']]))
{
$projectId = $oldActivityMapping[$oldActivity['activityID']]; $projectId = $oldActivityMapping[$oldActivity['activityID']];
$project = null; $project = null;
@@ -756,8 +747,7 @@ class KimaiImporterCommand extends Command
$activityCounter = 0; $activityCounter = 0;
$entityManager = $this->getDoctrine()->getManager(); $entityManager = $this->getDoctrine()->getManager();
foreach ($records as $oldRecord) foreach ($records as $oldRecord) {
{
$activity = null; $activity = null;
$project = null; $project = null;
$activityId = $oldRecord['activityID']; $activityId = $oldRecord['activityID'];

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -21,8 +19,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
/** /**
* Command used to execute all the basic application bootstrapping AFTER "composer install" was executed. * Command used to execute all the basic application bootstrapping AFTER "composer install" was executed.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ResetCommand extends Command class ResetCommand extends Command
{ {
@@ -35,7 +31,8 @@ class ResetCommand extends Command
$this $this
->setName('kimai:reset-dev') ->setName('kimai:reset-dev')
->setDescription('Resets the dev environment') ->setDescription('Resets the dev environment')
->setHelp(<<<EOT ->setHelp(
<<<EOT
This command will drop and re-create the database and its schemas, load development fixtures and clear the cache. This command will drop and re-create the database and its schemas, load development fixtures and clear the cache.
Use the <info>-n</info> switch to skip the question. Use the <info>-n</info> switch to skip the question.
EOT EOT

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
/** /**
* Command used to check the project coding styles. * Command used to check the project coding styles.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class RunCodeSnifferCommand extends Command class RunCodeSnifferCommand extends Command
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
/** /**
* Command used to run all integration tests. * Command used to run all integration tests.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class RunIntegrationTestsCommand extends RunUnitTestsCommand class RunIntegrationTestsCommand extends RunUnitTestsCommand
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
/** /**
* Command used to run all unit tests. * Command used to run all unit tests.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class RunUnitTestsCommand extends Command class RunUnitTestsCommand extends Command
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
/** /**
* The abstract base controller. * The abstract base controller.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
abstract class AbstractController extends Controller abstract class AbstractController extends Controller
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -22,8 +20,6 @@ use App\Repository\ActivityRepository;
* *
* @Route("/activity") * @Route("/activity")
* @Security("has_role('ROLE_USER')") * @Security("has_role('ROLE_USER')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityController extends Controller class ActivityController extends Controller
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -29,8 +27,6 @@ use App\Repository\Query\ActivityQuery;
* @Route("/admin/activity") * @Route("/admin/activity")
* @Security("has_role('ROLE_ADMIN')") * @Security("has_role('ROLE_ADMIN')")
* @Security("is_granted('IS_AUTHENTICATED_FULLY')") * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityController extends AbstractController class ActivityController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -28,8 +26,6 @@ use App\Repository\Query\CustomerQuery;
* @Route("/admin/customer") * @Route("/admin/customer")
* @Security("has_role('ROLE_ADMIN')") * @Security("has_role('ROLE_ADMIN')")
* @Security("is_granted('IS_AUTHENTICATED_FULLY')") * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CustomerController extends AbstractController class CustomerController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -30,8 +28,6 @@ use App\Repository\Query\ProjectQuery;
* @Route("/admin/project") * @Route("/admin/project")
* @Security("has_role('ROLE_ADMIN')") * @Security("has_role('ROLE_ADMIN')")
* @Security("is_granted('IS_AUTHENTICATED_FULLY')") * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProjectController extends AbstractController class ProjectController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -30,8 +28,6 @@ use App\Form\TimesheetAdminForm;
* @Route("/team/timesheet") * @Route("/team/timesheet")
* @Security("has_role('ROLE_TEAMLEAD')") * @Security("has_role('ROLE_TEAMLEAD')")
* @Security("is_granted('IS_AUTHENTICATED_FULLY')") * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetController extends AbstractController class TimesheetController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -28,8 +26,6 @@ use Symfony\Component\HttpFoundation\Request;
* @Route("/admin/user") * @Route("/admin/user")
* @Security("has_role('ROLE_SUPER_ADMIN')") * @Security("has_role('ROLE_SUPER_ADMIN')")
* @Security("is_granted('IS_AUTHENTICATED_FULLY')") * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserController extends AbstractController class UserController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -26,8 +24,6 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
* *
* @Route("/dashboard") * @Route("/dashboard")
* @Security("has_role('ROLE_USER')") * @Security("has_role('ROLE_USER')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class DashboardController extends Controller class DashboardController extends Controller
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -30,8 +28,6 @@ use Symfony\Component\HttpFoundation\Request;
* *
* @Route("/invoice") * @Route("/invoice")
* @Security("has_role('ROLE_TEAMLEAD')") * @Security("has_role('ROLE_TEAMLEAD')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceController extends AbstractController class InvoiceController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -30,8 +28,6 @@ use Symfony\Component\HttpFoundation\Request;
* *
* @Route("/profile") * @Route("/profile")
* @Security("has_role('ROLE_USER')") * @Security("has_role('ROLE_USER')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProfileController extends AbstractController class ProfileController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
* Sidebar controller * Sidebar controller
* *
* @Security("has_role('ROLE_USER')") * @Security("has_role('ROLE_USER')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class SidebarController extends AbstractController class SidebarController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -29,8 +27,6 @@ use App\Form\TimesheetEditForm;
* *
* @Route("/timesheet") * @Route("/timesheet")
* @Security("has_role('ROLE_USER')") * @Security("has_role('ROLE_USER')")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetController extends AbstractController class TimesheetController extends AbstractController
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use App\Repository\TimesheetRepository;
/** /**
* Helper functions for Timesheet controller * Helper functions for Timesheet controller
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
trait TimesheetControllerTrait trait TimesheetControllerTrait
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -23,8 +21,6 @@ use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
* *
* Execute this command to load the data: * Execute this command to load the data:
* $ php bin/console doctrine:fixtures:load * $ php bin/console doctrine:fixtures:load
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class AppFixtures extends Fixture class AppFixtures extends Fixture
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\DataFixtures;
/** /**
* Defines reusable sample data. * Defines reusable sample data.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
trait FixturesTrait trait FixturesTrait
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -21,8 +19,6 @@ use Doctrine\Common\Persistence\ObjectManager;
* *
* Execute this command to load the data: * Execute this command to load the data:
* $ php bin/console doctrine:fixtures:load * $ php bin/console doctrine:fixtures:load
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceFixtures extends Fixture class InvoiceFixtures extends Fixture
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -25,8 +23,6 @@ use Doctrine\Common\Persistence\ObjectManager;
* *
* Execute this command to load the data: * Execute this command to load the data:
* $ php bin/console doctrine:fixtures:load * $ php bin/console doctrine:fixtures:load
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetFixtures extends Fixture class TimesheetFixtures extends Fixture
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/** /**
* This is the class that loads and manages your bundle configuration * This is the class that loads and manages your bundle configuration
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class AppExtension extends Extension class AppExtension extends Extension
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\Yaml\Yaml;
/** /**
* Dynamically loads additional doctrine functions for the configured database engine. * Dynamically loads additional doctrine functions for the configured database engine.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class DoctrineCompilerPass implements CompilerPassInterface class DoctrineCompilerPass implements CompilerPassInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
/** /**
* This is the class that validates and merges configuration from your app/config files * This is the class that validates and merges configuration from your app/config files
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Configuration implements ConfigurationInterface class Configuration implements ConfigurationInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use Doctrine\Common\EventSubscriber;
/** /**
* Adds a prefix to every doctrine entity AKA database table * Adds a prefix to every doctrine entity AKA database table
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TablePrefixSubscriber implements EventSubscriber class TablePrefixSubscriber implements EventSubscriber
{ {
@@ -47,7 +43,7 @@ class TablePrefixSubscriber implements EventSubscriber
if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY
// Check if "joinTable" exists: // Check if "joinTable" exists:
// it can be null if this field is the reverse side of a ManyToMany relationship // it can be null if this field is the reverse side of a ManyToMany relationship
&& array_key_exists('name', $classMetadata->associationMappings[$fieldName]['joinTable']) ) { && array_key_exists('name', $classMetadata->associationMappings[$fieldName]['joinTable'])) {
$mappedTableName = $classMetadata->associationMappings[$fieldName]['joinTable']['name']; $mappedTableName = $classMetadata->associationMappings[$fieldName]['joinTable']['name'];
$classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $this->prefix . $mappedTableName; $classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $this->prefix . $mappedTableName;
} }

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use App\Entity\Timesheet;
/** /**
* A listener to make sure all Timesheet entries will have a proper duration. * A listener to make sure all Timesheet entries will have a proper duration.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetSubscriber implements EventSubscriber class TimesheetSubscriber implements EventSubscriber
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use Symfony\Component\Validator\Constraints as Assert;
* *
* @ORM\Table(name="activities") * @ORM\Table(name="activities")
* @ORM\Entity(repositoryClass="App\Repository\ActivityRepository") * @ORM\Entity(repositoryClass="App\Repository\ActivityRepository")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Activity class Activity
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use Symfony\Component\Validator\Constraints as Assert;
* *
* @ORM\Table(name="customers") * @ORM\Table(name="customers")
* @ORM\Entity(repositoryClass="App\Repository\CustomerRepository") * @ORM\Entity(repositoryClass="App\Repository\CustomerRepository")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Customer class Customer
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -24,8 +22,6 @@ use Symfony\Component\Validator\Constraints as Assert;
* @ORM\UniqueConstraint(columns={"name"}) * @ORM\UniqueConstraint(columns={"name"})
* } * }
* ) * )
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceTemplate class InvoiceTemplate
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use Symfony\Component\Validator\Constraints as Assert;
* *
* @ORM\Table(name="projects") * @ORM\Table(name="projects")
* @ORM\Entity(repositoryClass="App\Repository\ProjectRepository") * @ORM\Entity(repositoryClass="App\Repository\ProjectRepository")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Project class Project
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -27,8 +25,6 @@ use Symfony\Component\Validator\Constraints as Assert;
* ) * )
* @ORM\Entity(repositoryClass="App\Repository\TimesheetRepository") * @ORM\Entity(repositoryClass="App\Repository\TimesheetRepository")
* @ORM\HasLifecycleCallbacks() * @ORM\HasLifecycleCallbacks()
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Timesheet class Timesheet
{ {

View File

@@ -24,12 +24,9 @@ use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
* ) * )
* @UniqueEntity("username") * @UniqueEntity("username")
* @UniqueEntity("email") * @UniqueEntity("email")
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class User implements UserInterface, AdvancedUserInterface class User implements UserInterface, AdvancedUserInterface
{ {
const ROLE_CUSTOMER = 'ROLE_CUSTOMER'; const ROLE_CUSTOMER = 'ROLE_CUSTOMER';
const ROLE_USER = 'ROLE_USER'; const ROLE_USER = 'ROLE_USER';
const ROLE_TEAMLEAD = 'ROLE_TEAMLEAD'; const ROLE_TEAMLEAD = 'ROLE_TEAMLEAD';

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -15,8 +13,6 @@ use Avanzu\AdminThemeBundle\Model\MenuItemModel;
/** /**
* The ConfigureAdminMenuEvent is used for populating the administration navigation. * The ConfigureAdminMenuEvent is used for populating the administration navigation.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ConfigureAdminMenuEvent extends ConfigureMenuEvent class ConfigureAdminMenuEvent extends ConfigureMenuEvent
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Event;
/** /**
* The ConfigureMainMenuEvent is used for populating the main navigation. * The ConfigureMainMenuEvent is used for populating the main navigation.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ConfigureMainMenuEvent extends ConfigureMenuEvent class ConfigureMainMenuEvent extends ConfigureMenuEvent
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
/** /**
* The ConfigureMenuEvent is used for populating navigations. * The ConfigureMenuEvent is used for populating navigations.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
abstract class ConfigureMenuEvent extends Event abstract class ConfigureMenuEvent extends Event
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,11 +14,10 @@ use App\Entity\UserPreference;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
/** /**
* @author Kevin Papst <kevin@kevinpapst.de> * Class UserPreferenceEvent
*/ */
class UserPreferenceEvent extends Event class UserPreferenceEvent extends Event
{ {
const CONFIGURE = 'app.user_preferences'; const CONFIGURE = 'app.user_preferences';
/** /**

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -21,8 +19,6 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
/** /**
* Class MenuBuilder configures the main navigation. * Class MenuBuilder configures the main navigation.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class MenuBuilderSubscriber implements EventSubscriberInterface class MenuBuilderSubscriber implements EventSubscriberInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -20,8 +18,6 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
/** /**
* Menu event subscriber for timesheet, customer, projects, activities. * Menu event subscriber for timesheet, customer, projects, activities.
* This is a sample implementation for developer who want to add new navigation entries in their bundles. * This is a sample implementation for developer who want to add new navigation entries in their bundles.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class MenuSubscriber implements EventSubscriberInterface class MenuSubscriber implements EventSubscriberInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
/** /**
* Class NavbarShowUserSubscriber * Class NavbarShowUserSubscriber
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class NavbarShowUserSubscriber implements EventSubscriberInterface class NavbarShowUserSubscriber implements EventSubscriberInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -20,7 +18,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
/** /**
* @author Kevin Papst <kevin@kevinpapst.de> * Class ThemeOptionsSubscriber
*/ */
class ThemeOptionsSubscriber implements EventSubscriberInterface class ThemeOptionsSubscriber implements EventSubscriberInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -25,7 +23,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
use Symfony\Component\Validator\Constraints\Range; use Symfony\Component\Validator\Constraints\Range;
/** /**
* @author Kevin Papst <kevin@kevinpapst.de> * Class UserPreferenceSubscriber
*/ */
class UserPreferenceSubscriber implements EventSubscriberInterface class UserPreferenceSubscriber implements EventSubscriberInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -23,8 +21,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to manipulate Activities. * Defines the form used to manipulate Activities.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityEditForm extends AbstractType class ActivityEditForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -27,8 +25,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to edit Customer entities. * Defines the form used to edit Customer entities.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CustomerEditForm extends AbstractType class CustomerEditForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -24,8 +22,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to manipulate invoice templates. * Defines the form used to manipulate invoice templates.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceTemplateForm extends AbstractType class InvoiceTemplateForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -25,8 +23,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to edit Projects. * Defines the form used to edit Projects.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProjectEditForm extends AbstractType class ProjectEditForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use Symfony\Component\Form\FormBuilderInterface;
/** /**
* Defines the form used to administrate Timesheet entries. * Defines the form used to administrate Timesheet entries.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetAdminForm extends TimesheetEditForm class TimesheetAdminForm extends TimesheetEditForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -24,8 +22,6 @@ use App\Repository\ActivityRepository;
/** /**
* Defines the form used to manipulate Timesheet entries. * Defines the form used to manipulate Timesheet entries.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetEditForm extends AbstractType class TimesheetEditForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -32,8 +30,6 @@ use Symfony\Component\Form\FormEvents;
* Defines the base form used for all toolbars. * Defines the base form used for all toolbars.
* *
* Extend this class and stack the elements defined here, they are coupled to each other and with the toolbar.js. * Extend this class and stack the elements defined here, they are coupled to each other and with the toolbar.js.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
abstract class AbstractToolbarForm extends AbstractType abstract class AbstractToolbarForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use App\Repository\Query\ActivityQuery;
/** /**
* Defines the form used for filtering the activities. * Defines the form used for filtering the activities.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityToolbarForm extends AbstractToolbarForm class ActivityToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use App\Repository\Query\CustomerQuery;
/** /**
* Defines the form used for filtering the customer. * Defines the form used for filtering the customer.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CustomerToolbarForm extends AbstractToolbarForm class CustomerToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used for filtering timesheet entries for invoices. * Defines the form used for filtering timesheet entries for invoices.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceToolbarForm extends AbstractToolbarForm class InvoiceToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use App\Repository\Query\ProjectQuery;
/** /**
* Defines the form used for filtering the projects. * Defines the form used for filtering the projects.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProjectToolbarForm extends AbstractToolbarForm class ProjectToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -15,8 +13,6 @@ use Symfony\Component\Form\FormBuilderInterface;
/** /**
* Defines the form used for filtering the admin timesheet. * Defines the form used for filtering the admin timesheet.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetAdminToolbarForm extends TimesheetToolbarForm class TimesheetAdminToolbarForm extends TimesheetToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use App\Repository\Query\TimesheetQuery;
/** /**
* Defines the form used for filtering the timesheet. * Defines the form used for filtering the timesheet.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetToolbarForm extends AbstractToolbarForm class TimesheetToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used for filtering the user. * Defines the form used for filtering the user.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserToolbarForm extends AbstractToolbarForm class UserToolbarForm extends AbstractToolbarForm
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -15,8 +13,6 @@ use App\Entity\Activity;
/** /**
* Custom form field type to select an activity which are grouped by their Projects, preceeded by their customer names. * Custom form field type to select an activity which are grouped by their Projects, preceeded by their customer names.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityGroupedWithCustomerNameType extends ActivityType class ActivityGroupedWithCustomerNameType extends ActivityType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use App\Repository\ActivityRepository;
/** /**
* Custom form field type to select an activity. * Custom form field type to select an activity.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityType extends AbstractType class ActivityType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use App\Repository\Query\CustomerQuery;
/** /**
* Custom form field type to select a customer. * Custom form field type to select a customer.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CustomerType extends AbstractType class CustomerType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select an invoice calculator. * Custom form field type to select an invoice calculator.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceCalculatorType extends AbstractType class InvoiceCalculatorType extends AbstractType
{ {
@@ -50,7 +46,7 @@ class InvoiceCalculatorType extends AbstractType
$resolver->setDefaults([ $resolver->setDefaults([
'label' => 'label.invoice_calculator', 'label' => 'label.invoice_calculator',
'choices' => $renderer, 'choices' => $renderer,
'choice_label' => function($renderer) { 'choice_label' => function ($renderer) {
return 'invoice_calculator.' . $renderer; return 'invoice_calculator.' . $renderer;
} }
]); ]);

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select an invoice number generator. * Custom form field type to select an invoice number generator.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceNumberGeneratorType extends AbstractType class InvoiceNumberGeneratorType extends AbstractType
{ {
@@ -50,7 +46,7 @@ class InvoiceNumberGeneratorType extends AbstractType
$resolver->setDefaults([ $resolver->setDefaults([
'label' => 'label.invoice_number_generator', 'label' => 'label.invoice_number_generator',
'choices' => $renderer, 'choices' => $renderer,
'choice_label' => function($renderer) { 'choice_label' => function ($renderer) {
return 'invoice_number_generator.' . $renderer; return 'invoice_number_generator.' . $renderer;
} }
]); ]);

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select an invoice renderer. * Custom form field type to select an invoice renderer.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceRendererType extends AbstractType class InvoiceRendererType extends AbstractType
{ {
@@ -50,7 +46,7 @@ class InvoiceRendererType extends AbstractType
$resolver->setDefaults([ $resolver->setDefaults([
'label' => 'label.invoice_renderer', 'label' => 'label.invoice_renderer',
'choices' => $renderer, 'choices' => $renderer,
'choice_label' => function($renderer) { 'choice_label' => function ($renderer) {
return 'invoice_renderer.' . $renderer; return 'invoice_renderer.' . $renderer;
} }
]); ]);

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select an invoice template. * Custom form field type to select an invoice template.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceTemplateType extends AbstractType class InvoiceTemplateType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select the language. * Custom form field type to select the language.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class LanguageType extends AbstractType class LanguageType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select a page size. * Custom form field type to select a page size.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class PageSizeType extends AbstractType class PageSizeType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use App\Repository\ProjectRepository;
/** /**
* Custom form field type to select a project. * Custom form field type to select a project.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProjectType extends AbstractType class ProjectType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select the themes skin. * Custom form field type to select the themes skin.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class SkinType extends AbstractType class SkinType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -22,8 +20,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to edit a user preference. * Custom form field type to edit a user preference.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserPreferenceType extends AbstractType class UserPreferenceType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select a user role. * Custom form field type to select a user role.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserRoleType extends AbstractType class UserRoleType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select a user. * Custom form field type to select a user.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserType extends AbstractType class UserType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select a visibility. * Custom form field type to select a visibility.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class VisibilityType extends AbstractType class VisibilityType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Symfony package. * This file is part of the Kimai time-tracking app.
*
* (c) Fabien Potencier <fabien@symfony.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -17,8 +15,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Custom form field type to select between Yes and No. * Custom form field type to select between Yes and No.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class YesNoType extends AbstractType class YesNoType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -18,8 +16,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to create Users. * Defines the form used to create Users.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserCreateType extends UserEditType class UserCreateType extends UserEditType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -21,8 +19,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to edit the profile of a User. * Defines the form used to edit the profile of a User.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserEditType extends AbstractType class UserEditType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -20,8 +18,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to create and manipulate Users. * Defines the form used to create and manipulate Users.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserPasswordType extends AbstractType class UserPasswordType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -20,8 +18,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to edit the user preferences. * Defines the form used to edit the user preferences.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserPreferencesForm extends AbstractType class UserPreferencesForm extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* Defines the form used to set roles for a User. * Defines the form used to set roles for a User.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserRolesType extends AbstractType class UserRolesType extends AbstractType
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use App\Model\InvoiceModel;
/** /**
* CalculatorInterface defines all methods for any invoice price calculator. * CalculatorInterface defines all methods for any invoice price calculator.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
interface CalculatorInterface interface CalculatorInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use App\Model\InvoiceModel;
/** /**
* Class DateNumberGenerator generates the invoice number based on the current day. * Class DateNumberGenerator generates the invoice number based on the current day.
* It will create duplicate IDs if you create multiple invoices per day. * It will create duplicate IDs if you create multiple invoices per day.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class DateNumberGenerator implements NumberGeneratorInterface class DateNumberGenerator implements NumberGeneratorInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -19,8 +17,6 @@ use App\Model\InvoiceModel;
* - the customers currency * - the customers currency
* - the invoice template vat rate * - the invoice template vat rate
* - the entries rate * - the entries rate
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class DefaultCalculator implements CalculatorInterface class DefaultCalculator implements CalculatorInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -15,8 +13,6 @@ use App\Model\InvoiceModel;
/** /**
* Class NumberGeneratorInterface defines all methods that invoice number generator have to implement. * Class NumberGeneratorInterface defines all methods that invoice number generator have to implement.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
interface NumberGeneratorInterface interface NumberGeneratorInterface
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ namespace App\Invoice;
* - invoice number generator * - invoice number generator
* - invoice sum calculator * - invoice sum calculator
* - template renderer * - template renderer
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ServiceInvoice class ServiceInvoice
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -16,8 +14,6 @@ use App\Entity\Timesheet;
/** /**
* A calculator that sums up all timesheet records from the model and returns only one * A calculator that sums up all timesheet records from the model and returns only one
* entry for a compact invoice version. * entry for a compact invoice version.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ShortInvoiceCalculator extends DefaultCalculator class ShortInvoiceCalculator extends DefaultCalculator
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model;
/** /**
* Activity statistics * Activity statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ActivityStatistic class ActivityStatistic
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model;
/** /**
* Customer statistics * Customer statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class CustomerStatistic class CustomerStatistic
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -22,8 +20,6 @@ use App\Repository\Query\InvoiceQuery;
/** /**
* Class InvoiceModel is the ONLY value that a renderer template receives for generating the invoice. * Class InvoiceModel is the ONLY value that a renderer template receives for generating the invoice.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class InvoiceModel class InvoiceModel
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model;
/** /**
* Project statistics * Project statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class ProjectStatistic class ProjectStatistic
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model\Statistic;
/** /**
* Yearly statistics * Yearly statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Month class Month
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model\Statistic;
/** /**
* Yearly statistics * Yearly statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class Year class Year
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model;
/** /**
* Timesheet statistics for all user. * Timesheet statistics for all user.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetGlobalStatistic extends TimesheetStatistic class TimesheetGlobalStatistic extends TimesheetStatistic
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -15,8 +13,6 @@ use \DateTime;
/** /**
* Timesheet statistics for one user. * Timesheet statistics for one user.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class TimesheetStatistic class TimesheetStatistic
{ {

View File

@@ -1,9 +1,7 @@
<?php <?php
/* /*
* This file is part of the Kimai package. * This file is part of the Kimai time-tracking app.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
@@ -13,8 +11,6 @@ namespace App\Model;
/** /**
* User statistics * User statistics
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/ */
class UserStatistic class UserStatistic
{ {

Some files were not shown because too many files have changed in this diff Show More