Passed
Pull Request — master (#40)
by
unknown
05:36
created
app/Http/Controllers/Auth/ResetPasswordController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Foundation\Auth\ResetsPasswords;
7 7
 
8
-class ResetPasswordController extends Controller
9
-{
8
+class ResetPasswordController extends Controller {
10 9
     /*
11 10
     |--------------------------------------------------------------------------
12 11
     | Password Reset Controller
Please login to merge, or discard this patch.
app/Http/Controllers/DoctorDetailController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\DoctorDetail;
6 6
 use Illuminate\Http\Request;
7 7
 
8
-class DoctorDetailController extends Controller
9
-{
8
+class DoctorDetailController extends Controller {
10 9
     /**
11 10
      * Display a listing of the resource.
12 11
      *
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Foundation\Http\Kernel as HttpKernel;
6 6
 
7
-class Kernel extends HttpKernel
8
-{
7
+class Kernel extends HttpKernel {
9 8
     /**
10 9
      * The application's global HTTP middleware stack.
11 10
      *
Please login to merge, or discard this patch.
app/Articles.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
         $adminId = $this->getAttributeValue('admin_id');
39 39
         $doctorId = $this->getAttributeValue('doctor_id');
40 40
 
41
-        $writer = ['role', 'data'];
41
+        $writer = [ 'role', 'data' ];
42 42
 
43
-        if($adminId != null) {
44
-            $writer['role'] = "Admin";
45
-            $writer['data'] = Admin::find($adminId);
46
-        } elseif($doctorId != null) {
47
-            $writer['role'] = "Dokter";
48
-            $writer['data'] = Doctor::find($doctorId);
43
+        if ($adminId != null) {
44
+            $writer[ 'role' ] = "Admin";
45
+            $writer[ 'data' ] = Admin::find($adminId);
46
+        } elseif ($doctorId != null) {
47
+            $writer[ 'role' ] = "Dokter";
48
+            $writer[ 'data' ] = Doctor::find($doctorId);
49 49
         }
50 50
 
51 51
         return $writer;
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function cutStr($str)
59 59
     {
60
-        if (strlen($str) > 200){
61
-            return substr($str,0,200) . "...";
60
+        if (strlen($str) > 200) {
61
+            return substr($str, 0, 200)."...";
62 62
         }
63 63
         return $str;
64 64
     }
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function trimStr($str)
71 71
     {
72
-        if(strlen($str) > 20) {
73
-            return substr($str, 0, 20) . "...";
72
+        if (strlen($str) > 20) {
73
+            return substr($str, 0, 20)."...";
74 74
         }
75 75
         return $str;
76 76
     }
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
     public function getCat($str)
83 83
     {
84 84
         switch ($str) {
85
-            case "penyakit":    return "Penyakit";      break;
85
+            case "penyakit":    return "Penyakit"; break;
86 86
             case "obat":        return "Obat - obatan"; break;
87
-            case "hidup-sehat": return "Hidup Sehat";   break;
88
-            case "keluarga":    return "Keluarga";      break;
89
-            case "kesehatan":   return "Kesehatan";     break;
87
+            case "hidup-sehat": return "Hidup Sehat"; break;
88
+            case "keluarga":    return "Keluarga"; break;
89
+            case "kesehatan":   return "Kesehatan"; break;
90 90
         }
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
 use App\Doctor;
6 6
 use Illuminate\Database\Eloquent\Model;
7 7
 
8
-class Articles extends Model
9
-{
8
+class Articles extends Model {
10 9
     /**
11 10
      * @var string
12 11
      */
@@ -34,7 +33,8 @@  discard block
 block discarded – undo
34 33
      * @param $id
35 34
      * @return array
36 35
      */
37
-    public function writer() {
36
+    public function writer()
37
+    {
38 38
         $adminId = $this->getAttributeValue('admin_id');
39 39
         $doctorId = $this->getAttributeValue('doctor_id');
40 40
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function cutStr($str)
59 59
     {
60
-        if (strlen($str) > 200){
60
+        if (strlen($str) > 200) {
61 61
             return substr($str,0,200) . "...";
62 62
         }
63 63
         return $str;
Please login to merge, or discard this patch.