Completed
Branch master (0dfbed)
by Benedikt
07:50
created
config-example/jwt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /*
5 5
  * This file is part of jwt-auth.
Please login to merge, or discard this patch.
config-example/database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 return [
5 5
   /*
Please login to merge, or discard this patch.
config-example/auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 return [
5 5
   'defaults' => [
Please login to merge, or discard this patch.
config-example/doctrine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 return [
5 5
 
Please login to merge, or discard this patch.
config-example/cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 return [
5 5
   /*
Please login to merge, or discard this patch.
src/Claims/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: benedikt
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /** @var \Laravel\Lumen\Routing\Router $router */
4 4
 $router = app('router');
5 5
 
6
-$router->group(['namespace' => 'Tfboe\FmLib\Http\Controllers'], function () use ($router) {
6
+$router->group(['namespace' => 'Tfboe\FmLib\Http\Controllers'], function() use ($router) {
7 7
   /**
8 8
    * @api {post} /register Register
9 9
    * @apiVersion 0.1.0
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     'as' => 'login', 'uses' => 'UserController@login'
43 43
   ]);
44 44
 
45
-  $router->group(['middleware' => 'auth:api'], function () use ($router) {
45
+  $router->group(['middleware' => 'auth:api'], function() use ($router) {
46 46
     /**
47 47
      * @api {get} /userId Get User ID
48 48
      * @apiUse AuthenticatedRequest
Please login to merge, or discard this patch.
src/Helpers/Logging.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: benedikt
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
    * @param int $type the type of the message
37 37
    * @throws \Tfboe\FmLib\Exceptions\ValueNotValid invalid logger
38 38
    */
39
-  public static function log(string $message, string $logger = Logs::GENERAL, int $type = Logger::INFO)
39
+  public static function log( string $message, string $logger = Logs::GENERAL, int $type = Logger::INFO )
40 40
   {
41
-    if (self::$testing && $logger !== Logs::TESTING) {
41
+    if ( self::$testing && $logger !== Logs::TESTING ) {
42 42
       //do nothing
43 43
       return;
44 44
     }
45 45
     Logs::ensureValidValue($logger);
46
-    if (!array_key_exists($logger, self::$loggers)) {
46
+    if ( !array_key_exists($logger, self::$loggers) ) {
47 47
       self::$loggers[$logger] = new Logger($logger);
48 48
       // InvalidArgumentException => stream is a string
49 49
       // Exception => path is static and it is ensured that it is valid
50 50
       /** @noinspection PhpUnhandledExceptionInspection */
51 51
       self::$loggers[$logger]->pushHandler(
52
-        new StreamHandler((self::$storagePathFunction)() . '/logs/' . $logger . '.log'));
52
+        new StreamHandler((self::$storagePathFunction)().'/logs/'.$logger.'.log'));
53 53
     }
54 54
     self::$loggers[$logger]->log($type, $message);
55 55
   }
Please login to merge, or discard this patch.
src/Helpers/Logs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: benedikt
Please login to merge, or discard this patch.