Passed
Pull Request — master (#186)
by Corey
15:03
created
site/tests/_support/AcceptanceTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\AcceptanceTesterActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
site/tests/_support/MockUser.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
   public $timezone = 'America/Los_Angeles';
8 8
   public $password;
9 9
 
10
- public static function findIdentity($id) {}
11
- public static function findIdentityByAccessToken($token, $type = null) {}
12
- public function getId() {}
13
- public function getAuthKey() {}
14
- public function validateAuthKey($authKey) {}
15
- public function validatePassword($password) {}
16
- public function setPassword($password) {}
10
+  public static function findIdentity($id) {}
11
+  public static function findIdentityByAccessToken($token, $type = null) {}
12
+  public function getId() {}
13
+  public function getAuthKey() {}
14
+  public function validateAuthKey($authKey) {}
15
+  public function validatePassword($password) {}
16
+  public function setPassword($password) {}
17 17
 
18 18
   public static function primaryKey() {}
19 19
   public function attributes() {}
Please login to merge, or discard this patch.
site/tests/_support/FunctionalTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\FunctionalTesterActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
site/tests/_support/MockUserBehavior.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
   public static function isPrimaryKey($keys) {}
15 15
   public static function find() {}
16 16
   public static function findOne($condition) {}
17
-  public static function findAll($condition) {return [];}
17
+  public static function findAll($condition) {return []; }
18 18
   public static function updateAll($attributes, $condition = null) {}
19 19
   public static function deleteAll($condition = null) {}
20 20
   public function save($runValidation = true, $attributeNames = null) {}
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,4 +36,4 @@
 block discarded – undo
36 36
   public function getBehaviorsByCategory(array $decorated_behaviors) {}
37 37
   public static function decorate(array $uo) {}
38 38
   public function getBehaviorsWithCounts($limit) {}
39
- }
40 39
\ No newline at end of file
40
+  }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
site/views/partials/posts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 use \yii\helpers\Html;
3 3
 
4
-foreach($posts as $file) {
4
+foreach ($posts as $file) {
5 5
   $yaml       = $file['yaml'];
6 6
   $content    = $file['content'];
7 7
   $short_name = Html::encode($file['date']['name']);
Please login to merge, or discard this patch.
site/views/layouts/main.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
  */
14 14
 site\assets\AppAsset::register($this);
15 15
 
16
-if($hash = Utility::getRevHash()) {
17
-  $rev_link = '<a href="'.Utility::getGithubRevUrl().'">'.Utility::getRevHash().'</a>';
16
+if ($hash = Utility::getRevHash()) {
17
+  $rev_link = '<a href="' . Utility::getGithubRevUrl() . '">' . Utility::getRevHash() . '</a>';
18 18
 } else $rev_link = 'DEVELOPMENT';
19 19
 
20 20
 ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
 
16 16
 if($hash = Utility::getRevHash()) {
17 17
   $rev_link = '<a href="'.Utility::getGithubRevUrl().'">'.Utility::getRevHash().'</a>';
18
-} else $rev_link = 'DEVELOPMENT';
18
+} else {
19
+  $rev_link = 'DEVELOPMENT';
20
+}
19 21
 
20 22
 ?>
21 23
 <?php $this->beginPage() ?>
Please login to merge, or discard this patch.
site/views/checkin/view.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     print $form
93 93
             ->field($model, "behaviors{$category['id']}")
94 94
             ->checkboxList($behaviors,
95
-                           ['item' => "checkboxItemTemplate"]);
95
+                            ['item' => "checkboxItemTemplate"]);
96 96
   }
97 97
   ActiveForm::end();
98 98
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 $plus_week  = $time->alterLocalDate($actual_date, "+1 week");
28 28
 
29 29
 $pie_data = [];
30
-if($answer_pie) {
30
+if ($answer_pie) {
31 31
   $values     = array_map('intval', array_column($answer_pie, "count"));
32 32
   $labels     = array_column($answer_pie, "name");
33 33
   $colors     = array_column($answer_pie, "color");
@@ -68,15 +68,15 @@  discard block
 block discarded – undo
68 68
     </div>
69 69
   </div>
70 70
 
71
-  <?php if($questions) {
72
-  foreach($questions as $behavior_id => $behavior_questions) {
71
+  <?php if ($questions) {
72
+  foreach ($questions as $behavior_id => $behavior_questions) {
73 73
     print "<div class='well well-sm'>";
74 74
     print "<button type='button' class='btn btn-primary' disabled='disabled'>{$behavior_questions['question']['behavior_name']}</button>";
75 75
     print "<div class='row'>";
76
-    foreach($behavior_questions['answers'] as $question) { 
76
+    foreach ($behavior_questions['answers'] as $question) { 
77 77
       print "<div class='col-md-4'>";
78 78
       print "<p><strong>{$question['title']}</strong></p>";
79
-      print "<p>".Html::encode($question['answer'])."</p>";
79
+      print "<p>" . Html::encode($question['answer']) . "</p>";
80 80
       print "</div>";
81 81
     }
82 82
     print "</div></div>";
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     'options' => ['class' => 'form-horizontal'],
89 89
   ]);
90 90
 
91
-  foreach($categories as $category) {
91
+  foreach ($categories as $category) {
92 92
     $behaviors = AH::map($behaviorsList[$category['id']], 'id', 'name');
93 93
     print $form
94 94
             ->field($model, "behaviors{$category['id']}")
Please login to merge, or discard this patch.
site/views/checkin/questions.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     $name,
13 13
     $checked,
14 14
     ['value' => $value,
15
-     'label' => $label,
16
-     'container' => false,
17
-     'labelOptions' => [ 'class' => $checked
15
+      'label' => $label,
16
+      'container' => false,
17
+      'labelOptions' => [ 'class' => $checked
18 18
                                      ? 'btn btn-info active'
19 19
                                      : 'btn btn-info'],
20 20
     ]);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     ['value' => $value,
15 15
      'label' => $label,
16 16
      'container' => false,
17
-     'labelOptions' => [ 'class' => $checked
17
+     'labelOptions' => ['class' => $checked
18 18
                                      ? 'btn btn-info active'
19 19
                                      : 'btn btn-info'],
20 20
     ]);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
   'id' => 'checkin-form',
33 33
 ]);
34 34
 
35
-foreach($categories as $category_id => $category_name) {
35
+foreach ($categories as $category_id => $category_name) {
36 36
   print $form->field($model, "user_behavior_id{$category_id}")->radioList($behaviors[$category_id], ['class' => "btn-group", 'data-toggle' => 'buttons', 'item'=>"radioItemTemplate"]);
37 37
   print $form->field($model, "answer_{$category_id}a")->textarea()->label("How does it affect me? How do I act and feel?");
38 38
   print $form->field($model, "answer_{$category_id}b")->textarea()->label("How does it affect the important people in my life?");
Please login to merge, or discard this patch.
site/models/ContactForm.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
     return Yii::$app->mailer->compose()
57 57
       ->setTo($email)
58 58
       ->setFrom([$this->email => $this->name])
59
-      ->setSubject("[FSA Contact] ".$this->subject)
59
+      ->setSubject("[FSA Contact] " . $this->subject)
60 60
       ->setTextBody($this->body)
61 61
       ->send();
62 62
   }
Please login to merge, or discard this patch.