Test Failed
Pull Request — master (#9)
by
unknown
02:36
created
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/UserProfile.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
     protected $serviceManager;
42 42
     protected $serviceLocator;
43 43
     
44
-    public function load( $id )
44
+    public function load($id)
45 45
     {
46
-        if (!$id ) {
46
+        if (!$id) {
47 47
             return $this;
48 48
         }
49 49
         $this->user_id = $id;
@@ -79,17 +79,17 @@  discard block
 block discarded – undo
79 79
     
80 80
     public function exchangeArray($data)
81 81
     {
82
-        $this->user_id        = (isset($data['user_id'])) ? $data['user_id'] : null;
82
+        $this->user_id = (isset($data['user_id'])) ? $data['user_id'] : null;
83 83
         
84
-        $this->street        = (isset($data['street'])) ? $data['street'] : '';
84
+        $this->street = (isset($data['street'])) ? $data['street'] : '';
85 85
         $this->city            = (isset($data['city'])) ? $data['city'] : '';
86
-        $this->country        = (isset($data['country'])) ? $data['country'] : '';
87
-        $this->phone        = (isset($data['phone'])) ? $data['phone'] : '';
86
+        $this->country = (isset($data['country'])) ? $data['country'] : '';
87
+        $this->phone = (isset($data['phone'])) ? $data['phone'] : '';
88 88
         $this->cell            = (isset($data['cell'])) ? $data['cell'] : '';
89 89
         
90 90
         $this->twitter        = (isset($data['twitter'])) ? $data['twitter'] : '';
91 91
         $this->facebook        = (isset($data['facebook'])) ? $data['facebook'] : '';
92
-        $this->skype        = (isset($data['skype'])) ? $data['skype'] : '';
92
+        $this->skype = (isset($data['skype'])) ? $data['skype'] : '';
93 93
         $this->icq            = (isset($data['icq'])) ? $data['icq'] : '';
94 94
         
95 95
     }
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/Clients.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@
 block discarded – undo
39 39
     
40 40
     public function exchangeArray($data)
41 41
     {
42
-        $this->clients_id    = (isset($data['clients_id'])) ? $data['clients_id'] : null;
42
+        $this->clients_id = (isset($data['clients_id'])) ? $data['clients_id'] : null;
43 43
         $this->name            = (isset($data['name'])) ? $data['name'] : null;
44 44
         $this->extraname    = (isset($data['extraname'])) ? $data['extraname'] : null;
45 45
         $this->homepage        = (isset($data['homepage'])) ? $data['homepage'] : null;
46 46
         $this->email        = (isset($data['email'])) ? $data['email'] : null;
47
-        $this->contact        = (isset($data['contact'])) ? $data['contact'] : null;
47
+        $this->contact = (isset($data['contact'])) ? $data['contact'] : null;
48 48
         $this->phone        = (isset($data['phone'])) ? $data['phone'] : null;
49
-        $this->statistics    = (isset($data['statistics'])) ? $data['statistics'] : null;
49
+        $this->statistics = (isset($data['statistics'])) ? $data['statistics'] : null;
50 50
     }
51 51
 
52 52
     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.
module/Admin/src/Admin/Model/AclresourceTable.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('resourceslug ASC');
36 36
             }
37 37
         );
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function getAclresourceBySlug($resource_slug)
53 53
     {
54
-        $resource_slug  = trim(strip_tags($resource_slug));
54
+        $resource_slug = trim(strip_tags($resource_slug));
55 55
         $rowset = $this->tableGateway->select(
56 56
             array(
57 57
             'resourceslug' => $resource_slug,    
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         'resourcename'            => $Aclresource->resourcename,
72 72
         );
73 73
 
74
-        $id = (int)$Aclresource->aclresources_id;
74
+        $id = (int) $Aclresource->aclresources_id;
75 75
         if ($id == 0) {
76 76
             $this->tableGateway->insert($data);
77 77
         } else {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Model/AclTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         'state'                    => $Acl->state,
71 71
         );
72 72
 
73
-        $id = (int)$Acl->acl_id;
73
+        $id = (int) $Acl->acl_id;
74 74
         if ($id == 0) {
75 75
             $this->tableGateway->insert($data);
76 76
         } else {
Please login to merge, or discard this patch.