File index.php
has 466 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
require_once 'phplib/CurlClient.php';
require_once 'phplib/Postmortem.php';
require_once 'phplib/Configuration.php';
Similar blocks of code found in 3 locations. Consider refactoring. Open
case "detect_time":
if (! isset($params["timezone"])) {
$app->response->status(400);
return;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 193.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
case "end_time":
if (! isset($params["timezone"])) {
$app->response->status(400);
return;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 193.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
case "start_time":
if (!isset($params["timezone"])) {
$app->response->status(400);
return;
}
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 193.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
if ($res["status"] == Postmortem::ERROR) {
$app->response->status(400);
} else {
$app->response->status(201);
$tags = Postmortem::get_tags_for_event($id);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 120.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
$app->get('/features/:feature/css/:path' , function ($feature, $path) use ($app) {
// read the file if it exists. Then serve it back.
$file = stream_resolve_include_path("features/{$feature}/assets/css/{$path}");
if (!$file) {
$app->response->status(404);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 113.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
$app->get('/features/:feature/js/:path' , function ($feature, $path) use ($app) {
// read the file if it exists. Then serve it back.
$file = stream_resolve_include_path("features/{$feature}/assets/js/{$path}");
if (!$file) {
$app->response->status(404);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 113.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
});
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->get('/events/:id/summary', function($id) use ($app) {
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset($_SESSION['timezone']) ) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->get('/events/:id', function($id) use ($app) {
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
} else if ( isset($config['timezone']) ) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->delete('/events/:id', function($id) use ($app) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->get('/events/:id/lock', function($id) use ($app) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->post('/events/:id/history', function($id) use ($app) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->delete('/events/:event_id/tags/:tag_id', function($event_id, $tag_id) use ($app) {
- Exclude checks
Space found before comma in function call Open
$app->get('/features/:feature/css/:path' , function ($feature, $path) use ($app) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ($first['starttime'] == $second['starttime'] ) {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->get('/events/:id/undelete', function($id) use ($app) {
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
});
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->post('/events/:id/tags', function($id) use ($app) {
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Space found before comma in function call Open
$app->get('/features/:feature/js/:path' , function ($feature, $path) use ($app) {
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
$app->get('/', function() use ($app) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
include '../views/page.php';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$app->log->setLevel(4);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$message = "Could not parse configuration file.";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
die();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
error_log("ERROR: " . $message);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content = "error";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$app->log->setLevel(1);
- Exclude checks
Opening brace should be on a new line Open
function getUserTimezone() {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset($_SESSION['timezone']) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
} else if ( isset($config['timezone']) ) {
- Exclude checks
Opening brace should be on a new line Open
function default_status_time() {
- Exclude checks
No space found after comma in function call Open
error_log(print_r($event,true));
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["tldr"] = $value;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
$tz = $_SESSION['timezone'];
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setTimezone($timezone);
- Exclude checks
Expected 1 space after SWITCH keyword; 0 found Open
switch($key) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["summary"] = $value;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "start_date":
- Exclude checks
Opening brace should be on a new line Open
function cmp($first, $second) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$new_date = date_parse($value);
- Exclude checks
Opening brace should be on a new line Open
function getTimeString($diff) {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if (!isset($params["timezone"])) {
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(isset($event['error'])) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["endtime"] = $edate->getTimeStamp();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "tldr":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["starttime"] = $edate->getTimeStamp();
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate = new DateTime("@$detecttime");
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate = new DateTime("@$endtime");
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$statustime = $old_event["statustime"];
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setTimezone($timezone);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
} elseif ($key == "detect_date") {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
return;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "severity":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["incident_cause"] = $value;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!$file) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "why_surprised":
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if (! isset($params["timezone"])) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$timezone = new DateTimeZone($params["timezone"]);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$new_date = date_parse($value);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$app->response->status(400);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "incident_cause":
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if($status === Postmortem::EDIT_UNLOCKED) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["title"] = $value;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["detecttime"] = $edate->getTimeStamp();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$event["statustime"] = 0;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["severity"] = $value;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$starttime = isset($event["starttime"]) ? $event["starttime"] : $old_event["starttime"];
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setTime($new_date["hour"], $new_date["minute"]);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
return;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setDate($new_date["year"], $new_date["month"], $new_date["day"]);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$app->response->status(400);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "facilitator":
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
$tz = $config['timezone'];
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["meeting_notes_link"] = $value;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if ($key == "start_time") {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "detect_time":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$timezone = new DateTimeZone($params["timezone"]);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$detecttime = isset($event["detecttime"]) ? $event["detecttime"] : $old_event["detecttime"];
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$timezone = new DateTimeZone($params["timezone"]);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["facilitator"] = $value;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "impact_type":
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$app->response->status(400);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "status_datetime":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setDate($new_date["year"], $new_date["month"], $new_date["day"]);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if (!$file) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setTime($new_date["hour"], $new_date["minute"]);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$new_date = date_parse($value);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setTime($new_date["hour"], $new_date["minute"]);
- Exclude checks
Whitespace found at end of line Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if (! isset($params["timezone"])) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "owner_team":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["why_surprised"] = $value;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "gcal":
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "meeting_notes_link":
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "start_time":
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
return;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$app->response->status(400);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setTimezone($timezone);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$timezone = new DateTimeZone($params["timezone"]);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
return;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if (! isset($params["timezone"])) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setDate($new_date["year"], $new_date["month"], $new_date["day"]);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["statustime"] = $edate->getTimeStamp();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
break;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["impact_type"] = $value;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate = new DateTime("@$statustime");
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setTime($new_date["hour"], $new_date["minute"]);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "end_time":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate->setTimezone($timezone);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if ($key == "detect_time") {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$new_date = date_parse($value);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "problem_type":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["problem_type"] = $value;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["subsystem"] = $value;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "summary":
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
} elseif ($key == "start_date") {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if (!$value) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "end_date":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$endtime = isset($event["endtime"]) ? $event["endtime"] : $old_event["endtime"];
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "contact":
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
if ($key == "end_time") {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["contact"] = $value;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "detect_date":
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
} elseif ($key == "end_date") {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["owner_team"] = $value;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event["gcal"] = $value;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "subsystem":
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
case "title":
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$edate = new DateTime("@$starttime");
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
$edate->setDate($new_date["year"], $new_date["month"], $new_date["day"]);
- Exclude checks