Completed
Push — master ( 2605a3...6539f9 )
by Park Jong-Hun
03:21
created
app/ViewEngine/TwigView.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         return $this->var;
59 59
     }
60 60
 
61
+    /**
62
+     * @param string $fileName
63
+     */
61 64
     public function file($fileName)
62 65
     {
63 66
         $this->templateFilename = $fileName . $this->settings['postfix'];
Please login to merge, or discard this patch.
core/ErrorReporter/ErrorReporterRegister.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
         /**
34 34
          * @var ErrorReporter $reporter
35 35
          */
36
-        set_exception_handler(function ($exception) {
36
+        set_exception_handler(function($exception) {
37 37
             foreach ($this->errorReporters as $reporter) {
38 38
                 $reporter->report($exception);
39 39
             }
40 40
         });
41 41
 
42
-        set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext) {
42
+        set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) {
43 43
             throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
core/Event/EventListenerRegister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     private function getEventListenerProc($handler)
38 38
     {
39
-        return function (ParameterMap $parameterMap) use ($handler) {
39
+        return function(ParameterMap $parameterMap) use ($handler) {
40 40
             /** @var ProcInterface */
41 41
             $proc = ProcFactory::getProc($handler);
42 42
             $proc->execWithParameterMap($parameterMap);
Please login to merge, or discard this patch.
config/error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     'displayErrors' => true,
5
-    'enableReporters' => [ 'Html' ],
5
+    'enableReporters' => ['Html'],
6 6
 
7 7
     'reporters' => [
8 8
         'Html' => [
Please login to merge, or discard this patch.
config/event.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
             'before' => 'App\\EventListener\\Auth\\ValidatorListener.validate'
10 10
         ],
11 11
         'Test.event' => [
12
-            'before' => function () {
12
+            'before' => function() {
13 13
                 echo '<p>before Hook!</p>';
14 14
             },
15
-            'after' => function () {
15
+            'after' => function() {
16 16
                 echo '<p>after Hook!</p>';
17 17
             }
18 18
         ]
Please login to merge, or discard this patch.
app/Auth/config/permission.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 2
 
3 3
 return [
4
-    'Test.admin' => [ 'Admin' ]
4
+    'Test.admin' => ['Admin']
5 5
 ];
Please login to merge, or discard this patch.
config/parameter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,23 +17,23 @@  discard block
 block discarded – undo
17 17
 return [
18 18
     [
19 19
         'key' => new Typed(ServerRequestInterface::class),
20
-        'value' => ParameterWire::post(function () {
20
+        'value' => ParameterWire::post(function() {
21 21
             return RequestMatcher::getRequest();
22 22
         })
23 23
     ],
24 24
     [
25 25
         'key' => new Named('urlPattern'),
26
-        'value' =>  ParameterWire::post(function () {
26
+        'value' =>  ParameterWire::post(function() {
27 27
             return RequestMatcher::getPatternedUrl();
28 28
         })
29 29
     ],
30 30
     [
31 31
         'key' => new TypedAndNamed('array', 'urlVariable'),
32
-        'value' =>  ParameterWire::post(function () {
32
+        'value' =>  ParameterWire::post(function() {
33 33
             return RequestMatcher::getUrlNameMatching();
34 34
         })
35 35
     ],
36
-    ParameterWire::postCallback(function () {
36
+    ParameterWire::postCallback(function() {
37 37
         $result = [];
38 38
         foreach (RequestMatcher::getUrlNameMatching() as $name => $value) {
39 39
             $result[] = [
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }),
46 46
     [
47 47
         'key' => new Typed(ProcInterface::class),
48
-        'value' =>  ParameterWire::post(function () {
48
+        'value' =>  ParameterWire::post(function() {
49 49
             return RequestMatcher::getControllerProc();
50 50
         })
51 51
     ],
@@ -55,19 +55,19 @@  discard block
 block discarded – undo
55 55
     ],
56 56
     [
57 57
         'key' => new Typed(AccountManagerInterface::class),
58
-        'value' => ParameterWire::post(function () {
58
+        'value' => ParameterWire::post(function() {
59 59
             return AuthManager::getAccountManager();
60 60
         })
61 61
     ],
62 62
     [
63 63
         'key' => new Typed(LoginManagerInterface::class),
64
-        'value' => ParameterWire::post(function () {
64
+        'value' => ParameterWire::post(function() {
65 65
             return AuthManager::getLoginManager();
66 66
         })
67 67
     ],
68 68
     [
69 69
         'key' => new Typed(EntityManagerInterface::class),
70
-        'value' => ParameterWire::post(function () {
70
+        'value' => ParameterWire::post(function() {
71 71
             return DatabaseManager::getEntityManager();
72 72
         })
73 73
     ],
Please login to merge, or discard this patch.