Passed
Branch master (a3cc07)
by Nashwan
06:28
created
src/EBloodBank/Proxies/__CG__EBloodBankModelsVariable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
      */
76 76
     public function __wakeup()
77 77
     {
78
-        if ( ! $this->__isInitialized__) {
79
-            $this->__initializer__ = function (Variable $proxy) {
78
+        if (!$this->__isInitialized__) {
79
+            $this->__initializer__ = function(Variable $proxy) {
80 80
                 $proxy->__setInitializer(null);
81 81
                 $proxy->__setCloner(null);
82 82
 
83 83
                 $existingProperties = get_object_vars($proxy);
84 84
 
85 85
                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
86
-                    if ( ! array_key_exists($property, $existingProperties)) {
86
+                    if (!array_key_exists($property, $existingProperties)) {
87 87
                         $proxy->$property = $defaultValue;
88 88
                     }
89 89
                 }
Please login to merge, or discard this patch.
src/EBloodBank/Proxies/__CG__EBloodBankModelsCity.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
      */
76 76
     public function __wakeup()
77 77
     {
78
-        if ( ! $this->__isInitialized__) {
79
-            $this->__initializer__ = function (City $proxy) {
78
+        if (!$this->__isInitialized__) {
79
+            $this->__initializer__ = function(City $proxy) {
80 80
                 $proxy->__setInitializer(null);
81 81
                 $proxy->__setCloner(null);
82 82
 
83 83
                 $existingProperties = get_object_vars($proxy);
84 84
 
85 85
                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
86
-                    if ( ! array_key_exists($property, $existingProperties)) {
86
+                    if (!array_key_exists($property, $existingProperties)) {
87 87
                         $proxy->$property = $defaultValue;
88 88
                     }
89 89
                 }
Please login to merge, or discard this patch.
src/EBloodBank/Proxies/__CG__EBloodBankModelsDistrict.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
      */
76 76
     public function __wakeup()
77 77
     {
78
-        if ( ! $this->__isInitialized__) {
79
-            $this->__initializer__ = function (District $proxy) {
78
+        if (!$this->__isInitialized__) {
79
+            $this->__initializer__ = function(District $proxy) {
80 80
                 $proxy->__setInitializer(null);
81 81
                 $proxy->__setCloner(null);
82 82
 
83 83
                 $existingProperties = get_object_vars($proxy);
84 84
 
85 85
                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
86
-                    if ( ! array_key_exists($property, $existingProperties)) {
86
+                    if (!array_key_exists($property, $existingProperties)) {
87 87
                         $proxy->$property = $defaultValue;
88 88
                     }
89 89
                 }
Please login to merge, or discard this patch.
src/EBloodBank/Proxies/__CG__EBloodBankModelsDonor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
      */
76 76
     public function __wakeup()
77 77
     {
78
-        if ( ! $this->__isInitialized__) {
79
-            $this->__initializer__ = function (Donor $proxy) {
78
+        if (!$this->__isInitialized__) {
79
+            $this->__initializer__ = function(Donor $proxy) {
80 80
                 $proxy->__setInitializer(null);
81 81
                 $proxy->__setCloner(null);
82 82
 
83 83
                 $existingProperties = get_object_vars($proxy);
84 84
 
85 85
                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
86
-                    if ( ! array_key_exists($property, $existingProperties)) {
86
+                    if (!array_key_exists($property, $existingProperties)) {
87 87
                         $proxy->$property = $defaultValue;
88 88
                     }
89 89
                 }
Please login to merge, or discard this patch.
src/EBloodBank/Proxies/__CG__EBloodBankModelsUser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
      */
76 76
     public function __wakeup()
77 77
     {
78
-        if ( ! $this->__isInitialized__) {
79
-            $this->__initializer__ = function (User $proxy) {
78
+        if (!$this->__isInitialized__) {
79
+            $this->__initializer__ = function(User $proxy) {
80 80
                 $proxy->__setInitializer(null);
81 81
                 $proxy->__setCloner(null);
82 82
 
83 83
                 $existingProperties = get_object_vars($proxy);
84 84
 
85 85
                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
86
-                    if ( ! array_key_exists($property, $existingProperties)) {
86
+                    if (!array_key_exists($property, $existingProperties)) {
87 87
                         $proxy->$property = $defaultValue;
88 88
                     }
89 89
                 }
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 }
28 28
 
29 29
 foreach (['spl', 'date', 'filter', 'session'] as $ext) {
30
-    if (! extension_loaded($ext)) {
30
+    if (!extension_loaded($ext)) {
31 31
         die(
32 32
             sprintf(
33 33
                 'eBloodBank requires the PHP extension %s.',
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
 }
39 39
 
40 40
 if (function_exists('apache_get_modules')) {
41
-    if (! in_array('mod_rewrite', apache_get_modules())) {
41
+    if (!in_array('mod_rewrite', apache_get_modules())) {
42 42
         die('eBloodBank requires Apache mod_rewrite module.');
43 43
     }
44 44
 }
45 45
 
46 46
 /*** Paths Constants **********************************************************/
47 47
 
48
-if (! defined('EBB_DIR')) {
48
+if (!defined('EBB_DIR')) {
49 49
     define('EBB_DIR', dirname(__FILE__));
50 50
 }
51 51
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 /*** PHP Configurations *******************************************************/
58 58
 
59
-if (! ini_get('date.timezone')) {
59
+if (!ini_get('date.timezone')) {
60 60
     date_default_timezone_set('UTC');
61 61
 }
62 62
 
@@ -69,63 +69,63 @@  discard block
 block discarded – undo
69 69
     require_once EBB_DIR . '/config/config.php';
70 70
 }
71 71
 
72
-if (! defined('EBB_DB_NAME')) {
72
+if (!defined('EBB_DB_NAME')) {
73 73
     define('EBB_DB_NAME', '');
74 74
 }
75 75
 
76
-if (! defined('EBB_DB_USER')) {
76
+if (!defined('EBB_DB_USER')) {
77 77
     define('EBB_DB_USER', '');
78 78
 }
79 79
 
80
-if (! defined('EBB_DB_PASS')) {
80
+if (!defined('EBB_DB_PASS')) {
81 81
     define('EBB_DB_PASS', '');
82 82
 }
83 83
 
84
-if (! defined('EBB_DB_HOST')) {
84
+if (!defined('EBB_DB_HOST')) {
85 85
     define('EBB_DB_HOST', 'localhost');
86 86
 }
87 87
 
88
-if (! defined('EBB_DB_DRIVER')) {
88
+if (!defined('EBB_DB_DRIVER')) {
89 89
     define('EBB_DB_DRIVER', 'mysqli');
90 90
 }
91 91
 
92
-if (! defined('EBB_DEFAULT_THEME')) {
92
+if (!defined('EBB_DEFAULT_THEME')) {
93 93
     define('EBB_DEFAULT_THEME', 'winry');
94 94
 }
95 95
 
96
-if (! defined('EBB_DEFAULT_LOCALE')) {
96
+if (!defined('EBB_DEFAULT_LOCALE')) {
97 97
     define('EBB_DEFAULT_LOCALE', '');
98 98
 }
99 99
 
100
-if (! defined('EBB_REDIS_CACHE')) {
100
+if (!defined('EBB_REDIS_CACHE')) {
101 101
     define('EBB_REDIS_CACHE', false);
102 102
 }
103 103
 
104
-if (! defined('EBB_REDIS_HOST')) {
104
+if (!defined('EBB_REDIS_HOST')) {
105 105
     define('EBB_REDIS_HOST', 'localhost');
106 106
 }
107 107
 
108
-if (! defined('EBB_REDIS_PORT')) {
108
+if (!defined('EBB_REDIS_PORT')) {
109 109
     define('EBB_REDIS_PORT', 6379);
110 110
 }
111 111
 
112
-if (! defined('EBB_REDIS_DB')) {
112
+if (!defined('EBB_REDIS_DB')) {
113 113
     define('EBB_REDIS_DB', '');
114 114
 }
115 115
 
116
-if (! defined('EBB_REDIS_PASS')) {
116
+if (!defined('EBB_REDIS_PASS')) {
117 117
     define('EBB_REDIS_PASS', '');
118 118
 }
119 119
 
120
-if (! defined('EBB_APCU_CACHE')) {
120
+if (!defined('EBB_APCU_CACHE')) {
121 121
     define('EBB_APCU_CACHE', true);
122 122
 }
123 123
 
124
-if (! defined('EBB_FS_CACHE')) {
124
+if (!defined('EBB_FS_CACHE')) {
125 125
     define('EBB_FS_CACHE', true);
126 126
 }
127 127
 
128
-if (! defined('EBB_DEV_MODE')) {
128
+if (!defined('EBB_DEV_MODE')) {
129 129
     define('EBB_DEV_MODE', false);
130 130
 }
131 131
 
Please login to merge, or discard this patch.
public/themes/winry/templates/0/notices.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 $notices = Notices::getNotices();
14 14
 
15
-if (! empty($notices) && is_array($notices)) : ?>
15
+if (!empty($notices) && is_array($notices)) : ?>
16 16
     <div class="alerts">
17 17
         <?php foreach ($notices as $notice) : ?>
18 18
         <div class="alert alert-<?= $notice->type ?> alert-code-<?= $notice->code ?>" role="alert">
Please login to merge, or discard this patch.
public/themes/winry/templates/0/form-user.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,12 @@
 block discarded – undo
38 38
 		<div class="col-sm-2">
39 39
             <?php if ($user->isExists()) : ?>
40 40
             <label for="user_pass"><?= EBB\escHTML(d__('winry', 'New Password')) ?></label>
41
-            <?php else : ?>
41
+            <?php else {
42
+    : ?>
42 43
             <label for="user_pass"><?= EBB\escHTML(d__('winry', 'Password')) ?> <span class="form-required">*</span></label>
43
-            <?php endif; ?>
44
+            <?php endif;
45
+}
46
+?>
44 47
 		</div>
45 48
 		<div class="col-sm-4">
46 49
 			<input type="password" name="user_pass_1" id="user_pass_1" class="form-control" value="" placeholder="<?= EBB\escAttr(d__('winry', 'Type the password')) ?>" autocomplete="off" />
Please login to merge, or discard this patch.
public/themes/winry/templates/0/pagination.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     'page_url' => $view->get('page_url'),
16 16
 ]);
17 17
 
18
-if (! empty($urls)) : ?>
18
+if (!empty($urls)) : ?>
19 19
     <nav>
20 20
         <ul class="pagination">
21 21
             <?php if ($view->get('current') > 1) : ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,12 @@
 block discarded – undo
30 30
 
31 31
             <?php if ($number == $view->get('current')) : ?>
32 32
             <li class="active"><span><?= EBB\escHTML(number_format($number)) ?></span></li>
33
-            <?php else : ?>
33
+            <?php else {
34
+    : ?>
34 35
             <li><a href="<?= EBB\escURL($url) ?>"><?= EBB\escHTML(number_format($number)) ?></a></li>
35
-            <?php endif; ?>
36
+            <?php endif;
37
+}
38
+?>
36 39
 
37 40
             <?php endforeach; ?>
38 41
 
Please login to merge, or discard this patch.