Fix PHP file encoding
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class AuthController
|
class AuthController
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class HabitController
|
class HabitController
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use PDO;
|
|
||||||
use PDOException;
|
|
||||||
|
|
||||||
class Database
|
class Database
|
||||||
{
|
{
|
||||||
private static ?PDO $connection = null;
|
private static ?PDO $connection = null;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Category
|
class Category
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Habit
|
class Habit
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section class="auth-panel">
|
<section class="auth-panel">
|
||||||
<h1>Anmelden</h1>
|
<h1>Anmelden</h1>
|
||||||
<form method="post" action="index.php?route=login" class="form">
|
<form method="post" action="index.php?route=login" class="form">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section class="auth-panel">
|
<section class="auth-panel">
|
||||||
<h1>Registrieren</h1>
|
<h1>Registrieren</h1>
|
||||||
<form method="post" action="index.php?route=register" class="form">
|
<form method="post" action="index.php?route=register" class="form">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section class="dashboard-head">
|
<section class="dashboard-head">
|
||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">Heute</p>
|
<p class="eyebrow">Heute</p>
|
||||||
<h1>Deine Habits</h1>
|
<h1>Deine Habits</h1>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php $isEdit = !empty($habit['id']); ?>
|
<?php $isEdit = !empty($habit['id']); ?>
|
||||||
|
|
||||||
<section class="form-panel">
|
<section class="form-panel">
|
||||||
<h1><?= $isEdit ? 'Habit bearbeiten' : 'Habit erstellen' ?></h1>
|
<h1><?= $isEdit ? 'Habit bearbeiten' : 'Habit erstellen' ?></h1>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
function config(string $key, $default = null)
|
function config(string $key, $default = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'app_name' => 'Habit Tracker',
|
'app_name' => 'Habit Tracker',
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user