Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Auth/src/Auth/Filter/LoginFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
         if (!$loginSuffixResponseCollection->isEmpty()) {
46 46
             $suffix = $loginSuffixResponseCollection->last();
47 47
         }
48
-        return $value . $suffix;
48
+        return $value.$suffix;
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Filter/StripQueryParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
         
45 45
         parse_str($query, $queryParams);
46 46
         $queryParams = array_diff_key($queryParams, array_flip($stripParams));
47
-        return $uri . (empty($queryParams) ? '' : '?' . http_build_query($queryParams));
47
+        return $uri.(empty($queryParams) ? '' : '?'.http_build_query($queryParams));
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/UnauthorizedAccessListener.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
          * Return an image, if an image was requested.
56 56
          */
57 57
         if ($exception instanceof UnauthorizedImageAccessException) {
58
-            $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png';
58
+            $image = __DIR__.'/../../../../../public/images/unauthorized-access.png';
59 59
             $response->setStatusCode(403)
60 60
                      ->setContent(file_get_contents($image))
61 61
                      ->getHeaders()
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $routeMatch->setParam('action', 'index');
79 79
             $query = $e->getRequest()->getQuery();
80 80
             $ref = $e->getRequest()->getRequestUri();
81
-            $ref = preg_replace('~^' . preg_quote($e->getRouter()->getBaseUrl()) . '~', '', $ref);
81
+            $ref = preg_replace('~^'.preg_quote($e->getRouter()->getBaseUrl()).'~', '', $ref);
82 82
             $query->set('ref', $ref);
83 83
             $query->set('req', 1);
84 84
             $result = $e->getApplication()->getEventManager()->trigger('dispatch', $e);
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
         if ($exception instanceof UnauthorizedImageAccessException) {
58 58
             $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png';
59 59
             $response->setStatusCode(Response::STATUS_CODE_403)
60
-                     ->setContent(file_get_contents($image))
61
-                     ->getHeaders()
62
-                     ->addHeaderLine('Content-Type', 'image/png');
60
+                        ->setContent(file_get_contents($image))
61
+                        ->getHeaders()
62
+                        ->addHeaderLine('Content-Type', 'image/png');
63 63
             $e->stopPropagation();
64 64
             $response->sendHeaders();
65 65
             //echo file_get_contents($image);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
         
72 72
         $application = $e->getApplication();
73
-		$auth = $application->getServiceManager()->get('AuthenticationService');
73
+        $auth = $application->getServiceManager()->get('AuthenticationService');
74 74
         
75 75
         if (!$auth->hasIdentity()) {
76 76
             $routeMatch = $e->getRouteMatch();
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
         $model->setTemplate($this->getExceptionTemplate());
103 103
         $e->setResult($model);
104 104
 
105
-       // $statusCode = $response->getStatusCode();
106
-       // if ($statusCode === 200) {
105
+        // $statusCode = $response->getStatusCode();
106
+        // if ($statusCode === 200) {
107 107
             $response->setStatusCode(Response::STATUS_CODE_403);
108
-       // }
108
+        // }
109 109
     }
110 110
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/SocialProfiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             throw new \InvalidArgumentException(
57 57
                 sprintf(
58 58
                     'Adapter must be either a string or an instance of \Auth\Controller\Plugin\SocialProfiles\AbstractAdapter, but received %s',
59
-                    is_object($adapter) ? get_class($adapter) : '(' . gettype($adapter) . ')'
59
+                    is_object($adapter) ? get_class($adapter) : '('.gettype($adapter).')'
60 60
                 )
61 61
             );
62 62
         }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/SocialProfiles/AbstractAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     
24 24
     public function fetch($api)
25 25
     {
26
-        $result  = $this->queryApi($api);
26
+        $result = $this->queryApi($api);
27 27
         if (!$result) {
28 28
             return false;
29 29
         }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $class = get_class($this);
50 50
         $class = explode('\\', $class);
51 51
         $class = array_pop($class);
52
-        $class = '\\Auth\\Entity\\SocialProfiles\\' . $class;
52
+        $class = '\\Auth\\Entity\\SocialProfiles\\'.$class;
53 53
         
54 54
         return $class;
55 55
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/AuthenticationService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             if ($this->hasIdentity() && ($id = $this->getIdentity())) {
62 62
                 $user = $this->getRepository()->find($id);
63 63
                 if (!$user) {
64
-                    throw new \OutOfBoundsException('Unknown user id: ' . $id);
64
+                    throw new \OutOfBoundsException('Unknown user id: '.$id);
65 65
                 }
66 66
                 $this->user = $user;
67 67
             } else {
Please login to merge, or discard this patch.
module/Auth/Module.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getConfig()
39 39
     {
40
-        return ModuleConfigLoader::load(__DIR__ . '/config');
40
+        return ModuleConfigLoader::load(__DIR__.'/config');
41 41
     }
42 42
 
43 43
     /**
@@ -53,19 +53,19 @@  discard block
 block discarded – undo
53 53
                 // This ensures the class from "addtional-providers" is loaded.
54 54
                 array(
55 55
                     'Hybrid_Providers_XING'
56
-                    => __DIR__ . '/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-xing/Providers/XING.php',
56
+                    => __DIR__.'/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-xing/Providers/XING.php',
57 57
                 ),
58 58
                 array(
59 59
                     'Hybrid_Providers_Github'
60
-                    => __DIR__ . '/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-github/Providers/GitHub.php',
60
+                    => __DIR__.'/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-github/Providers/GitHub.php',
61 61
                 ),
62 62
             ),
63 63
             'Zend\Loader\StandardAutoloader' => array(
64 64
                 'namespaces' => array(
65
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
66
-                    'AuthTest' => __DIR__ . '/test/AuthTest',
67
-                    'Acl' => __DIR__ . '/src/Acl',
68
-                    'AclTest' => __DIR__ . '/test/AclTest',
65
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
66
+                    'AuthTest' => __DIR__.'/test/AuthTest',
67
+                    'Acl' => __DIR__.'/src/Acl',
68
+                    'AclTest' => __DIR__.'/test/AclTest',
69 69
                 ),
70 70
             ),
71 71
         );
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $eventManager->attach(
83 83
             MvcEvent::EVENT_ROUTE,
84
-            function (MvcEvent $e) use ($services) {
84
+            function(MvcEvent $e) use ($services) {
85 85
             /** @var CheckPermissionsListener $checkPermissionsListener */
86 86
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
87 87
                 $checkPermissionsListener->onRoute($e);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $eventManager->attach(
93 93
             MvcEvent::EVENT_DISPATCH,
94
-            function (MvcEvent $e) use ($services) {
94
+            function(MvcEvent $e) use ($services) {
95 95
             /** @var CheckPermissionsListener $checkPermissionsListener */
96 96
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
97 97
                 $checkPermissionsListener->onDispatch($e);
Please login to merge, or discard this patch.
module/Install/src/Listener/LanguageSetter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,13 +79,13 @@
 block discarded – undo
79 79
 
80 80
         /* Set locale */
81 81
         $translator = $e->getApplication()->getServiceManager()->get('mvctranslator');
82
-        $locale     = $lang . '_' . strtoupper($lang);
82
+        $locale     = $lang.'_'.strtoupper($lang);
83 83
 
84 84
         setlocale(
85 85
             LC_ALL,
86 86
             array(
87
-                            $locale . ".utf8",
88
-                            $locale . ".iso88591",
87
+                            $locale.".utf8",
88
+                            $locale.".iso88591",
89 89
                             $locale,
90 90
                             substr($locale, 0, 2),
91 91
                             'de_DE.utf8',
Please login to merge, or discard this patch.
module/Install/src/Controller/Plugin/YawikConfigCreator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
         // Create a file with the class/file map.
94 94
         // Stupid syntax highlighters make separating < from PHP declaration necessary
95 95
         $content = '<' . "?php\n"
96
-                   . "\n"
97
-                   . 'return ' . var_export($config, true) . ';';
96
+                    . "\n"
97
+                    . 'return ' . var_export($config, true) . ';';
98 98
 
99 99
         // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
100 100
         $content = str_replace("\\'", "'", $content);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
 
93 93
         // Create a file with the class/file map.
94 94
         // Stupid syntax highlighters make separating < from PHP declaration necessary
95
-        $content = '<' . "?php\n"
95
+        $content = '<'."?php\n"
96 96
                    . "\n"
97
-                   . 'return ' . var_export($config, true) . ';';
97
+                   . 'return '.var_export($config, true).';';
98 98
 
99 99
         // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
100 100
         $content = str_replace("\\'", "'", $content);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $content = str_replace('array (', 'array(', $content);
108 108
 
109 109
         // Make the file end by EOL
110
-        $content = rtrim($content, "\n") . "\n";
110
+        $content = rtrim($content, "\n")."\n";
111 111
 
112 112
         return $content;
113 113
 
Please login to merge, or discard this patch.