Test Failed
Branch master (6c9066)
by Björn
01:44
created
module/Admin/src/Admin/Factory/ClientsTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Clients());
45
-        $tableGateway        = new TableGateway('clients', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new ClientsTable($tableGateway);
45
+        $tableGateway = new TableGateway('clients', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new ClientsTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Acl());
45
-        $tableGateway        = new TableGateway('acl', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new AclTable($tableGateway);
45
+        $tableGateway = new TableGateway('acl', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new AclTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclresourceTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Aclresource());
45
-        $tableGateway        = new TableGateway('aclresource', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new AclresourceTable($tableGateway);
45
+        $tableGateway = new TableGateway('aclresource', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new AclresourceTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclroleTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Aclrole());
45
-        $tableGateway        = new TableGateway('aclrole', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new AclroleTable($tableGateway);
45
+        $tableGateway = new TableGateway('aclrole', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new AclroleTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/ApplicationsTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Applications());
45
-        $tableGateway        = new TableGateway('applications', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new ApplicationsTable($tableGateway);
45
+        $tableGateway = new TableGateway('applications', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new ApplicationsTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/SettingsTableFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
42
-        $dbAdapter            = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
-        $resultSetPrototype    = new ResultSet();
42
+        $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter');
43
+        $resultSetPrototype = new ResultSet();
44 44
         $resultSetPrototype->setArrayObjectPrototype(new Settings());
45
-        $tableGateway        = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype);
46
-        $table                = new SettingsTable($tableGateway);
45
+        $tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype);
46
+        $table = new SettingsTable($tableGateway);
47 47
         return $table;
48 48
     }
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/Applications.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
     public function getClient() 
216 216
     {
217 217
         /**
218
- * @var \Admin\Model\ClientsTable $clients 
218
+         * @var \Admin\Model\ClientsTable $clients 
219 219
 */
220 220
         if ($this->client_id) {
221 221
             $clients = \Application\Module::getService('AdminClientsTable');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
     
43 43
     public function exchangeArray($data)
44 44
     {
45
-        $this->application_id    = (isset($data['application_id'])) ? $data['application_id'] : $this->application_id;
45
+        $this->application_id = (isset($data['application_id'])) ? $data['application_id'] : $this->application_id;
46 46
         $this->name                = (isset($data['name'])) ? $data['name'] : $this->name;
47 47
         $this->shortname        = (isset($data['shortname'])) ? $data['shortname'] : $this->shortname;
48 48
         $this->path                = (isset($data['path'])) ? $data['path'] : $this->path;
49
-        $this->url                = (isset($data['url'])) ? $data['url'] : $this->url;
49
+        $this->url = (isset($data['url'])) ? $data['url'] : $this->url;
50 50
         $this->email            = (isset($data['email'])) ? $data['email'] : $this->email;
51 51
         $this->client_id        = (isset($data['client_id'])) ? $data['client_id'] : $this->client_id;
52 52
     }
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/UserTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
         return $resultSet;
35 35
     }
36 36
 
37
-    public function getUserByEmailOrUsername( $id )
37
+    public function getUserByEmailOrUsername($id)
38 38
     {
39
-        if (empty($id) ) {
39
+        if (empty($id)) {
40 40
             return false;
41 41
         }
42 42
         $resultSet = $this->tableGateway->select(
43
-            function (Select $select) use ($id) {
43
+            function(Select $select) use ($id) {
44 44
                 $select->where(
45 45
                     array(
46 46
                     "username = '".$id."'",
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         'aclrole'        => $user->aclrole,
80 80
         );
81 81
 
82
-        $id = (int)$user->user_id;
82
+        $id = (int) $user->user_id;
83 83
         if ($id == 0) {
84 84
             $this->tableGateway->insert($data);
85 85
         } else {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/UserProfileTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         'icq'            => $user->icq,
64 64
         );
65 65
 
66
-        $id = (int)$user->user_id;
66
+        $id = (int) $user->user_id;
67 67
         if ($id == 0) {
68 68
             throw new \Exception('invalid user');
69 69
         } else {
Please login to merge, or discard this patch.