Skip to content

Commit

Permalink
SensioLabsInsight violations
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpeichert committed Mar 11, 2016
1 parent b4d8b09 commit e5d7ad1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions DevAAC/Helpers/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
namespace DevAAC\Helpers;

use Illuminate\Support\Contracts\JsonableInterface;
use Illuminate\Support\Contracts\ArrayableInterface;
use JsonSerializable;


class DateTime extends \DateTime implements \JsonSerializable, JsonableInterface {
class DateTime extends \DateTime implements JsonSerializable, JsonableInterface {

public function __toString()
{
Expand All @@ -51,4 +51,4 @@ public function toJson($options = 0)
{
return json_encode($this->format(DateTime::ISO8601, $options));
}
}
}
7 changes: 5 additions & 2 deletions DevAAC/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

namespace DevAAC\Http;

use InputErrorException;

class Request extends \Slim\Http\Request
{
/**
Expand All @@ -40,6 +42,7 @@ class Request extends \Slim\Http\Request
* @param string $key
* @param mixed $default Default return value when key does not exist
* @return array|mixed|null
* @throws InputErrorException
*/
public function getAPIParam($key = null, $default = null)
{
Expand All @@ -64,6 +67,6 @@ public function getAPIParam($key = null, $default = null)
return $default;

else
throw new \InputErrorException('API parameter "' . $key . '" is missing.', 400);
throw new InputErrorException('API parameter "' . $key . '" is missing.', 400);
}
}
}
2 changes: 0 additions & 2 deletions DevAAC/Models/HouseList.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

namespace DevAAC\Models;

use DevAAC\Helpers\DateTime;

// https://github.com/illuminate/database/blob/master/Eloquent/Model.php
// https://github.com/otland/forgottenserver/blob/master/schema.sql

Expand Down
1 change: 0 additions & 1 deletion DevAAC/routes/players.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/

use DevAAC\Models\Player;
use DevAAC\Models\PlayerPublic;
use DevAAC\Models\PlayerOnline;
use Illuminate\Database\Capsule\Manager as Capsule;

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"license": "MIT",
"require": {
"slim/slim": "^2.6",
"illuminate/database": "*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/templates/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@
</div>
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion public_html/modules/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Directory 'main' holds controllers for the static elements of layout (main, header, footer, navigation, widget).
Directory 'main' holds controllers for the static elements of layout (main, header, footer, navigation, widget).

0 comments on commit e5d7ad1

Please sign in to comment.