Test Failed
Push — master ( 8a12a1...341f45 )
by Björn
26:21 queued 06:45
created
module/Admin/src/Admin/Form/AclroleForm.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@
 block discarded – undo
76 76
             array(
77 77
             'name' => 'reset',
78 78
             'attributes' => array(
79
-                   'type'  => 'reset',
80
-                  'value' => 'reset',
81
-                  'id' => 'resetbutton',
82
-               ),
79
+                    'type'  => 'reset',
80
+                    'value' => 'reset',
81
+                    'id' => 'resetbutton',
82
+                ),
83 83
             'options' => array(
84 84
             'label' => 'reset',
85 85
             ),
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             array(
30 30
             'name' => 'aclroles_id',
31 31
             'attributes' => array(
32
-            'type'  => 'hidden' ,
32
+            'type'  => 'hidden',
33 33
             ),
34 34
             )
35 35
         );
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.
module/Admin/src/Admin/Model/ApplicationsTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function fetchAll($scope = '')
47 47
     {
48 48
         $resultSet = $this->tableGateway->select(
49
-            function (Select $select) use ($scope) {
49
+            function(Select $select) use ($scope) {
50 50
                 if (!empty($scope)) {
51 51
                     $select->where('scope = \''.$scope.'\'')->order('type, name ASC');
52 52
                 } else {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         'client_id'    => $applications->client_id,
102 102
         );
103 103
 
104
-        $id = (int)$applications->application_id;
104
+        $id = (int) $applications->application_id;
105 105
         if ($id == 0) {
106 106
             $this->tableGateway->insert($data);
107 107
         } else {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/ClientsTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function fetchAll($scope = '')
32 32
     {
33 33
         $resultSet = $this->tableGateway->select(
34
-            function (Select $select) use ($scope) {
34
+            function(Select $select) use ($scope) {
35 35
                 if (!empty($scope)) {
36 36
                     $select->where('scope = \''.$scope.'\'')->order('type, name ASC');
37 37
                 } else {
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
         return $this->fetchAll('application');
48 48
     }
49 49
 
50
-    public function fetchUser( $id )
50
+    public function fetchUser($id)
51 51
     {
52 52
         if (!$id) { return array(); 
53 53
         }
54 54
         $resultSet = $this->tableGateway->select(
55
-            function (Select $select) use ($id) {
55
+            function(Select $select) use ($id) {
56 56
                 if (!empty($id)) {
57
-                    $select->where(array( '(scope = \'user\') AND (ref_id = \''.((int)$id).'\')' ))->order('type, name ASC');
57
+                    $select->where(array('(scope = \'user\') AND (ref_id = \''.((int) $id).'\')'))->order('type, name ASC');
58 58
                 } else {
59 59
                     $select->order('type, name ASC');
60 60
                 }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         'statistics'    => $clients->statistics,
87 87
         );
88 88
 
89
-        $id = (int)$clients->clients_id;
89
+        $id = (int) $clients->clients_id;
90 90
         if ($id == 0) {
91 91
             $this->tableGateway->insert($data);
92 92
         } else {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/Aclresource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     
34 34
     public function exchangeArray($data)
35 35
     {
36
-        $this->aclresources_id    = (isset($data['aclresources_id'])) ? $data['aclresources_id'] : null;
36
+        $this->aclresources_id = (isset($data['aclresources_id'])) ? $data['aclresources_id'] : null;
37 37
         $this->resourceslug        = (isset($data['resourceslug'])) ? $data['resourceslug'] : null;
38 38
         $this->resourcename        = (isset($data['resourcename'])) ? $data['resourcename'] : null;
39 39
     }
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/Settings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
     
40 40
     public function exchangeArray($data)
41 41
     {
42
-        $this->settings_id    = (isset($data['settings_id'])) ? $data['settings_id'] : null;
43
-        $this->scope        = (isset($data['scope'])) ? $data['scope'] : null;
44
-        $this->ref_id        = (isset($data['ref_id'])) ? $data['ref_id'] : null;
42
+        $this->settings_id = (isset($data['settings_id'])) ? $data['settings_id'] : null;
43
+        $this->scope = (isset($data['scope'])) ? $data['scope'] : null;
44
+        $this->ref_id = (isset($data['ref_id'])) ? $data['ref_id'] : null;
45 45
         $this->type            = (isset($data['type'])) ? $data['type'] : null;
46 46
         $this->name            = (isset($data['name'])) ? $data['name'] : null;
47
-        $this->value        = (isset($data['value'])) ? $data['value'] : null;
47
+        $this->value = (isset($data['value'])) ? $data['value'] : null;
48 48
     }
49 49
 
50 50
     public function getArrayCopy()
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/SettingsTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function fetchAll($scope = '')
32 32
     {
33 33
         $resultSet = $this->tableGateway->select(
34
-            function (Select $select) use ($scope) {
34
+            function(Select $select) use ($scope) {
35 35
                 if (!empty($scope)) {
36 36
                     $select->where('scope = \''.$scope.'\'')->order('type, name ASC');
37 37
                 } else {
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
         return $this->fetchAll('application');
48 48
     }
49 49
 
50
-    public function fetchUser( $id )
50
+    public function fetchUser($id)
51 51
     {
52 52
         if (!$id) { return array(); 
53 53
         }
54 54
         $resultSet = $this->tableGateway->select(
55
-            function (Select $select) use ($id) {
55
+            function(Select $select) use ($id) {
56 56
                 if (!empty($id)) {
57
-                    $select->where(array( '(scope = \'user\') AND (ref_id = \''.((int)$id).'\')' ))->order('type, name ASC');
57
+                    $select->where(array('(scope = \'user\') AND (ref_id = \''.((int) $id).'\')'))->order('type, name ASC');
58 58
                 } else {
59 59
                     $select->order('type, name ASC');
60 60
                 }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         'value'        => $settings->value,
85 85
         );
86 86
 
87
-        $id = (int)$settings->settings_id;
87
+        $id = (int) $settings->settings_id;
88 88
         if ($id == 0) {
89 89
             $this->tableGateway->insert($data);
90 90
         } else {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/AclroleTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function fetchAll()
32 32
     {
33 33
         $resultSet = $this->tableGateway->select(
34
-            function (Select $select) {
34
+            function(Select $select) {
35 35
                 $select->order('roleslug ASC');
36 36
             }
37 37
         );
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function getAclroleBySlug($role_slug)
53 53
     {
54
-        $role_slug  = trim(strip_tags($role_slug));
54
+        $role_slug = trim(strip_tags($role_slug));
55 55
         $rowset = $this->tableGateway->select(
56 56
             array(
57 57
             'roleslug' => $role_slug,    
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         'rolename'            => $Aclrole->rolename,
72 72
         );
73 73
 
74
-        $id = (int)$Aclrole->aclroles_id;
74
+        $id = (int) $Aclrole->aclroles_id;
75 75
         if ($id == 0) {
76 76
             $this->tableGateway->insert($data);
77 77
         } else {
Please login to merge, or discard this patch.