Skip to content

Commit

Permalink
PSR-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkasovic Nermin committed Mar 29, 2020
1 parent 31151af commit 16bf9db
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": "^7.1",
"illuminate/database": "^5.0|^6.0|^7.0",
"illuminate/support": "^5.0|^6.0|^7.0",
"laravel/helpers": "^1.0",
"laravel/helpers": "^1.0"
},
"license": "MIT",
"homepage": "https://github.com/nelkasovic/laravel-full-calendar",
Expand Down
8 changes: 2 additions & 6 deletions src/Qlick/LaravelFullcalendar/Calendar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

namespace Qlick\LaravelFullcalendar;
<?php

use ArrayAccess;
use DateTime;
Expand Down Expand Up @@ -124,7 +122,7 @@ public function setId($id)
*/
public function getId()
{
if ( ! empty($this->id)) {
if (!empty($this->id)) {
return $this->id;
}

Expand Down Expand Up @@ -232,7 +230,6 @@ public function getOptionsJson()
}

return $json;

}

/**
Expand Down Expand Up @@ -271,5 +268,4 @@ protected function replaceCallbackPlaceholders($json, $placeholders)

return str_replace($search, $replace, $json);
}

}
5 changes: 2 additions & 3 deletions src/Qlick/LaravelFullcalendar/Event.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Qlick\LaravelFullcalendar;
<?php

use DateTime;

Expand Down Expand Up @@ -31,5 +31,4 @@ public function getStart();
* @return DateTime
*/
public function getEnd();

}
}
6 changes: 2 additions & 4 deletions src/Qlick/LaravelFullcalendar/EventCollection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

namespace Qlick\LaravelFullcalendar;
<?php

use Illuminate\Support\Collection;

Expand Down Expand Up @@ -55,4 +53,4 @@ private function getEventId(Event $event)

return null;
}
}
}
6 changes: 2 additions & 4 deletions src/Qlick/LaravelFullcalendar/Facades/Calendar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

namespace Qlick\LaravelFullcalendar\Facades;
<?php

use Illuminate\Support\Facades\Facade;

Expand All @@ -11,4 +9,4 @@ protected static function getFacadeAccessor()
{
return 'laravel-full-calendar';
}
}
}
7 changes: 2 additions & 5 deletions src/Qlick/LaravelFullcalendar/IdentifiableEvent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

namespace Qlick\LaravelFullcalendar;
<?php

interface IdentifiableEvent extends Event
{
Expand All @@ -11,5 +9,4 @@ interface IdentifiableEvent extends Event
* @return int|string|null
*/
public function getId();

}
}
4 changes: 1 addition & 3 deletions src/Qlick/LaravelFullcalendar/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

namespace Qlick\LaravelFullcalendar;
<?php

use Illuminate\Support\ServiceProvider as BaseServiceProvider;

Expand Down
4 changes: 2 additions & 2 deletions src/Qlick/LaravelFullcalendar/SimpleEvent.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Qlick\LaravelFullcalendar;
<?php

use DateTime;

Expand Down Expand Up @@ -119,4 +119,4 @@ public function getEventOptions()
{
return $this->options;
}
}
}

0 comments on commit 16bf9db

Please sign in to comment.