Completed
Push — master ( 365b59...c70c47 )
by Matze
06:43
created
src/Translation/CompilerPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 class CompilerPass implements CompilerPassInterface
18 18
 {
19 19
 
20
-    const CACHE_FILE = ROOT . 'cache/translation_token';
20
+    const CACHE_FILE = ROOT.'cache/translation_token';
21 21
     const TAG = 'middleware';
22 22
 
23 23
     use FileCacheTrait;
@@ -93,15 +93,15 @@  discard block
 block discarded – undo
93 93
     {
94 94
         ksort($tokens);
95 95
 
96
-        $contentPhp = sprintf("return [\n    %s\n];\n", implode(",\n    ", array_map(function (Token $token) {
96
+        $contentPhp = sprintf("return [\n    %s\n];\n", implode(",\n    ", array_map(function(Token $token) {
97 97
             return sprintf('_("%s")', addslashes($token->token));
98 98
         }, $tokens)));
99 99
 
100
-        $contentHtml = sprintf("%s", implode("\n", array_map(function (Token $token) {
100
+        $contentHtml = sprintf("%s", implode("\n", array_map(function(Token $token) {
101 101
             return sprintf('<span translate>%s</span>', addslashes($token->token));
102 102
         }, $tokens)));
103 103
 
104 104
         $this->dumpCacheFile(self::CACHE_FILE, $contentPhp);
105
-        file_put_contents(self::CACHE_FILE . '.html', $contentHtml);
105
+        file_put_contents(self::CACHE_FILE.'.html', $contentHtml);
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
src/Middleware/CatchUserException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param Throwable $exception
83
+     * @param UserException $exception
84 84
      * @param Request $request
85 85
      * @param Response $response
86 86
      */
Please login to merge, or discard this patch.
src/Console/ClearCacheCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
         $event = new ClearCacheEvent();
60 60
         $this->dispatcher->dispatchEvent($event);
61 61
 
62
-        @mkdir(ROOT . 'logs', 0744);
63
-        @mkdir(ROOT . 'cache', 0744);
62
+        @mkdir(ROOT.'logs', 0744);
63
+        @mkdir(ROOT.'cache', 0744);
64 64
 
65 65
         $output->writeln('<info>done</info>');
66 66
     }
Please login to merge, or discard this patch.
src/Application/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
      * @param Throwable $exception
144 144
      * @return Response|null
145 145
      */
146
-    protected function applyExceptionMiddleware(Request $request, Throwable $exception) : ?Response
146
+    protected function applyExceptionMiddleware(Request $request, Throwable $exception) : ? Response
147 147
     {
148 148
         foreach ($this->middlewares as $middleware) {
149 149
             $response = $middleware->processException($request, $exception);
Please login to merge, or discard this patch.
src/Application/RedisLock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $redis = $this->getRedis();
26 26
 
27
-        return (bool)$redis->set(self::PREFIX . $name, '1', 'EX', $lockTime, 'NX');
27
+        return (bool)$redis->set(self::PREFIX.$name, '1', 'EX', $lockTime, 'NX');
28 28
     }
29 29
 
30 30
     /**
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function unlock(string $name)
34 34
     {
35
-        $this->getRedis()->del(self::PREFIX . $name);
35
+        $this->getRedis()->del(self::PREFIX.$name);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/MessageQueue/Event/MessageQueueEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * @return Job
34 34
      */
35
-    public function getJob() : ?Job
35
+    public function getJob() : ? Job
36 36
     {
37 37
         return $this->job;
38 38
     }
Please login to merge, or discard this patch.
src/Authentication/AuthenticationDataVO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @return string
44 44
      */
45
-    public function getOneTimeToken() : ?string
45
+    public function getOneTimeToken() : ? string
46 46
     {
47 47
         return $this->oneTimeToken;
48 48
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @return string
52 52
      */
53
-    public function getPassword() : ?string
53
+    public function getPassword() : ? string
54 54
     {
55 55
         return $this->password;
56 56
     }
Please login to merge, or discard this patch.
src/Authentication/TOTP/TOTP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 
110 110
         $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($opt));
111 111
 
112
-        return "otpauth://totp/" . rawurlencode($this->label) . "?$params";
112
+        return "otpauth://totp/".rawurlencode($this->label)."?$params";
113 113
     }
114 114
 
115 115
     /**
Please login to merge, or discard this patch.
src/Util/IdGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function generateRandomId(int $length = self::ID_LENGTH) : string
46 46
     {
47
-        $randomId = md5(microtime() . mt_rand()) . mt_rand();
47
+        $randomId = md5(microtime().mt_rand()).mt_rand();
48 48
 
49 49
         return substr(base_convert($randomId, 10, 36), 0, $length);
50 50
     }
Please login to merge, or discard this patch.