Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
cs & strict code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 27, 2017
1 parent 2903af6 commit 6fbed8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CD-collection/app/bootstrap.php
Expand Up @@ -27,7 +27,7 @@
$container = $configurator->createContainer();

// Setup router using mod_rewrite detection
if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())) {
if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules(), true)) {
$router = $container->getByType(Nette\Application\IRouter::class);
$router[] = new Route('index.php', 'Dashboard:default', Route::ONE_WAY);
$router[] = new Route('<presenter>/<action>[/<id>]', 'Dashboard:default');
Expand Down
2 changes: 1 addition & 1 deletion CD-collection/app/model/Authenticator.php
Expand Up @@ -30,7 +30,7 @@ public function __construct(Nette\Database\Context $database)
*/
public function authenticate(array $credentials): Security\IIdentity
{
list($username, $password) = $credentials;
[$username, $password] = $credentials;
$row = $this->database->table('users')->where('username', $username)->fetch();

if (!$row) {
Expand Down
4 changes: 2 additions & 2 deletions Fifteen/app/components/FifteenControl.php
Expand Up @@ -106,7 +106,7 @@ private function move($x, $y)

private function searchEmpty()
{
return array_search(0, $this->order);
return array_search(0, $this->order, true);
}


Expand All @@ -125,7 +125,7 @@ public function render()
public function loadState(array $params): void
{
if (isset($params['order'])) {
$params['order'] = explode('.', (string) $params['order']);
$params['order'] = array_map('intval', explode('.', (string) $params['order']));

// validate
$copy = $params['order'];
Expand Down
2 changes: 1 addition & 1 deletion Modules-Usage/app/bootstrap.php
Expand Up @@ -28,7 +28,7 @@
$container = $configurator->createContainer();

// Setup router using mod_rewrite detection
if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())) {
if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules(), true)) {
$router = $container->getByType(Nette\Application\IRouter::class);
$router[] = new Route('index.php', 'Front:Default:default', Route::ONE_WAY);

Expand Down

0 comments on commit 6fbed8a

Please sign in to comment.