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 package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -22,7 +18,6 @@
li.messages-menu ul.menu li:hover .pull-left i {
color: #dd4b39;
}
.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 package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (typeof jQuery === "undefined") {
throw new Error("Kimai requires jQuery");
if (typeof jQuery === 'undefined') {
throw new Error('Kimai requires jQuery');
}
/* kimai

View File

@@ -1,9 +1,5 @@
/*!
* Kimai Time-Tracking - toolbar.js
*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.js": "/build/app.js?411ea6382536dd59a829",
"build/app.css": "/build/app.css?693b17f722072629aa711aa269697f8d",
"build/app.js": "/build/app.js?a780ad21736af2959a4d",
"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.woff2?v=4.7.0": "/build/fonts/fontawesome-webfont.woff2?af7ae505",

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
* 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
{
@@ -271,7 +267,8 @@ class KimaiImporterCommand extends Command
$bytesImported = memory_get_usage(true);
$io->success('Memory usage: ' . PHP_EOL .
$io->success(
'Memory usage: ' . PHP_EOL .
'Start: ' . $this->bytesHumanReadable($bytesStart) . PHP_EOL .
'After caching: ' . $this->bytesHumanReadable($bytesCached) . PHP_EOL .
'After import: ' . $this->bytesHumanReadable($bytesImported) . PHP_EOL .
@@ -321,7 +318,7 @@ class KimaiImporterCommand extends Command
protected function deactivateLifecycleCallbacks(Connection $connection)
{
$allListener = $connection->getEventManager()->getListeners();
foreach($allListener as $name => $listener) {
foreach ($allListener as $name => $listener) {
if (in_array($name, ['prePersist', 'preUpdate'])) {
foreach ($listener as $service => $class) {
if ($class === TimesheetSubscriber::class) {
@@ -340,7 +337,7 @@ class KimaiImporterCommand extends Command
protected function bytesHumanReadable($size)
{
$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;
$entityManager = $this->getDoctrine()->getManager();
foreach ($users as $oldUser)
{
foreach ($users as $oldUser) {
$isActive = (bool)$oldUser['active'] && !(bool)$oldUser['trash'] && !(bool)$oldUser['ban'];
$role = ($oldUser['globalRoleID'] == 1) ? User::ROLE_SUPER_ADMIN : User::DEFAULT_ROLE;
@@ -503,8 +499,7 @@ class KimaiImporterCommand extends Command
$counter = 0;
$entityManager = $this->getDoctrine()->getManager();
foreach ($customers as $oldCustomer)
{
foreach ($customers as $oldCustomer) {
$isActive = (bool)$oldCustomer['visible'] && !(bool)$oldCustomer['trash'];
$name = $oldCustomer['name'];
if (empty($name)) {
@@ -573,8 +568,7 @@ class KimaiImporterCommand extends Command
$counter = 0;
$entityManager = $this->getDoctrine()->getManager();
foreach ($projects as $oldProject)
{
foreach ($projects as $oldProject) {
$isActive = (bool)$oldProject['visible'] && !(bool)$oldProject['trash'];
$customer = $this->customers[$oldProject['customerID']];
$name = $oldProject['name'];
@@ -641,15 +635,12 @@ class KimaiImporterCommand extends Command
$counter = 0;
$entityManager = $this->getDoctrine()->getManager();
$oldActivityMapping = [];
foreach ($activityToProject as $mapping)
{
foreach ($activityToProject as $mapping) {
$oldActivityMapping[$mapping['activityID']] = $mapping['projectID'];
}
foreach ($activities as $oldActivity)
{
if (isset($oldActivityMapping[$oldActivity['activityID']]))
{
foreach ($activities as $oldActivity) {
if (isset($oldActivityMapping[$oldActivity['activityID']])) {
$projectId = $oldActivityMapping[$oldActivity['activityID']];
$project = null;
@@ -756,8 +747,7 @@ class KimaiImporterCommand extends Command
$activityCounter = 0;
$entityManager = $this->getDoctrine()->getManager();
foreach ($records as $oldRecord)
{
foreach ($records as $oldRecord) {
$activity = null;
$project = null;
$activityId = $oldRecord['activityID'];

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ResetCommand extends Command
{
@@ -35,7 +31,8 @@ class ResetCommand extends Command
$this
->setName('kimai:reset-dev')
->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.
Use the <info>-n</info> switch to skip the question.
EOT

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class RunCodeSnifferCommand extends Command
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class RunIntegrationTestsCommand extends RunUnitTestsCommand
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class RunUnitTestsCommand extends Command
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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:
* $ php bin/console doctrine:fixtures:load
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class AppFixtures extends Fixture
{

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class AppExtension extends Extension
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class DoctrineCompilerPass implements CompilerPassInterface
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class Configuration implements ConfigurationInterface
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class TablePrefixSubscriber implements EventSubscriber
{
@@ -47,7 +43,7 @@ class TablePrefixSubscriber implements EventSubscriber
if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY
// Check if "joinTable" exists:
// 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'];
$classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $this->prefix . $mappedTableName;
}

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class TimesheetSubscriber implements EventSubscriber
{

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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\HasLifecycleCallbacks()
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class Timesheet
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ConfigureAdminMenuEvent extends ConfigureMenuEvent
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
abstract class ConfigureMenuEvent extends Event
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class MenuBuilderSubscriber implements EventSubscriberInterface
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
* 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
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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;
/**
* @author Kevin Papst <kevin@kevinpapst.de>
* Class ThemeOptionsSubscriber
*/
class ThemeOptionsSubscriber implements EventSubscriberInterface
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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;
/**
* @author Kevin Papst <kevin@kevinpapst.de>
* Class UserPreferenceSubscriber
*/
class UserPreferenceSubscriber implements EventSubscriberInterface
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class CustomerEditForm extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceTemplateForm extends AbstractType
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class TimesheetAdminForm extends TimesheetEditForm
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* 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
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ActivityToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class CustomerToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ProjectToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class TimesheetAdminToolbarForm extends TimesheetToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class TimesheetToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserToolbarForm extends AbstractToolbarForm
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ActivityGroupedWithCustomerNameType extends ActivityType
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class CustomerType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceCalculatorType extends AbstractType
{
@@ -50,7 +46,7 @@ class InvoiceCalculatorType extends AbstractType
$resolver->setDefaults([
'label' => 'label.invoice_calculator',
'choices' => $renderer,
'choice_label' => function($renderer) {
'choice_label' => function ($renderer) {
return 'invoice_calculator.' . $renderer;
}
]);

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceNumberGeneratorType extends AbstractType
{
@@ -50,7 +46,7 @@ class InvoiceNumberGeneratorType extends AbstractType
$resolver->setDefaults([
'label' => 'label.invoice_number_generator',
'choices' => $renderer,
'choice_label' => function($renderer) {
'choice_label' => function ($renderer) {
return 'invoice_number_generator.' . $renderer;
}
]);

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceRendererType extends AbstractType
{
@@ -50,7 +46,7 @@ class InvoiceRendererType extends AbstractType
$resolver->setDefaults([
'label' => 'label.invoice_renderer',
'choices' => $renderer,
'choice_label' => function($renderer) {
'choice_label' => function ($renderer) {
return 'invoice_renderer.' . $renderer;
}
]);

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceTemplateType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class LanguageType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class PageSizeType extends AbstractType
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class SkinType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserPreferenceType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserRoleType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class VisibilityType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class YesNoType extends AbstractType
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserEditType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserPasswordType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserPreferencesForm extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class UserRolesType extends AbstractType
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
interface CalculatorInterface
{

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
* It will create duplicate IDs if you create multiple invoices per day.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class DateNumberGenerator implements NumberGeneratorInterface
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
interface NumberGeneratorInterface
{

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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
* entry for a compact invoice version.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class ShortInvoiceCalculator extends DefaultCalculator
{

View File

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

View File

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

View File

@@ -1,9 +1,7 @@
<?php
/*
* This file is part of the Kimai package.
*
* (c) Kevin Papst <kevin@kevinpapst.de>
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* 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.
*
* @author Kevin Papst <kevin@kevinpapst.de>
*/
class InvoiceModel
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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